/* =========================================================
   Dra. Paola Naranjo · Odontopediatría
   Sistema: teal petróleo, menta, blush · Playfair Display + Plus Jakarta Sans
   ========================================================= */

:root {
  --teal: #287f91;
  --teal-deep: #1d5e6c;
  --teal-ink: #163f49;
  --turquoise: #4fb9ce;
  --mint: #91ccb4;
  --mint-light: #d2efe4;
  --surface: #eff7f5;
  --ivory: #faf8f5;
  --white: #ffffff;
  --ink: #24383d;
  --ink-soft: #637477;
  --line: #d5e5e2;
  --blush: #f4d7e0;
  --blush-deep: #d88fa5;
  --wa: #25d366;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --shadow-rest: 0 4px 20px -2px rgba(40, 127, 145, .06), 0 2px 6px -1px rgba(36, 56, 61, .03);
  --shadow-lift: 0 12px 32px -4px rgba(40, 127, 145, .12), 0 4px 12px -2px rgba(79, 185, 206, .08);
  --shadow-modal: 0 24px 48px -8px rgba(36, 56, 61, .14);

  --r-pill: 9999px;
  --r-card: 28px;
  --r-md: 18px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-surface { background: var(--surface); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: .6rem 1rem; border-radius: 10px; z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.7rem, 5.2vw, 4.2rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.55rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--teal); }
p { margin: 0 0 1em; }
.lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 30em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 1rem; font-weight: 600; color: var(--teal);
  margin: 0 0 1rem;
}
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--turquoise); }
.dots i:nth-child(2) { background: var(--mint); }
.dots i:nth-child(3) { background: var(--blush-deep); }

.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.2rem; max-width: 34em; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p:last-child { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head-light h2 { color: var(--white); }
.section-head-light .eyebrow { color: #cdeef6; }
.section-head-light p:last-child { color: rgba(255,255,255,.82); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em;
  border-radius: var(--r-pill);
  font: 600 .98rem/1.2 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); box-shadow: 0 8px 20px rgba(40,127,145,.28); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--mint); }
.btn-ghost:hover { background: var(--white); border-color: var(--turquoise); }
.btn-wa { background: var(--mint-light); color: var(--teal-ink); }
.btn-wa:hover { background: var(--mint); }
.btn-lg { padding: 1em 2em; font-size: 1.02rem; }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--teal-deep); color: var(--white); font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-list li { display: inline-flex; align-items: center; gap: .45em; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .icon { width: 15px; height: 15px; color: #a9e2ee; flex: none; }
.topbar-right { display: flex; align-items: center; gap: .8rem; }
.topbar-right span { color: rgba(255,255,255,.8); font-weight: 600; }
.topbar-right a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.topbar-right a:hover { background: var(--turquoise); }
.topbar-right a .icon { color: var(--white); width: 14px; height: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(213,229,225,.6);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-rest); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.logo img { height: 46px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav a:not(.btn) {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .97rem;
  padding: .4rem 0; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--turquoise); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface) 0%, var(--ivory) 100%); }
.hero::before {
  content: ""; position: absolute; right: -8%; top: -20%;
  width: 46vw; max-width: 640px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,185,206,.16) 0%, rgba(79,185,206,0) 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; position: relative; z-index: 1;
  padding-block: clamp(48px, 7vw, 104px);
}
.hero-copy { max-width: 36rem; }
.hero-copy h1 { margin-bottom: .6em; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 0; }
.hero-actions .btn-ghost .icon { color: #1fa855; }
.pebble figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.4rem 1.2rem; color: var(--white); font-size: .88rem; font-weight: 600; letter-spacing: .01em; background: linear-gradient(180deg, rgba(36,56,61,0) 0%, rgba(36,56,61,.55) 100%); }

.hero-media { position: relative; padding: 0 clamp(8px, 2vw, 32px) 0 0; }
.hero-media::before {
  content: ""; position: absolute; z-index: 0;
  right: 0; top: 6%; width: 52%; aspect-ratio: 1; border-radius: 50%;
  background: var(--mint-light);
}
.pebble { position: relative; z-index: 1; margin: 0; overflow: hidden; background: var(--mint-light); }
.pebble img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.pebble-hero { aspect-ratio: 4 / 3; border-radius: 160px 40px 160px 40px; }
.pebble-hero img { object-position: 50% 30%; }
.pebble-wide { aspect-ratio: 3 / 2; border-radius: 32px 16px 32px 32px; }
.pebble-portrait { aspect-ratio: 4 / 5; border-radius: 16px 32px 32px 32px; }


