/* ═══════════════════════════════════════════════════════════
   DRA. CLAUDIA GONZÁLEZ G. — COLOPROCTOLOGÍA
   style.css  ·  Mobile-first · WCAG 2.1 AA
═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:    #FAFAF8;
  --bg-alt:        #F5F0E8;
  --bg-dark:       #1C2B4A;
  --bg-dark-mid:   #2A3F6B;

  /* Brand */
  --teal:          #1B8FA8;
  --teal-dark:     #156F85;
  --teal-light:    #E8F6FA;
  --purple:        #7B4FBF;
  --purple-light:  #EDE6F6;
  --gold:          #C9A96E;

  /* Text */
  --text:          #1C2B4A;
  --text-muted:    #6B7A99;
  --text-white:    #FFFFFF;

  /* Borders */
  --border:        #E8E4DE;
  --border-light:  #F0EDE8;

  /* Typography */
  --font-heading:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:     'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py:    clamp(5rem, 9vw, 8rem);
  --container-px:  clamp(1.25rem, 5vw, 3rem);
  --max-width:     1280px;

  /* Transitions */
  --ease:          cubic-bezier(.4, 0, .2, 1);
  --ease-out:      cubic-bezier(0, 0, .2, 1);

  /* Shadows */
  --shadow-sm:     0 1px 4px rgba(28,43,74,.08);
  --shadow-md:     0 4px 20px rgba(28,43,74,.12);
  --shadow-lg:     0 16px 48px rgba(28,43,74,.16);
  --shadow-teal:   0 8px 32px rgba(27,143,168,.25);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Focus visible (WCAG) ───────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1rem;
  background: var(--teal);
  color: #fff;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--container-px);
}

/* ── Sections ───────────────────────────────────────────── */
.section          { padding-block: var(--section-py); }
.section-alt      { background: var(--bg-alt); }
.section-dark     { background: var(--bg-dark); }

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-label.light { color: var(--teal-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  color: var(--teal);
}
.section-title.light { color: var(--text-white); }
.section-title.light em { color: var(--teal-light); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 54ch;
  margin-inline: auto;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              box-shadow .22s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal);
  color: var(--text-white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover  { background: var(--teal-dark); box-shadow: 0 12px 36px rgba(27,143,168,.35); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: #1ebe5d; box-shadow: 0 12px 32px rgba(37,211,102,.4); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-light); }

.btn-outline-light {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }

.btn-full { width: 100%; justify-content: center; }


/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(250,250,248,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
#header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--container-px);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-img-footer {
  width: 48px;
  height: 48px;
  filter: brightness(1.05);
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}
.logo-specialty {
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

/* Nav */
#main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-muted);
  border-radius: 5px;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--teal);
  background: var(--teal-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.header-actions .btn { padding: .625rem 1.375rem; font-size: .875rem; }

/* Hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  transition: border-color .2s;
}
.menu-toggle:hover { border-color: var(--teal); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

/* Background decoration */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, rgba(27,143,168,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 80%, rgba(123,79,191,.1) 0%, transparent 55%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: .4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--container-px);
  width: 100%;
}

/* Hero content (left) */
.hero-content { padding-block: 2rem; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: 1.75rem;
}
.eyebrow-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--teal);
  flex-shrink: 0;
}
.eyebrow-text {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-light);
  opacity: .8;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text-white);
  margin-bottom: .75rem;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, #1B8FA8 0%, #7B4FBF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-specialty {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-light);
  opacity: .7;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.72);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* Cert badges */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .875rem;
  background: rgba(27,143,168,.15);
  border: 1px solid rgba(27,143,168,.3);
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--teal-light);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

/* Hero photo (right) */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-frame {
  position: relative;
  z-index: 2;
}

.photo-accent-ring {
  position: absolute;
  inset: -12px;
  border: 1.5px solid rgba(27,143,168,.2);
  border-radius: 20px;
  pointer-events: none;
}
.photo-accent-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(123,79,191,.12);
  border-radius: 24px;
}

.hero-photo {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow-lg);
}

.photo-badge {
  position: absolute;
  bottom: -20px;
  left: -28px;
  background: var(--teal);
  color: #fff;
  padding: .875rem 1.25rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-teal);
}
.photo-badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}
.photo-badge-text {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
  line-height: 1.3;
}

/* Decorations */
.hero-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(27,143,168,.15);
}
.deco-circle-1 {
  width: 340px; height: 340px;
  bottom: -60px; right: -60px;
  background: radial-gradient(circle, rgba(27,143,168,.05) 0%, transparent 70%);
}
.deco-circle-2 {
  width: 200px; height: 200px;
  top: 20px; right: 20px;
  border-color: rgba(123,79,191,.12);
}

.deco-dots {
  position: absolute;
  top: 40px; left: -20px;
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, rgba(27,143,168,.35) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.3);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50%       { opacity: .8; transform: scaleY(.6); }
}


