/* ==========================================================================
   Clínica dental — hoja de estilos
   Paleta clínica cálida: verde azulado profundo sobre blanco arena.
   ========================================================================== */

:root {
  /* Marca */
  --teal-900: #08383D;
  --teal-800: #0A4E54;
  --teal-700: #0C6B72;
  --teal-600: #107C84;
  --teal-500: #14929A;
  --teal-200: #BFE0E2;
  --teal-100: #E3F2F3;
  --teal-50:  #F2F9F9;

  /* Neutros cálidos */
  --sand-50:  #FBF9F6;
  --sand-100: #F5F1EB;
  --white:    #FFFFFF;

  --ink-900:  #14211F;
  --ink-700:  #2E3C39;
  --ink-600:  #4A5754;
  --ink-400:  #7C8783;

  --line:     #E4E7E6;
  --line-strong: #C9D0CE;

  /* Estados */
  --wa:       #0E7A3C;   /* verde WhatsApp oscurecido para contraste AA */
  --wa-hover: #0B6231;
  --warn:     #A8410F;
  --ok:       #0C6B72;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(20, 33, 31, 0.05), 0 2px 8px rgba(20, 33, 31, 0.04);
  --shadow:    0 4px 16px rgba(20, 33, 31, 0.07), 0 1px 3px rgba(20, 33, 31, 0.05);
  --shadow-lg: 0 18px 40px rgba(20, 33, 31, 0.12), 0 4px 12px rgba(20, 33, 31, 0.06);

  --wrap: 1140px;
  --gutter: 20px;

  --head: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink-900);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  margin: 0;
  color: var(--ink-900);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible, .topbar :focus-visible, .site-foot :focus-visible,
.hero :focus-visible, .cta-band :focus-visible { outline-color: var(--white); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal-900); color: #fff; padding: .85rem 1.25rem;
  font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ===== Barra superior =================================================== */

.topbar {
  background: var(--teal-900);
  color: #D7E8E9;
  font-size: .8125rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  align-items: center; justify-content: space-between; padding-block: .55rem;
}
.topbar a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.topbar a:hover { border-bottom-color: var(--teal-200); }
.topbar-group { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; align-items: center; }

/* ===== Cabecera ========================================================= */

.site-head {
  background: rgba(251,249,246,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.0625rem; color: var(--ink-900); }
.brand-sub { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav-a {
  font-size: .9375rem; font-weight: 500; color: var(--ink-700);
  text-decoration: none; padding: .55rem .7rem; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav-a:hover { background: var(--teal-50); color: var(--teal-800); }
.nav-a.is-here { color: var(--teal-800); font-weight: 600; background: var(--teal-100); }

.lang {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8125rem; font-weight: 600; color: var(--ink-600);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .5rem .7rem; text-decoration: none; min-height: 44px;
}
.lang:hover { border-color: var(--teal-500); color: var(--teal-800); background: var(--teal-50); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .5rem .85rem; cursor: pointer;
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-family: var(--body);
  font-size: .875rem; font-weight: 600; color: var(--ink-900);
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 100%); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav-a { padding: .85rem .75rem; font-size: 1rem; }
  .nav .btn { margin-top: .6rem; text-align: center; }
}

/* ===== Botones ========================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-size: .9375rem; font-weight: 600;
  padding: .9rem 1.5rem; min-height: 48px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-800); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--teal-50); border-color: var(--teal-500); color: var(--teal-900); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-light { background: #fff; color: var(--teal-900); }
.btn-light:hover { background: var(--teal-100); color: var(--teal-900); }
.btn-lg { font-size: 1rem; padding: 1.05rem 1.9rem; min-height: 54px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ===== Heroe: marco fotografico con vidrio esmerilado ==================== */

.hero { background: var(--sand-50); padding-block: clamp(1rem, 2.5vw, 2.5rem); }
.hero .wrap { max-width: 1520px; }

.hero-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: clamp(540px, 76vh, 680px);
  background: #1c1917;
  border: 1px solid rgba(226, 232, 240, .8);
  box-shadow: 0 25px 50px -12px rgba(20, 33, 31, .25);
}

.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* Velo claro a la izquierda para que el titular se lea sobre la foto */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.92) 26%,
    rgba(255,255,255,.72) 42%,
    rgba(255,255,255,0) 68%);
}
.hero-scrim-b {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 45%);
}
@media (max-width: 900px) {
  .hero-scrim {
    background: linear-gradient(to bottom,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.90) 45%,
      rgba(255,255,255,.55) 70%,
      rgba(255,255,255,.2) 100%);
  }
}