/* ---------- Credenciales ---------- */
.creds { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.creds-list li { padding: 1.5rem 1.6rem; border-left: 1px solid var(--line); }
.creds-list li:first-child { border-left: 0; padding-left: 0; }
.creds-list strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; line-height: 1.1; color: var(--teal); letter-spacing: -0.01em; }
.creds-list span { font-size: 1rem; color: var(--ink-soft); line-height: 1.35; display: block; margin-top: .3rem; }

/* ---------- Guía por edades ---------- */
.ages { background: var(--teal-deep); color: var(--white); padding-block: var(--section); position: relative; overflow: hidden; }
.ages::after {
  content: ""; position: absolute; left: -10%; bottom: -30%; width: 40vw; max-width: 520px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(145,204,180,.18), rgba(145,204,180,0) 70%); pointer-events: none;
}
.ages .container { position: relative; z-index: 1; }
.ages-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px; padding: 6px; margin-bottom: 1.4rem;
}
.ages-tab {
  border: 0; background: transparent; color: rgba(255,255,255,.85); cursor: pointer;
  border-radius: 16px; padding: .9rem .6rem; text-align: center; font-family: var(--font-body);
  transition: background .2s, color .2s;
}
.ages-tab strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.ages-tab span { font-size: .8rem; opacity: .8; }
.ages-tab:hover { background: rgba(255,255,255,.1); }
.ages-tab.is-active { background: var(--white); color: var(--teal-deep); box-shadow: var(--shadow-rest); }
.ages-tab.is-active span { opacity: .75; }
.ages-panel { background: var(--white); color: var(--ink); border-radius: var(--r-card); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-modal); }
.ages-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.ages-panel-head h3 { margin: .4rem 0 0; font-size: 1.8rem; color: var(--teal-deep); }
.chip { display: inline-block; background: var(--mint-light); color: var(--teal-ink); font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border-radius: var(--r-pill); }
.ages-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ages-cols > div { padding: .2rem 1.4rem; border-left: 1px solid var(--line); }
.ages-cols > div:first-child { padding-left: 0; border-left: 0; }
.ages-cols h4 { font-family: var(--font-body); font-weight: 700; font-size: .88rem; color: var(--teal); margin-bottom: .4rem; }
.ages-cols p { margin: 0; font-size: 1.08rem; color: var(--ink-soft); }
.ages-panel { transition: opacity .3s ease; }
.ages-panel.is-fading { opacity: 0; }

/* ---------- Servicios ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  border-radius: var(--r-pill); padding: .5rem 1.05rem; font: 600 .88rem var(--font-body); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--turquoise); color: var(--ink); }
.filter.is-active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.carousel-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.carousel-nav { display: flex; gap: .5rem; flex: none; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--teal-deep); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.carousel-btn:hover { border-color: var(--turquoise); background: var(--surface); }
.carousel-btn .icon { width: 20px; height: 20px; }
.carousel-btn .icon.flip { transform: scaleX(-1); }
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 0 14px; margin: -6px 0 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: .6rem; }
.carousel-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.carousel-dots i.is-active { background: var(--teal); width: 18px; border-radius: 3px; }
.service {
  flex: 0 0 calc((100% - 2 * clamp(14px, 2vw, 24px)) / 3); scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: .5rem; min-height: 200px;
}
.service.is-hidden { display: none; }
.service-icon { width: 30px; height: 30px; color: var(--teal); margin-bottom: .8rem; }
.service h3 { margin: 0; font-size: 1.45rem; }
.service p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Ruta de la consulta ---------- */
.route-grid { display: grid; grid-template-columns: 1fr minmax(340px, 440px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.route-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.route-btn {
  width: 100%; border: 0; background: transparent; border-radius: 20px;
  padding: 1rem 1.1rem; text-align: left; cursor: pointer; font-family: var(--font-body); color: var(--ink);
  display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: center;
  transition: background .2s, box-shadow .2s;
}
.route-btn:hover { background: rgba(255,255,255,.7); }
.route-step.is-active .route-btn { background: var(--white); box-shadow: var(--shadow-rest); }
.route-num { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-soft); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--white); transition: background .2s, color .2s, border-color .2s; }
.route-step.is-active .route-num { background: var(--teal); color: var(--white); border-color: var(--teal); }
.route-btn strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.route-sub { display: block; font-size: .88rem; color: var(--ink-soft); }
.route-text, .route-img { display: none; }
.route-panel { background: var(--white); border-radius: var(--r-card); padding: 12px 12px 4px; box-shadow: var(--shadow-rest); }
.route-panel-media { margin: 0; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--mint-light); }
.route-panel-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.route-panel-media[hidden] { display: none; }
.route-panel-body { padding: 1.1rem .6rem .8rem; }
.route-panel-title { margin: 0 0 .35rem; font-size: 1.6rem; }
.route-panel-text { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.route-panel-body, .route-panel-media { transition: opacity .3s ease; }
.route-panel.is-fading .route-panel-body, .route-panel.is-fading .route-panel-media { opacity: 0; }

/* ---------- Video ---------- */
.video-frame { max-width: 960px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-modal); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }

