/* =============================================================
   Dra. Galia Rossi — Cirugía Bucomaxilofacial
   Editorial premium · paleta azul aero · sobrio
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4f7fb;   /* azul muy claro, casi blanco */
  --bg-2:      #e7eef6;   /* azul-gris pálido */
  --paper:     #ffffff;
  --ink:       #122033;   /* navy profundo, casi negro */
  --ink-soft:  #2a3e54;
  --ink-mute:  #5d7388;
  --navy:      #1b3a5e;   /* navy del logo */
  --accent:    #2f5d8a;   /* azul aero primario */
  --accent-2:  #4a78a6;   /* azul aero medio */
  --teal:      #88aeb8;   /* teal apagado del logo */
  --teal-soft: #cfe0e4;
  --plum:      #6a4c93;   /* arándano/morado elegante (acento complementario) */
  --plum-2:    #8a6cb0;   /* morado medio */
  --plum-deep: #4a2f6b;   /* morado profundo */
  --plum-soft: #f1ecf7;   /* lavanda muy suave para fondos */
  --grad-brand: linear-gradient(115deg, var(--accent), var(--plum));
  --line:      rgba(18, 32, 51, 0.12);
  --line-soft: rgba(18, 32, 51, 0.07);
  --halo:      rgba(47, 93, 138, 0.16);
  --halo-plum: rgba(106, 76, 147, 0.16);
  --shadow-sm: 0 2px 10px rgba(18, 32, 51, 0.06);
  --shadow-md: 0 18px 40px -22px rgba(18, 32, 51, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(18, 32, 51, 0.45);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.2rem, 5vw, 4rem);
  --maxw:   1240px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--navy); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.eyebrow--center { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); }
.muted { color: var(--ink-mute); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.7rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .01em;
  border-radius: 100px;
  transition: transform .4s var(--ease-out), background .4s var(--ease-out),
              color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--plum); color: var(--plum); background: var(--plum-soft); transform: translateY(-3px); }
.btn--wa { background: #25d366; color: #0a3b22; }
.btn--wa:hover { background: #1ebe5a; transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(37,211,102,.7); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out),
              border-color .45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 24px -18px rgba(18,32,51,.4);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: .18rem; }
.brand b {
  font-family: var(--serif); font-weight: 600; font-size: 1.42rem;
  color: var(--navy); letter-spacing: .01em;
}
.brand span {
  font-family: var(--sans); font-size: .56rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute);
}
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  padding: .3rem 0; transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .4s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem;
  margin-right: -.5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform .4s var(--ease-out), opacity .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--paper);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  display: flex; flex-direction: column; padding: 2rem var(--gutter) 3rem;
  gap: .3rem; overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif); font-size: 1.7rem; color: var(--ink);
  padding: .7rem 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { margin-top: 1.6rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-halo {
  position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  top: -16%; right: -12%;
  background:
    radial-gradient(circle at 65% 35%, var(--halo), transparent 68%),
    radial-gradient(circle at 30% 75%, var(--halo-plum), transparent 60%);
  filter: blur(30px);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-kicker { margin-bottom: 1.6rem; }
.hero-title {
  font-size: clamp(2.7rem, 7.4vw, 5.2rem);
  line-height: 1.0;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  margin-top: 1.7rem; max-width: 46ch;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink-soft);
}
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-rating {
  margin-top: 2.4rem; display: inline-flex; align-items: center; gap: .9rem;
  padding: .7rem 1.1rem; background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: 100px; box-shadow: var(--shadow-sm);
}
.hero-rating .stars { color: #e3a008; letter-spacing: .1em; font-size: .95rem; }
.hero-rating b { color: var(--ink); font-weight: 700; }
.hero-rating a { color: var(--ink-mute); font-size: .82rem; }
.hero-rating a:hover { color: var(--accent); text-decoration: underline; }

.hero-visual { position: relative; }
.hero-figure {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18,32,51,.35));
}
.hero-badge {
  position: absolute; z-index: 2; left: -10px; bottom: 22px;
  background: var(--paper); border-radius: 14px; padding: 1rem 1.3rem;
  box-shadow: var(--shadow-md); display: flex; align-items: baseline; gap: .55rem;
}
.hero-badge b { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.hero-badge span { font-size: .78rem; color: var(--ink-mute); max-width: 9ch; line-height: 1.25; }

/* =============================================================
   7. Stats strip
   ============================================================= */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.stat {
  background: var(--bg); padding: clamp(2.2rem, 4vw, 3.2rem) 1.2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.stat b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(3rem, 6.6vw, 4.7rem); line-height: 1;
  color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat b span { font-size: inherit; color: inherit; letter-spacing: inherit; font-weight: inherit; }
.stat b::after {
  content: ""; display: block; width: 30px; height: 3px; border-radius: 3px;
  margin: .85rem auto 0; background: var(--grad-brand); opacity: .85;
}
.stat span {
  display: block; margin-top: .85rem; font-size: .82rem; color: var(--ink-mute);
  letter-spacing: .04em; max-width: 16ch; min-height: 2.6em;
}

/* =============================================================
   8. Service cards
   ============================================================= */
.cards { display: grid; gap: 1.4rem; }
.s-card {
  position: relative; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 2.2rem 2rem 2.4rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  overflow: hidden;
}
.s-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--plum));
  transition: width .5s var(--ease-out);
}
.s-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.s-card:hover::before { width: 100%; }
.s-card .s-num { font-family: var(--serif); font-size: 1.1rem; color: var(--teal); font-style: italic; }
.s-card h3 { font-size: 1.5rem; margin: .8rem 0 .9rem; }
.s-card p { font-size: .96rem; }
.s-card .s-more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem;
  font-size: .85rem; font-weight: 600; color: var(--accent);
}
.s-card .s-more svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.s-card:hover .s-more svg { transform: translateX(4px); }