.hero-inner {
  position: relative; z-index: 2; min-width: 0;
  min-height: clamp(540px, 76vh, 680px);
  padding: clamp(1.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 2rem;
}

.hero-top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem; align-items: start;
}
.hero-head { grid-column: span 6; max-width: 36rem; min-width: 0; }
.hero-side { grid-column: span 6; display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem; position: relative; min-width: 0; }
@media (max-width: 1024px) {
  .hero-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-head, .hero-side { grid-column: 1 / -1; max-width: none; }
  .hero-side { align-items: stretch; }
  .hero-side .glass { max-width: none; }
}

/* Distintivo superior con punto animado */
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,.7);
  color: var(--teal-700);
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero-badge .ping { position: relative; width: 8px; height: 8px; flex: none; }
.hero-badge .ping::before,
.hero-badge .ping::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--teal-500);
}
.hero-badge .ping::before { animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.hero h1 {
  text-transform: uppercase;
  color: var(--teal-900);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 800;
  margin-bottom: 1.15rem;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; transform: translateY(110%); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.js .hero.is-in h1 .line span { transform: translateY(0); }
.hero h1 .line:nth-child(1) span { transition-delay: .06s; }
.hero h1 .line:nth-child(2) span { transition-delay: .18s; }

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.7;
  color: var(--ink-700); max-width: 34rem; margin-bottom: 1.9rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease .34s, transform .6s ease .34s;
}
.js .hero.is-in .hero-lead { opacity: 1; transform: none; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease .44s, transform .6s ease .44s;
}
.js .hero.is-in .hero-actions { opacity: 1; transform: none; }

.btn-pill { border-radius: 999px; }
.btn-outline {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--teal-900); border: 2px solid var(--teal-900);
  letter-spacing: .2em; text-transform: uppercase;
  font-size: .75rem; font-weight: 700; padding: 1rem 2.1rem;
}
.btn-outline:hover {
  background: var(--teal-900); color: #fff; border-color: var(--teal-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(12,107,114,.45);
}

/* Tarjetas de vidrio esmerilado */
.glass {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(12,107,114,.12), 0 8px 24px -5px rgba(0,0,0,.05);
}
.hero-side .glass {
  width: 100%; max-width: 24rem; padding: 1.25rem 1.4rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease .5s, transform .7s ease .5s;
}
.js .hero.is-in .hero-side .glass { opacity: 1; transform: none; }
.hero-side .glass:nth-of-type(2) { transition-delay: .62s; }

.glass-row { display: flex; align-items: center; gap: .9rem; }
.glass-ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-700);
}
.glass-ic.is-wa { background: var(--wa); color: #fff; }
.glass-ic svg { width: 22px; height: 22px; }
.glass-row > span:last-child { display: block; min-width: 0; }
.glass-t { display: block; font-size: .9375rem; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
.glass-s { display: block; font-size: .75rem; color: var(--ink-600); margin-top: .2rem; line-height: 1.5; }
.glass-tag {
  display: inline-block; margin-top: .5rem;
  font-size: .75rem; font-weight: 600; color: var(--teal-800);
  background: var(--teal-50); border-radius: 999px; padding: .15rem .6rem;
}

/* Diente flotante decorativo */
.hero-gem {
  position: absolute; top: -34px; right: -26px; width: 86px; height: 100px;
  animation: floaty 7s ease-in-out infinite; pointer-events: none; z-index: 3;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.25));
}
@media (max-width: 1280px) { .hero-gem { display: none; } }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}