/* ---------- Enfoque funcional ---------- */
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.focus-grid .pebble-wide { aspect-ratio: auto; min-height: 560px; height: 100%; }
.focus-copy { align-self: center; }
.focus-copy p { color: var(--ink-soft); max-width: 36em; }
.stat { display: flex; align-items: baseline; gap: 1rem; margin: 1.6rem 0 1.4rem; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { white-space: nowrap; font-family: var(--font-display); font-size: 3rem; font-weight: 500; line-height: 1; color: var(--teal); letter-spacing: -0.02em; }
.stat span { color: var(--ink-soft); font-size: .98rem; max-width: 22em; }
.focus-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.focus-list strong { display: block; font-weight: 700; margin-bottom: .15rem; }
.focus-list span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Sobre la doctora ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-quote { margin: 0 0 1.6rem; position: relative; padding-left: 0; }
.about-quote .icon { width: 40px; height: 40px; color: var(--blush-deep); margin-bottom: .4rem; }
.about-quote p { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.3; color: var(--ink); margin: 0; max-width: 24em; }
.about-bio p { color: var(--ink-soft); max-width: 40em; }
.about-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.about-list li { padding: .8rem 0; border-top: 1px solid var(--line); }
.about-list strong { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.about-list span { color: var(--ink-soft); font-size: .88rem; }
.team { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.team-photo { margin: 0; border-radius: 32px 32px 16px 32px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--mint-light); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.team-copy h3 { font-size: 1.7rem; }
.team-copy p { color: var(--ink-soft); max-width: 30em; margin: 0; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; grid-auto-flow: dense; gap: 16px; }
.gallery-item { display: block; border-radius: 22px; overflow: hidden; background: var(--mint-light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item.alto { grid-row: span 2; }
.gallery-item.ancho { grid-column: span 2; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(36,56,61,.86); }
.lightbox img { max-width: min(94vw, 1100px); max-height: 86vh; width: auto; height: auto; border-radius: 18px; margin: auto; }
.lightbox-close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lightbox-close .icon { width: 22px; height: 22px; }

/* ---------- Preguntas frecuentes ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: .7rem; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 1.4rem; transition: border-color .2s; }
.faq-list details[open] { border-color: var(--turquoise); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.2rem 2.4rem 1.2rem 0; font-weight: 600; font-size: 1.15rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 66ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-icon { width: 24px; height: 24px; color: var(--teal); display: grid; place-items: center; flex: none; margin-top: .15rem; }
.contact-icon .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; font-weight: 700; font-size: .95rem; }
.contact-list span, .contact-list a { color: var(--ink-soft); font-size: .97rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--teal-deep); }
.contact-list a:hover { text-decoration: underline; }
.hours-row { display: block; }
.contact-link { display: block; margin-top: .3rem; }
.hours-row em { font-style: normal; color: var(--ink); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-rest); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid > .field { min-width: 0; }
.field select { max-width: 100%; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; }
.field label, .field-label { font-weight: 600; font-size: .9rem; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(79,185,206,.15); }
.field textarea { resize: vertical; min-height: 96px; }
.field.is-invalid input, .field.is-invalid select { border-color: #c2414d; }
.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.radios label { position: relative; display: flex; align-items: center; justify-content: center; padding: .8rem .5rem; cursor: pointer; font-size: .95rem; font-weight: 600; color: var(--ink-soft); border-left: 1.5px solid var(--line); transition: background .2s, color .2s; }
.radios label:first-child { border-left: 0; }
.radios input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radios label:has(input:checked) { background: var(--teal); color: var(--white); }
.radios label:has(input:focus-visible) { outline: 3px solid var(--turquoise); outline-offset: -3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.form-status { margin: .9rem 0 0; font-weight: 600; font-size: .95rem; min-height: 1em; }
.form-status.ok { color: #1f7a4d; }
.form-status.error { color: #c2414d; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: .8rem 0 0; }

.map-grid { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(14px, 2vw, 24px); }
.map-grid.map-only { grid-template-columns: 1fr; }
.map-photo { margin: 0; position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--mint-light); min-height: 360px; }
.map-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.map-photo figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 14px; padding: .6rem .9rem;
  font-size: .88rem; font-weight: 600; color: var(--ink);
}
.map-photo figcaption .icon { width: 18px; height: 18px; color: var(--teal); flex: none; }
.map-photo figcaption span { flex: 1; }
.map-photo figcaption a { color: var(--teal); text-decoration: none; white-space: nowrap; }
.map-photo figcaption a:hover { text-decoration: underline; }
.map { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(44px, 6vw, 72px) 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.4rem; }
.footer-logo { height: 42px; width: auto; filter: invert(1) brightness(1.6); opacity: .95; }
.footer p { margin: 1.1rem 0 0; max-width: 32em; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: .95rem; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer-social a:hover { background: var(--turquoise); }
.footer-social .icon { width: 18px; height: 18px; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .84rem; }
.footer-credit { display: inline-flex; align-items: center; gap: .5rem; }
.footer-credit img { height: 44px; width: auto; opacity: .95; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white);
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 12px 28px rgba(37,211,102,.38); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-tip {
  position: absolute; right: 70px; background: var(--white); color: var(--ink);
  font-size: .85rem; font-weight: 600; padding: .45rem .8rem; border-radius: 10px; white-space: nowrap;
  box-shadow: var(--shadow-lift); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }

/* ---------- Revelado al hacer scroll (una sola vez, discreto) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .reveal.no-observer { opacity: 1; transform: none; }

/* ---------- Entrada de la portada ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-media { animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .service { flex-basis: calc((100% - clamp(14px, 2vw, 24px)) / 2); }
  .creds-list { grid-template-columns: repeat(2, 1fr); }
  .creds-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .topbar-right { display: none; }
  .nav-toggle { display: inline-flex; }
  .cta-header { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .6rem var(--gutter) 1.2rem; display: none; box-shadow: var(--shadow-modal);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav a:not(.btn) { display: block; padding: .8rem 0; font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: .8rem; }
  .nav-cta .btn { width: 100%; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; width: 100%; margin-inline: auto; }
  .ages-tabs { grid-template-columns: repeat(2, 1fr); }
  .ages-panel-head { flex-direction: column; align-items: flex-start; }
  .focus-grid, .about-grid, .team, .contact-grid { grid-template-columns: 1fr; }
  .pebble-portrait { max-width: 460px; margin-inline: auto; width: 100%; }
  .about-grid .pebble-portrait { order: -1; }

  /* Ruta: en móvil cada paso muestra su foto y su texto */
  .route-grid { grid-template-columns: 1fr; }
  .route-panel { display: none; }
  .route-step.is-active .route-img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: 20px; margin: .4rem 0 .8rem; }
  .route-step.is-active .route-text { display: block; margin: 0 .4rem 1rem; color: var(--ink-soft); font-size: .97rem; }
  .map-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) { .nav-cta { display: none; } }

@media (max-width: 600px) {
  body { font-size: 1.06rem; }
  .topbar-list { gap: .7rem 1rem; font-size: .8rem; }
  .topbar-list li:first-child { display: none; }
  .service { flex-basis: 84%; }
  .carousel-bar { flex-direction: column; align-items: flex-start; }
  .creds-list { grid-template-columns: 1fr 1fr; }
  .creds-list li { padding: 1rem .8rem; border-left: 1px solid var(--line); }
  .creds-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .creds-list strong { font-size: 1.4rem; }
  .focus-list { grid-template-columns: 1fr; }
  .ages-cols { grid-template-columns: 1fr; }
  .ages-cols > div { padding: .8rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .ages-cols > div:first-child { border-top: 0; padding-top: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .form-actions .btn { width: 100%; }
  .about-list { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 280px; }
  .map-photo { min-height: 280px; }
  .pebble-hero { border-radius: 110px 28px 110px 28px; }
}