/* Service detail (servicios page) */
.s-detail { display: grid; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; padding-block: clamp(2rem,5vw,3.5rem); }
.s-detail:not(:last-child) { border-bottom: 1px solid var(--line-soft); }
.s-detail .s-figure { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.s-detail .s-figure img { width: 100%; height: 100%; object-fit: cover; }
.s-detail h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
.s-detail .s-index { font-family: var(--serif); font-style: italic; color: var(--teal); font-size: 1.3rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.chip {
  font-size: .82rem; color: var(--ink-soft); background: var(--bg-2);
  border: 1px solid var(--line-soft); padding: .5rem .95rem; border-radius: 100px;
}

/* =============================================================
   9. About
   ============================================================= */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-portrait { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body p + p { margin-top: 1.1rem; }
.about-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy); line-height: 1.25; margin: 2rem 0; padding-left: 1.4rem;
  border-left: 2px solid var(--teal);
}
.creds { display: grid; gap: 0; margin-top: 1rem; }
.cred { display: flex; gap: 1.1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-soft); }
.cred-yr { flex: none; }
.cred .ico {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-2);
  display: grid; place-items: center; color: var(--accent);
}
.cred .ico svg { width: 18px; height: 18px; }
.cred b { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.18rem; font-weight: 600; }
.cred span { display: block; font-size: .85rem; color: var(--ink-mute); }

.gallery-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.4rem; }
.gallery-strip img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }

/* =============================================================
   10. Before / after cases
   ============================================================= */
.cases { display: grid; gap: clamp(1.6rem, 4vw, 2.4rem); }
.case {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.case:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.case-body { padding: 1.5rem 1.6rem 1.8rem; }
.case-body h3 { font-size: 1.4rem; }
.case-body p { font-size: .92rem; margin-top: .55rem; }

/* slider */
.ba {
  position: relative; aspect-ratio: 3/4; max-height: 560px; width: 100%;
  overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--bg-2);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba .ba-label {
  position: absolute; bottom: 14px; z-index: 3; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(18,32,51,.62); padding: .35rem .8rem; border-radius: 100px;
  backdrop-filter: blur(4px);
}
.ba .ba-label.is-antes { left: 14px; }
.ba .ba-label.is-despues { right: 14px; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4; width: 2px;
  background: #fff; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(18,32,51,.12);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; z-index: 5;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-md);
  display: grid; place-items: center; color: var(--accent);
}
.ba-handle svg { width: 22px; height: 22px; }

.consent-note {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  margin-top: 2.4rem; font-size: .84rem; color: var(--ink-mute); text-align: center;
}
.consent-note svg { width: 16px; height: 16px; flex: none; color: var(--teal); }

/* clinical notice */
.clinic-notice {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 1.3rem 1.5rem; margin-bottom: 2.4rem;
}
.clinic-notice svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.clinic-notice p { font-size: .9rem; }

/* =============================================================
   11. Testimonials
   ============================================================= */
.t-grid { display: grid; gap: 1.4rem; }
.t-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 2rem 1.9rem; position: relative;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.t-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.t-card .quote-mark { font-family: var(--serif); font-size: 3.4rem; color: var(--teal-soft); line-height: .6; }
.t-card .t-stars { color: #e3a008; letter-spacing: .08em; font-size: .9rem; margin: .4rem 0 .9rem; }
.t-card p { font-size: .96rem; color: var(--ink-soft); }
.t-card .t-name { margin-top: 1.3rem; display: flex; align-items: center; gap: .7rem; }
.t-card .t-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--plum));
  color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem;
}
.t-card .t-name b { color: var(--ink); font-size: .92rem; }
.t-card .t-name span { font-size: .76rem; color: var(--ink-mute); }