/* Franja inferior dentro del marco */
.hero-bottom {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem; align-items: center;
  border-top: 1px solid rgba(255,255,255,.45); padding-top: 1.5rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease .72s, transform .7s ease .72s;
}
.js .hero.is-in .hero-bottom { opacity: 1; transform: none; }

.hero-svcs { grid-column: span 7; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.hero-info { grid-column: span 5; }
@media (max-width: 1024px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-svcs, .hero-info { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero-svcs { grid-template-columns: 1fr; }
}

.svc-glass {
  background: linear-gradient(135deg, rgba(255,255,255,.88) 0%, rgba(240,248,250,.66) 100%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: 18px; padding: 1.1rem .7rem;
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  text-align: center; text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px -12px rgba(12,107,114,.3);
  border-color: rgba(12,107,114,.4);
}
.svc-glass .ic {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--teal-50); border: 1px solid var(--teal-200);
  color: var(--teal-700); display: grid; place-items: center;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.svc-glass:hover .ic { background: var(--teal-700); color: #fff; transform: scale(1.08); }
.svc-glass .ic svg { width: 22px; height: 22px; }
.svc-glass .lb {
  font-size: .75rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-900); line-height: 1.4;
}

.info-glass {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 18px; padding: 1.1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start;
}
.info-col { flex: 1 1 8rem; min-width: 0; }
.info-col .h {
  display: flex; align-items: center; gap: .45rem;
  font-size: .75rem; font-weight: 800; color: var(--ink-900);
  letter-spacing: -0.01em; margin-bottom: .3rem;
}
.info-col .h svg { width: 14px; height: 14px; color: var(--teal-700); flex: none; }
.info-col p { font-size: .75rem; line-height: 1.55; color: var(--ink-600); margin: 0; }
.info-col a { color: var(--ink-600); text-decoration: none; font-weight: 600; }
.info-col a:hover { color: var(--teal-700); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line span, .hero-lead, .hero-actions,
  .hero-side .glass, .hero-bottom {
    transition: none !important; transform: none !important; opacity: 1 !important;
  }
  .hero-gem { animation: none !important; }
  .hero-badge .ping::before { animation: none !important; }
}

/* ===== Secciones ======================================================== */

.sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec-tint { background: var(--teal-50); }
.sec-sand { background: var(--sand-100); }

.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--teal-700);
  background: var(--teal-100); padding: .4rem .75rem; border-radius: 99px;
  margin-bottom: .9rem;
}
.sec-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .75rem; max-width: 22ch; }
.sec-lead { color: var(--ink-600); max-width: 62ch; font-size: 1.0625rem; }
.sec-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.sec-head.center { text-align: center; }
.sec-head.center .sec-title, .sec-head.center .sec-lead { margin-inline: auto; }

/* ===== Texto + ilustración ============================================= */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 900px) { .split > .media { order: -1; } }

.media { margin: 0; min-width: 0; }
.media img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.media figcaption { font-size: .8125rem; color: var(--ink-400); margin-top: .6rem; }

/* Marca de agua por servicio en la cabecera de página */
.watermark {
  position: absolute; right: -28px; top: 50%; transform: translateY(-50%);
  width: clamp(180px, 22vw, 280px); height: auto;
  color: var(--teal-200); opacity: .55; pointer-events: none; z-index: 0;
}
@media (max-width: 860px) { .watermark { display: none; } }

/* ===== Rejilla de servicios ============================================ */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.card:hover { border-color: var(--teal-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.125rem; margin-bottom: .45rem; }
.card p { font-size: .9375rem; color: var(--ink-600); line-height: 1.6; }
.card .more {
  margin-top: auto; padding-top: 1rem;
  font-size: .875rem; font-weight: 600; color: var(--teal-700);
  display: inline-flex; align-items: center; gap: .35rem;
}
a.card:hover .more { color: var(--teal-900); }

/* ===== Prosa ============================================================ */

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); margin: 2.4rem 0 .85rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin: 1.9rem 0 .6rem; }
.prose ul { margin: 0 0 1.1em; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.prose li::before {
  content: ''; position: absolute; left: .15rem; top: .68em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500);
}
.prose strong { color: var(--ink-900); font-weight: 650; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

/* Pages carrying the appointment form: the form needs a real column, not the rail */
.layout-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 1080px) { .layout-form { grid-template-columns: 1fr; } }
@media (min-width: 1081px) { .layout-form > .form-card { position: sticky; top: 92px; } }

