/* Dra. Anahí Peimbert — Custom styles */

:root {
  --color-navy: #1a2b3c;
  --color-navy-light: #2c3e50;
  --color-teal: #1a7a8c;
  --color-teal-dark: #146574;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fb;
  --color-text: #3a4a5c;
  --color-text-muted: #6c7a89;
  --color-border: #e2e8f0;
  --navbar-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  line-height: 1.7;
  padding-top: var(--navbar-height);
}

/* Navbar */
.navbar {
  height: var(--navbar-height);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(26, 43, 60, 0.08);
  border-bottom-color: var(--color-border);
}

.navbar-brand {
  font-weight: 700;
  color: var(--color-navy) !important;
  font-size: 1.05rem;
}

.nav-link {
  color: var(--color-navy-light) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-teal) !important;
}

.btn-cta {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1.25rem;
  border-radius: 6px;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background-color: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: #fff;
}

.btn-outline-cta {
  color: var(--color-teal);
  border-color: var(--color-teal);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1.25rem;
  border-radius: 6px;
}

.btn-outline-cta:hover,
.btn-outline-cta:focus-visible {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
  color: #fff;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #f7f9fb 0%, #eef4f7 50%, #f0f6f8 100%);
  padding: 4rem 0 5rem;
}

.hero-eyebrow {
  color: var(--color-teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-section h1 {
  color: var(--color-navy);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
}

.hero-credentials {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-credentials li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hero-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-teal);
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 43, 60, 0.1);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-label {
  color: var(--color-teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  color: var(--color-navy);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}

/* Credential cards */
.credential-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
  height: 100%;
  background: var(--color-bg);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.credential-card:hover {
  box-shadow: 0 6px 24px rgba(26, 43, 60, 0.08);
  transform: translateY(-2px);
}

.credential-card img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.credential-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.credential-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Experience cards */
.experience-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  height: 100%;
  background: var(--color-bg);
  transition: box-shadow 0.25s ease;
}

.experience-card:hover {
  box-shadow: 0 4px 16px rgba(26, 43, 60, 0.06);
}

.experience-card i {
  font-size: 1.5rem;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
  display: block;
}

.experience-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0;
}

/* About */
.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 43, 60, 0.1);
}

.about-text p {
  margin-bottom: 1.1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Formation timeline */
.formation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.formation-list li {
  position: relative;
  padding: 0 0 1.75rem 2rem;
  border-left: 2px solid var(--color-border);
}

.formation-list li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.formation-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-teal);
  border: 2px solid var(--color-bg);
}

.formation-list li strong {
  display: block;
  color: var(--color-navy);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.formation-list li span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Academic activity */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-item i {
  font-size: 1.25rem;
  color: var(--color-teal);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.activity-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Location cards */
.location-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  background: var(--color-bg);
  transition: box-shadow 0.25s ease;
}

.location-card:hover {
  box-shadow: 0 6px 24px rgba(26, 43, 60, 0.08);
}

.location-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.location-card-body {
  padding: 1.5rem;
}

.location-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.location-card .contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.location-card .contact-detail i {
  color: var(--color-teal);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.location-card .contact-placeholder {
  font-style: italic;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Utilities */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 3rem 0 4rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-image {
    margin-top: 2rem;
  }
}