.google-seal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.3rem;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 1.8rem 2rem; box-shadow: var(--shadow-sm); text-align: center;
}
.google-seal .g-score { font-family: var(--serif); font-size: 2.8rem; color: var(--navy); line-height: 1; }
.google-seal .g-stars { color: #e3a008; font-size: 1.1rem; letter-spacing: .1em; }
.google-seal .g-meta { font-size: .85rem; color: var(--ink-mute); }

/* =============================================================
   12. Obras sociales
   ============================================================= */
.os-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.os-item {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 1.1rem 1rem; text-align: center; font-weight: 600; color: var(--navy);
  font-size: .95rem; letter-spacing: .02em;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), color .4s;
}
.os-item:hover { transform: translateY(-3px); border-color: var(--plum); color: var(--plum); background: var(--plum-soft); }

/* =============================================================
   13. FAQ accordion
   ============================================================= */
.faq { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.5rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink); font-weight: 600;
}
.faq-q .faq-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; transition: background .4s, border-color .4s; }
.faq-q .faq-ico::before, .faq-q .faq-ico::after {
  content: ""; position: absolute; background: var(--accent); transition: transform .4s var(--ease-out), background .4s;
}
.faq-q .faq-ico::before { width: 12px; height: 2px; }
.faq-q .faq-ico::after { width: 2px; height: 12px; }
.faq-item.is-open .faq-q .faq-ico { background: var(--accent); border-color: var(--accent); }
.faq-item.is-open .faq-q .faq-ico::before,
.faq-item.is-open .faq-q .faq-ico::after { background: #fff; }
.faq-item.is-open .faq-q .faq-ico::after { transform: rotate(90deg); }
.faq-a { overflow: hidden; height: 0; transition: height .45s var(--ease-out); }
.faq-a-inner { padding-bottom: 1.6rem; color: var(--ink-soft); font-size: .98rem; max-width: 64ch; }

/* =============================================================
   14. Forms (turnos)
   ============================================================= */
.form-wrap {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--paper);
  box-shadow: 0 0 0 4px var(--halo);
}
.field.is-invalid input, .field.is-invalid select { border-color: #d4503f; }
.field .err { display: none; color: #d4503f; font-size: .78rem; margin-top: .4rem; }
.field.is-invalid .err { display: block; }
.form-note { font-size: .8rem; color: var(--ink-mute); margin-top: 1rem; display: flex; gap: .5rem; align-items: flex-start; }
.form-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--teal); }

.form-success {
  display: none; text-align: center; padding: 1rem 0;
}
.form-success.is-shown { display: block; }
.form-success .check {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: rgba(37,211,102,.12); display: grid; place-items: center;
}
.form-success .check svg { width: 32px; height: 32px; color: #1ebe5a; }
.form-success h3 { font-size: 1.6rem; margin-bottom: .6rem; }

/* =============================================================
   15. Contact
   ============================================================= */
.contact-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.info-list { display: grid; gap: .3rem; }
.info-item { display: flex; gap: 1.1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.info-item .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.info-item .ico svg { width: 19px; height: 19px; }
.info-item .info-t { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); }
.info-item .info-v { color: var(--ink); font-weight: 500; margin-top: .15rem; }
.info-item a.info-v:hover { color: var(--accent); }
.map-frame { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line-soft); }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.2) contrast(1.02); }