.aside {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 961px) { .aside { position: sticky; top: 92px; } }
.aside h2 { font-size: 1.0625rem; margin-bottom: .9rem; }
.aside p { font-size: .9375rem; color: var(--ink-600); }
.aside .btn { width: 100%; margin-top: .6rem; }
.aside-row { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; font-size: .9375rem; }
.aside-row .k { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); }

/* ===== Cabecera de página interior ===================================== */

/* ===== Cabecera de pagina interior: mismo marco que el heroe ============ */

.page-head {
  background: var(--sand-50);
  padding-block: clamp(1rem, 2.5vw, 2.5rem);
}
.page-head > .wrap { max-width: 1520px; }

.ph-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: clamp(240px, 32vh, 340px);
  background: #1c1917;
  border: 1px solid rgba(226, 232, 240, .8);
  box-shadow: 0 18px 38px -14px rgba(20, 33, 31, .22);
  display: flex; align-items: flex-end;
}
.ph-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  display: block;
}
.ph-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.93) 30%,
    rgba(255,255,255,.74) 48%,
    rgba(255,255,255,.08) 78%);
}
@media (max-width: 900px) {
  .ph-scrim {
    background: linear-gradient(to bottom,
      rgba(255,255,255,.94) 0%,
      rgba(255,255,255,.90) 55%,
      rgba(255,255,255,.62) 100%);
  }
}
.ph-inner {
  position: relative; z-index: 2; width: 100%;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  max-width: 44rem;
}