/* ══════════════════════════════════════════════════════════
   SOBRE MÍ
══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.about-photo-col { position: sticky; top: 100px; }

.about-photo-wrap {
  position: relative;
  margin-bottom: 1.75rem;
}
.about-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: block;
}
.about-photo-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border: 2px solid var(--teal);
  border-radius: 16px;
  opacity: .15;
  pointer-events: none;
}

/* Credentials card */
.credentials-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.credentials-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 1px solid var(--border);
}
.credentials-list { display: flex; flex-direction: column; gap: .75rem; }
.credential-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.credential-label {
  font-size: .8125rem;
  color: var(--text-muted);
}
.credential-number {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .03em;
  white-space: nowrap;
}

/* About content */
.about-bio {
  margin-bottom: 2.25rem;
}
.about-bio p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about-bio p:last-child { margin-bottom: 0; }

/* Certifications */
.certifications { margin-bottom: 1.75rem; }
.certifications-title,
.affiliations-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .875rem;
}
.cert-list { display: flex; flex-direction: column; gap: .625rem; }
.cert-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--text);
}
.cert-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-light);
  color: var(--purple);
  border-radius: 8px;
  flex-shrink: 0;
}

/* Affiliations */
.affil-list { display: flex; flex-direction: column; gap: .5rem; }
.affil-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--text-muted);
}
.affil-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════
   SERVICIOS — TABS
══════════════════════════════════════════════════════════ */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.services-tab {
  padding: .625rem 1.375rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-muted);
  background: transparent;
  transition: all .22s var(--ease);
  cursor: pointer;
}
.services-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.services-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-teal);
}

.services-panel { display: none; }
.services-panel.active { display: block; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: box-shadow .25s var(--ease), border-color .25s;
  animation-delay: var(--delay, 0s);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--purple) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(27,143,168,.22);
}
.service-card.open,
.service-card:hover { border-color: rgba(27,143,168,.22); }
.service-card.open { box-shadow: var(--shadow-md); }
.service-card.open::before,
.service-card:hover::before { transform: scaleX(1); }

/* ── Card header (clickable trigger) ─────────── */
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background .2s var(--ease);
}
.card-header:hover { background: rgba(27,143,168,.04); }
.service-card.open .card-header { background: rgba(27,143,168,.05); }

.card-header-content { flex: 1; min-width: 0; }

.card-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform .35s var(--ease), color .2s;
}
.service-card.open .card-chevron {
  transform: rotate(90deg);
  color: var(--teal);
}
.card-header:hover .card-chevron { color: var(--teal); }

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.service-card.open .service-icon,
.card-header:hover .service-icon {
  background: var(--teal);
  color: #fff;
}

.service-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .35rem;
  line-height: 1.3;
}
.service-desc {
  font-size: .8375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Accordion body (grid-template-rows trick) ─ */
.card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.service-card.open .card-body {
  grid-template-rows: 1fr;
}
.card-body-inner {
  overflow: hidden;
}

/* ── Accordion blocks ─────────────────────────── */
.accordion-block {
  display: flex;
  gap: .875rem;
  padding: .875rem 1.5rem;
  border-top: 1px solid var(--border-light);
  align-items: flex-start;
}
.accordion-block:first-child { border-top: 1px solid var(--border); }

.ablock-icon {
  font-size: 1.125rem;
  line-height: 1;
  width: 28px;
  flex-shrink: 0;
  padding-top: .15rem;
  text-align: center;
}

.ablock-title {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .35rem;
}

.ablock-text {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Stat bar ─────────────────────────────────── */
.card-stat-bar {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-mid) 100%);
  border-top: 1px solid rgba(27,143,168,.2);
}

.card-stat-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
  color: var(--teal-light);
  line-height: 1.3;
}


/* ══════════════════════════════════════════════════════════
   ¿POR QUÉ ELEGIRME?
══════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease);
  animation-delay: var(--delay, 0s);
}
.why-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(27,143,168,.3);
  transform: translateY(-3px);
}

.why-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(27,143,168,.2) 0%, rgba(123,79,191,.15) 100%);
  color: var(--teal-light);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(27,143,168,.2);
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: .625rem;
  line-height: 1.25;
}

.why-text {
  font-size: .9375rem;
  color: rgba(255,255,255,.58);
  line-height: 1.75;
}


/* ══════════════════════════════════════════════════════════
   AGENDAR CITA
══════════════════════════════════════════════════════════ */
.cita-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.cita-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.125rem; }

.form-group { display: flex; flex-direction: column; gap: .375rem; }

.form-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}
.form-label span { color: var(--teal); }

.form-input {
  padding: .875rem 1.125rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-primary);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-muted); opacity: .6; }