/* =============================================================
   16. CTA band
   ============================================================= */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 22px; padding: clamp(2.6rem, 6vw, 4.5rem); text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 120%;
  background: radial-gradient(circle at 26% 18%, rgba(136,174,184,.25), transparent 60%),
              radial-gradient(circle at 82% 78%, rgba(74,120,166,.4), transparent 55%),
              radial-gradient(circle at 58% 110%, rgba(138,108,176,.42), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.cta-band p { color: rgba(255,255,255,.78); margin: 1.1rem auto 0; max-width: 52ch; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: #0f1c2d; color: rgba(255,255,255,.72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer .container { display: grid; gap: 2.4rem; }
.footer .brand b { color: #fff; }
.footer .brand span { color: rgba(255,255,255,.5); }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; color: rgba(255,255,255,.66); padding: .25rem 0; }
.footer-col a:hover { color: #fff; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: rgba(255,255,255,.85); margin-top: 1rem; max-width: 30ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); }

/* =============================================================
   18. Floating WhatsApp
   ============================================================= */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .4s var(--ease-bounce);
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: waPulse 2.4s var(--ease-out) infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

/* =============================================================
   19. Reveal animation (content-first: visible por defecto,
       el reveal se "arma" sólo si el JS lo activa)
   ============================================================= */
.reveal { opacity: 1; }
html.reveal-on .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
html.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
html.reveal-on .reveal[data-split] { opacity: 1; transform: none; }
html.reveal-on .reveal-d1 { transition-delay: .08s; }
html.reveal-on .reveal-d2 { transition-delay: .16s; }
html.reveal-on .reveal-d3 { transition-delay: .24s; }

/* page header (interior pages) */
.page-head { padding-top: calc(var(--nav-h) + clamp(2.4rem, 6vw, 4.5rem)); padding-bottom: clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; }
.page-head .hero-halo { top: -30%; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 1rem; }
.page-head p { margin-top: 1.1rem; max-width: 54ch; }
.breadcrumb { font-size: .8rem; color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--accent); }

/* =============================================================
   20. Responsive
   ============================================================= */
@media (min-width: 600px) {
  .os-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .about-grid.about-grid--rev { grid-template-columns: 1.1fr .9fr; }
  .s-detail { grid-template-columns: 1fr 1fr; }
  .s-detail--rev .s-figure { order: 2; }
  .t-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.05fr; }
  .footer .container { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; align-items: start; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1280px) {
  .t-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   21. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float::after { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =============================================================
   22. Branding: sello, marca de agua y logo en footer
   ============================================================= */
.brand-seal {
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 1.8rem);
  margin: clamp(2.4rem, 6vw, 4rem) auto 0; max-width: 520px;
}
.brand-seal::before, .brand-seal::after {
  content: ""; height: 1px; flex: 1; max-width: 150px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.brand-seal::after { background: linear-gradient(90deg, var(--line), transparent); }
.brand-seal img { width: clamp(54px, 9vw, 72px); height: auto; opacity: .92; }

/* marca de agua sutil del logo dentro de una sección */
.has-wm { position: relative; overflow: hidden; }
.wm {
  position: absolute; pointer-events: none; z-index: 0;
  width: clamp(280px, 38vw, 560px); height: auto; opacity: .05;
  filter: grayscale(1);
}
.wm--tr { top: -6%; right: -6%; transform: rotate(6deg); }
.wm--bl { bottom: -10%; left: -8%; transform: rotate(-8deg); }
.has-wm > .container { position: relative; z-index: 1; }

/* logo en el footer */
.footer-logo { width: 132px; height: auto; opacity: .9; margin-bottom: .2rem; }

/* galería de instalaciones (consultorio + sala de espera) */
.facility-gallery { max-width: 1040px; margin-inline: auto; }
@media (min-width: 760px) { .facility-gallery { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   23. Sección "título / formación destacada"
   ============================================================= */
.titulo-feature { display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.titulo-portrait {
  position: relative; max-width: 420px; margin-inline: auto; width: 100%;
}
.titulo-portrait img {
  width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: block;
}
.titulo-portrait::after {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 62%; height: 62%; border-radius: 18px; z-index: -1;
  background: var(--grad-brand); opacity: .12;
}
.titulo-ceremonia {
  margin-top: 1.4rem; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 16/10;
}
.titulo-ceremonia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.titulo-cap { margin-top: .7rem; font-size: .82rem; color: var(--ink-mute); font-style: italic; }

/* credencial destacada (UBA) */
.cred--feature {
  background: var(--plum-soft); border-radius: 14px; border-bottom: 0;
  padding: 1.3rem 1.3rem; margin: .4rem 0;
  box-shadow: inset 3px 0 0 var(--plum);
}
.cred--feature .ico { background: #fff; color: var(--plum); }
.cred--feature b { color: var(--plum-deep); }
.cred .cred-tag {
  display: inline-block; margin-top: .5rem; font-family: var(--sans);
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum); background: #fff; border: 1px solid rgba(106,76,147,.25);
  padding: .28rem .7rem; border-radius: 100px;
}

@media (min-width: 860px) {
  .titulo-feature { grid-template-columns: .82fr 1.18fr; }
  .titulo-feature.titulo-feature--rev .titulo-media { order: 2; }
}