.page-head h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--teal-900); text-transform: uppercase; font-weight: 800;
  margin-bottom: .7rem; max-width: 20ch;
}
.page-head .lead {
  color: var(--ink-700); font-size: clamp(.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.6; max-width: 52ch; margin: 0;
}

.crumb {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: .9rem;
}
.crumb a { color: var(--teal-700); text-decoration: none; }
.crumb a:hover { color: var(--teal-900); text-decoration: underline; }
.crumb span { margin-inline: .45rem; color: var(--ink-400); }

.js .page-head h1 { opacity: 0; transform: translateY(16px); transition: opacity .6s ease .06s, transform .6s ease .06s; }
.js .page-head.is-in h1 { opacity: 1; transform: none; }
.js .page-head .lead { opacity: 0; transform: translateY(16px); transition: opacity .6s ease .2s, transform .6s ease .2s; }
.js .page-head.is-in .lead { opacity: 1; transform: none; }
.js .page-head .crumb { opacity: 0; transition: opacity .5s ease; }
.js .page-head.is-in .crumb { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .page-head h1, .js .page-head .lead, .js .page-head .crumb {
    opacity: 1 !important; transform: none !important;
  }
}

/* ===== Preguntas frecuentes ============================================ */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--head); font-size: 1.0625rem; font-weight: 600; color: var(--ink-900);
  padding: 1.25rem 2.5rem 1.25rem 0; position: relative; line-height: 1.4;
}
.faq-q::after {
  content: ''; position: absolute; right: .35rem; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item.is-open .faq-q::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-a { padding: 0 0 1.35rem; color: var(--ink-600); max-width: 68ch; }
.faq-item:not(.is-open) .faq-a { display: none; }
.no-js .faq-item .faq-a { display: block; }

/* ===== Formulario ======================================================= */

/* fieldset defaults to min-width:min-content and refuses to shrink below it */
.form-card fieldset { min-width: 0; max-width: 100%; }

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
  container-type: inline-size;
  min-width: 0;
}
.field { margin-bottom: 1.25rem; min-width: 0; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-700); margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--ink-400); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; max-width: 100%;
  font-family: var(--body); font-size: 1rem; color: var(--ink-900);
  background: var(--sand-50); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: .85rem .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff; border-color: var(--teal-500);
  outline: 3px solid var(--teal-100); outline-offset: 0;
}
.field-hint { font-size: .8125rem; color: var(--ink-600); margin-top: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
@container (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.consent {
  background: var(--teal-50); border: 1px solid var(--teal-200);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.consent + .consent { margin-top: -.5rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; }
.check input[type="checkbox"] {
  width: 26px; height: 26px; flex: none; margin-top: .1rem; accent-color: var(--teal-700);
}
/* the whole row is the tap target, not just the box */
.check { min-height: 44px; align-items: center; }
.check label { flex: 1; }
.check label { cursor: pointer; padding-block: .35rem; }
.check label { font-size: .875rem; line-height: 1.6; color: var(--ink-700); font-weight: 400; margin: 0; }
.check a { font-weight: 600; }

/* Codigo QR de WhatsApp: solo tiene sentido en pantallas grandes, donde el
   visitante no tiene WhatsApp a mano en el mismo dispositivo. */
.wa-qr { display: none; }
@media (min-width: 900px) {
  .wa-qr {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 1.1rem; padding: 1rem;
    background: var(--sand-100); border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .wa-qr img {
    width: 92px; height: 92px; flex: none;
    border-radius: 8px; background: #fff; padding: 4px;
    border: 1px solid var(--line);
  }
  .wa-qr p { font-size: .8125rem; line-height: 1.55; color: var(--ink-600); margin: 0; }
}

.form-note {
  font-size: .875rem; color: var(--ink-600);
  background: var(--sand-100); border-left: 3px solid var(--teal-500);
  padding: .85rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.25rem;
}
.form-note[data-state="error"] { border-left-color: var(--warn); color: var(--warn); }
.form-note[data-state="ok"] { border-left-color: var(--wa); color: var(--ink-700); }

/* ===== Franja de llamada a la acción =================================== */

.cta-band { background: var(--teal-800); color: #fff; }
.cta-band .wrap { padding-block: clamp(2.5rem, 5vw, 3.75rem); display: grid; gap: 1.5rem; align-items: center; grid-template-columns: minmax(0,1fr) auto; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; max-width: 24ch; }
.cta-band p { color: #D7E8E9; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ===== Botón flotante de WhatsApp ====================================== */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--wa); color: #fff; text-decoration: none;
  padding: .85rem 1.15rem; border-radius: 99px;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9375rem;
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 520px) { .wa-float .wa-label { display: none; } .wa-float { padding: .95rem; } }

/* ===== Pie ============================================================== */

.site-foot { background: var(--teal-900); color: #B7CFD1; padding-block: clamp(2.5rem, 5vw, 3.5rem) 0; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.25rem; padding-bottom: 2.5rem; }
.site-foot h2 { color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; font-family: var(--body); font-weight: 700; }
.site-foot p, .site-foot li { font-size: .9375rem; line-height: 1.7; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .5rem; }
.site-foot a { color: #DCEAEB; text-decoration: underline; text-decoration-color: rgba(220,234,235,.4); text-underline-offset: 3px; }
.site-foot a:hover { color: #fff; text-decoration-color: var(--teal-200); }
.foot-row { margin-bottom: .75rem; }
.foot-row .k { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #8FB0B3; }
.foot-legal {
  border-top: 1px solid rgba(183,207,209,.22); padding-block: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .8125rem; color: #8FB0B3;
}
.foot-legal a { color: #8FB0B3; }

/* ===== Aviso legal en línea ============================================ */

.notice {
  background: #FFF6E9; border: 1px solid #F0D9B5; border-left: 4px solid #C8862A;
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.75rem;
  font-size: .9375rem; color: #6B4A16;
}
.notice strong { color: #57370C; }

/* ===== Revelado suave =================================================== */

.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; } }

/* ===== Impresión ======================================================== */

@media print {
  .topbar, .nav, .nav-toggle, .wa-float, .cta-band, .site-foot { display: none; }
  body { background: #fff; font-size: 11pt; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero-lead, .hero-card dd { color: #000; }
}