.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,143,168,.12);
}
.form-input.error {
  border-color: #e05a5a;
  box-shadow: 0 0 0 3px rgba(224,90,90,.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: .8125rem;
  color: #e05a5a;
  min-height: 1.2em;
}

.form-privacy {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .25rem;
  line-height: 1.5;
}
.form-privacy a { color: var(--teal); text-decoration: underline; }

/* Form success */
.form-success {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--teal-light);
  border: 1px solid rgba(27,143,168,.2);
  border-radius: 12px;
  color: var(--teal-dark);
}
.form-success svg { margin-inline: auto; margin-bottom: 1rem; }
.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.form-success p { font-size: .9375rem; color: var(--text-muted); }

/* WhatsApp card */
.whatsapp-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #25D366;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 2rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.3);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.whatsapp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37,211,102,.4);
}
.whatsapp-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whatsapp-card-text { display: flex; flex-direction: column; gap: .15rem; }
.whatsapp-card-label {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  font-weight: 500;
}
.whatsapp-card-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}
.whatsapp-card-cta {
  font-size: .8125rem;
  font-weight: 500;
  opacity: .85;
}

/* Contact info block */
.contact-info-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  padding-block: .875rem;
  border-bottom: 1px solid var(--border-light);
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item:first-child { padding-top: 0; }

.contact-info-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.contact-info-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.contact-info-value {
  font-size: .9375rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-info-value a { color: var(--teal); }
.contact-info-value a:hover { text-decoration: underline; }

.simplybook-wrap { text-align: center; }
.simplybook-wrap .btn { width: 100%; justify-content: center; }


/* ══════════════════════════════════════════════════════════
   UBICACIÓN
══════════════════════════════════════════════════════════ */
.map-wrap { max-width: 960px; margin-inline: auto; }
.map-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.map-address-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  color: var(--text-muted);
}
.map-address-bar svg { color: var(--teal); flex-shrink: 0; }
.map-iframe-wrap iframe { display: block; }


/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
#footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-footer .logo-name { color: var(--text-white); }
.logo-footer .logo-specialty { color: var(--teal-light); opacity: .7; }

.footer-tagline {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  margin-top: 1.125rem;
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

.footer-cedulas, .footer-certs {
  font-size: .8125rem;
  line-height: 1.8;
  color: rgba(255,255,255,.4);
}
.footer-cedula-title {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-light);
  opacity: .6;
  margin-bottom: .375rem;
}
.footer-cedulas p, .footer-certs p { margin-bottom: .1rem; }
.footer-certs { margin-top: 1.25rem; }

.footer-nav-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.125rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--teal-light); }

.footer-address {
  font-style: normal;
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}
.footer-address p { margin-bottom: 1rem; }
.footer-address p:last-child { margin-bottom: 0; }
.footer-address a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-address a:hover { color: var(--teal-light); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding-block: 1.25rem;
}
.footer-copyright {
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
}
.footer-privacy {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
}
.footer-privacy a {
  color: rgba(255,255,255,.35);
  text-decoration: underline;
  transition: color .2s;
}
.footer-privacy a:hover { color: var(--teal-light); }


/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
.whatsapp-float-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37,211,102,.3);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(.9); opacity: .8; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(.9); opacity: 0; }
}


/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.fade-up    { transform: translateY(28px); }
.fade-left  { transform: translateX(-28px); }
.fade-right { transform: translateX(28px); }

.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  #main-nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(250,250,248,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem var(--container-px) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    z-index: 800;
  }
  #main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list { flex-direction: column; gap: .25rem; }
  .nav-link  { display: block; padding: .75rem 1rem; font-size: 1rem; }

  .header-actions .btn { display: none; }
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content { order: 1; }
  .hero-photo-wrap { order: 0; }

  .hero-eyebrow, .cert-badges { justify-content: center; }
  .hero-tagline { margin-inline: auto; }
  .hero-stats { max-width: 420px; margin-inline: auto; }
  .hero-ctas { justify-content: center; }

  .hero-photo { max-width: 360px; margin-inline: auto; }
  .photo-badge { left: auto; right: -12px; }

  .scroll-indicator { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo-col { position: static; }
  .about-photo { max-width: 340px; margin-inline: auto; }

  .cita-grid { grid-template-columns: 1fr; }
  .cita-info-col { order: -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 80%; height: 1px; }

  .services-tabs { justify-content: stretch; }
  .services-tab  { flex: 1; text-align: center; min-width: 140px; }

  .why-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float { bottom: 1rem; right: 1rem; }
}

@media (max-width: 375px) {
  .hero-title { font-size: 2.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}


/* ══════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════ */
@media print {
  #header, .whatsapp-float, .scroll-indicator { display: none; }
  .hero { min-height: auto; padding-top: 2rem; }
  .section { padding-block: 2rem; }
  * { color: #000 !important; background: #fff !important; }
}

/* ══════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fade-up, .fade-left, .fade-right {
    opacity: 1;
    transform: none;
  }
}
