/* =========================================================================
   Clínica Dental Sonrisa — Odontología familiar
   Estilos base (mobile-first, sin dependencias). Demo comercial de Zook.
   ========================================================================= */

:root {
  /* Paleta dental limpia */
  --sky:       #0ea5e9;   /* azul dental suave */
  --sky-600:   #0284c7;
  --sky-700:   #0369a1;
  --sky-050:   #e8f6fe;
  --aqua:      #5eead4;   /* aqua / menta (acentos claros) */
  --mint:      #14b8a6;   /* teal para iconos (contraste sobre claro) */
  --mint-050:  #e7faf6;

  --ink:       #0f172a;   /* azul muy oscuro para títulos */
  --text:      #334155;   /* gris de texto */
  --muted:     #64748b;
  --line:      #e2e8f0;
  --bg:        #ffffff;
  --bg-alt:    #f8fafc;

  --wa:        #22c55e;   /* verde WhatsApp */
  --wa-dark:   #16a34a;

  --amber:     #f59e0b;   /* avisos de cuidado (dolor/urgencia) */
  --amber-050: #fff7ea;

  --radius:      14px;
  --radius-lg:   22px;
  --radius-full: 999px;

  --shadow-sm:   0 1px 2px rgba(15,23,42,.05);
  --shadow-md:   0 10px 24px -12px rgba(15,23,42,.18);
  --shadow-lg:   0 24px 50px -20px rgba(15,23,42,.26);

  --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--sky); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- Botones -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; font-family: var(--font); font-weight: 600; font-size: .98rem;
  border: 1.6px solid transparent; border-radius: var(--radius-full); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { flex: none; }
.btn-sm { padding: .62rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--sky); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--sky-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost { background: #fff; color: var(--sky-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 26px -12px rgba(34,197,94,.7); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

/* -------------------------------------------------------------- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  color: #fff; border-radius: 13px;
  background: linear-gradient(140deg, var(--sky) 0%, var(--mint) 130%);
  box-shadow: var(--shadow-md);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: none; gap: 24px; }
.nav a { font-size: .93rem; font-weight: 500; color: var(--muted); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--sky); border-radius: 2px; transition: width .22s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-cta { display: none; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 12px 22px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: none; margin-top: 10px; }
.mobile-menu .btn { color: #fff; }

/* --------------------------------------------------------------- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 48px 0 52px; background: linear-gradient(180deg, var(--sky-050) 0%, #fff 82%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.86) 55%, rgba(255,255,255,.94) 100%); }
.hero-glow { position: absolute; z-index: 0; top: -160px; right: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(94,234,212,.34), transparent 66%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 34px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--sky-700); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--radius-full); font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.pill svg { color: var(--mint); }

.hero-copy h1 { font-size: clamp(2.25rem, 6.6vw, 3.55rem); font-weight: 700; letter-spacing: -.025em; }
/* Resaltado tipo marcador dibujado a mano que se pinta al cargar. */
.hero-copy h1 .hl {
  color: var(--sky); position: relative; padding: 0 .1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 52' preserveAspectRatio='none'%3E%3Cpath d='M5 33 C2 15 14 12 34 11 C120 6 210 9 300 6 C316 6 318 22 314 30 C312 37 316 44 300 45 C200 50 110 44 26 47 C6 48 3 44 5 33 Z' fill='%235eead4' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 62%;
  background-size: 0% .86em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: hlDraw 1.05s cubic-bezier(.22,1,.36,1) .55s forwards;
}
@keyframes hlDraw { to { background-size: 100% .86em; } }
.hero-copy .lead { margin: 20px 0 28px; font-size: 1.1rem; color: var(--muted); max-width: 42ch; text-wrap: pretty; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-cards { display: grid; gap: 12px; margin-top: 30px; }
.mini-card { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow-sm); }
.mini-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--sky-050); color: var(--sky); }
.mini-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mini-value { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; }

/* Visual del hero: mockup de tarjeta de cita (placeholder 100% CSS) */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0; width: min(80vw, 380px); aspect-ratio: 1;
  right: 2%; top: 4%; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: linear-gradient(145deg, var(--sky) 0%, var(--mint) 118%); opacity: .16;
  animation: blobmorph 13s ease-in-out infinite;
}
@keyframes blobmorph {
  0%,100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50%     { border-radius: 58% 42% 45% 55% / 44% 58% 42% 56%; }
}
.tooth-watermark {
  position: absolute; z-index: 0; width: min(58vw, 230px); height: auto;
  color: #fff; opacity: .9; right: 8%; top: 8%;
  filter: drop-shadow(0 20px 40px rgba(2,132,199,.28));
}
.tooth-watermark .fill { fill: url(#toothgrad); }

/* Tarjeta de cita mock */
.cita-card {
  position: relative; z-index: 2; width: min(90vw, 340px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px 18px 20px; overflow: hidden;
}
.cita-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cita-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: #fff; background: linear-gradient(140deg, var(--sky), var(--mint)); }
.cita-who { display: flex; flex-direction: column; line-height: 1.2; }
.cita-who b { font-size: .95rem; color: var(--ink); }
.cita-who span { font-size: .76rem; color: var(--muted); }
.cita-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--wa-dark); background: #eafaf0; border: 1px solid #c9efd6; padding: 5px 9px; border-radius: var(--radius-full); }
.cita-badge svg { width: 13px; height: 13px; }

.cita-row { display: flex; align-items: center; gap: 11px; padding: 13px 2px 0; }
.cita-row .ci { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--sky-050); color: var(--sky); }
.cita-row .ck { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cita-row .cv { font-size: .92rem; font-weight: 600; color: var(--ink); }

.cita-bubble {
  margin-top: 16px; background: var(--sky-050); border-radius: 4px 14px 14px 14px;
  padding: 11px 13px; font-size: .86rem; color: var(--ink); position: relative;
}
.cita-bubble small { display: block; margin-top: 5px; font-size: .68rem; color: var(--muted); text-align: right; }

.hero-float {
  position: absolute; z-index: 3; left: -4px; bottom: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: 9px 15px; font-size: .84rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-md); animation: floaty 5s ease-in-out infinite;
}
.hero-float svg { color: var(--mint); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ------------------------------------------------------------ Secciones -- */
/* Fondo sutil del contenido principal (fijo, muy claro para no restar
   legibilidad). El hero y la banda tienen su propio fondo opaco encima. */
#main { background-image: url("/img/content-bg.webp"); background-size: cover; background-position: center top; background-attachment: fixed; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: rgba(248, 250, 252, .72); }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head--left { margin-left: 0; margin-right: 0; text-align: left; max-width: 34ch; }
.section-head h2 { font-size: clamp(1.75rem, 4.6vw, 2.55rem); text-wrap: balance; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: 1fr; }

/* Confianza — banda de color (momento de impacto) */
.band {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(56px, 8vw, 92px) 0;
  background: linear-gradient(135deg, var(--sky-700) 0%, var(--sky) 54%, #12a594 130%);
}
.band-orb { position: absolute; top: -30%; right: -8%; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,234,212,.5), transparent 62%); pointer-events: none; }
.band .container { position: relative; z-index: 1; }
.band-head { max-width: 44ch; margin-bottom: clamp(34px, 5vw, 52px); }
.band-head h2 { color: #fff; font-size: clamp(1.85rem, 5vw, 2.7rem); text-wrap: balance; }
.band-head p { margin-top: 14px; color: rgba(255,255,255,.86); font-size: 1.08rem; text-wrap: pretty; }
.band-grid { display: grid; gap: 34px 28px; grid-template-columns: 1fr; }
.band-item h3 { color: #fff; font-size: 1.14rem; margin: 14px 0 7px; }
.band-item p { color: rgba(255,255,255,.82); font-size: .96rem; text-wrap: pretty; }
.band-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); }

/* Servicios — tabs + tarjetas */
.svc-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(26px, 4vw, 40px); }
.svc-tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: .93rem; color: var(--muted);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-full);
  padding: .62rem 1.15rem; transition: all .2s ease;
}
.svc-tab svg { width: 17px; height: 17px; color: var(--sky); }
.svc-tab:hover { border-color: var(--sky); color: var(--ink); }
.svc-tab.is-active { background: var(--sky); border-color: var(--sky); color: #fff; box-shadow: var(--shadow-md); }
.svc-tab.is-active svg { color: #fff; }

.svc-panel { display: none; }
.svc-panel.is-active { display: grid; }
.svc-panel[hidden] { display: none; }

.service { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--sky) 30%, var(--line)); }
.service-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(140deg, var(--sky-050), var(--mint-050)); color: var(--sky); margin-bottom: 16px; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.service:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service h3 { font-size: 1.1rem; margin-bottom: 8px; padding-right: 70px; }
.service p { color: var(--muted); font-size: .95rem; text-wrap: pretty; }
.svc-tag {
  position: absolute; top: 22px; right: 22px;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius-full);
  background: var(--sky-050); color: var(--sky-700); border: 1px solid #c7e9fb;
}
.svc-tag[data-t="Popular"] { background: var(--mint-050); color: #0f766e; border-color: #b9ece2; }
.svc-tag[data-t="Valoración"] { background: var(--amber-050); color: #b45309; border-color: #f6dfae; }

/* Tratamientos destacados */
.treat { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.treat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.treat-visual { height: 190px; position: relative; overflow: hidden; }
.treat-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.treat:hover .treat-visual img { transform: scale(1.05); }
.treat-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0) 45%, rgba(15,23,42,.30)); }
.treat-badge { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.94); color: var(--sky); box-shadow: var(--shadow-md); }
.treat-badge svg { width: 22px; height: 22px; }
.treat-body { padding: 22px 22px 24px; }
.treat-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.treat-body p { color: var(--muted); font-size: .96rem; }

.notice {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 26px;
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 3px solid var(--sky);
  border-radius: var(--radius); padding: 15px 18px; font-size: .92rem; color: var(--muted);
}
.notice svg { flex: none; color: var(--sky); margin-top: 2px; }
.notice.notice-warn { border-left-color: var(--amber); background: var(--amber-050); }
.notice.notice-warn svg { color: var(--amber); }

/* Antes de tu cita — flujo numerado */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; }
.flow-step { position: relative; padding-top: 6px; }
.flow-num {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--sky) 0%, var(--mint) 130%);
  border-radius: 50%; box-shadow: var(--shadow-md);
}
.flow-step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.flow-step p { color: var(--muted); font-size: .95rem; text-wrap: pretty; }

/* Antes de tu cita — foto + pasos */
.papas-grid { display: grid; gap: 28px; align-items: center; }
.papas-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.papas-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; aspect-ratio: 4 / 5; }
.flow--2 { gap: 22px 20px; }
.flow--2::before { display: none !important; }

/* Clínica / consultorio */
.consult-grid { display: grid; gap: 30px; align-items: center; }
.consult-copy .section-sub { margin: 14px 0 22px; }
.info-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 13px; }
.info-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--sky); }
.info-k { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.info-v { display: block; font-weight: 600; color: var(--ink); }

/* Mapa placeholder 100% CSS (patrón de retícula + pin) */
.map-placeholder { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); min-height: 340px; }
.map-placeholder iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-visual {
  position: absolute; inset: 0;
  background:
    linear-gradient(140deg, var(--sky-050), var(--mint-050)),
    repeating-linear-gradient(0deg, rgba(15,23,42,.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(15,23,42,.05) 0 1px, transparent 1px 46px);
  background-blend-mode: normal;
}
.map-visual::before {
  content: ""; position: absolute; left: -10%; top: 60%; width: 120%; height: 26px;
  background: rgba(14,165,233,.16); transform: rotate(-16deg);
}
.map-visual::after {
  content: ""; position: absolute; left: 20%; top: -20%; width: 22px; height: 140%;
  background: rgba(20,184,166,.14); transform: rotate(12deg);
}
.map-pin {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-100%); z-index: 2;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50% 50% 50% 8px;
  transform-origin: bottom; rotate: -45deg;
  background: linear-gradient(140deg, var(--sky), var(--sky-700)); color: #fff;
  box-shadow: var(--shadow-lg);
}
.map-pin svg { rotate: 45deg; width: 24px; height: 24px; }
.consult-photo { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.consult-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px); color: var(--sky-700);
  padding: 8px 13px; border-radius: var(--radius-full); font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow-md);
}
.consult-tag svg { color: var(--mint); }

/* Proceso de atención */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { display: flex; align-items: flex-start; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.step-num { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; font-weight: 700; color: var(--sky-700); background: var(--sky-050); border: 1px solid #cdeafb; }
.step h3 { font-size: 1.05rem; margin-bottom: 3px; }
.step p { color: var(--muted); font-size: .93rem; }

/* Reseñas */
.reviews { display: grid; gap: 18px; grid-template-columns: 1fr; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.review-stars { display: flex; gap: 3px; color: #fbbf24; margin-bottom: 12px; }
.review-stars svg { width: 18px; height: 18px; }
.review p { font-size: 1rem; color: var(--ink); font-style: italic; }
.review-who { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.review-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: #fff; font-weight: 700; font-family: var(--serif); background: linear-gradient(140deg, var(--sky), var(--mint)); }
.review-name { font-weight: 600; color: var(--ink); font-size: .92rem; }
.review-role { font-size: .8rem; color: var(--muted); }

/* FAQ (acordeón nativo) */
.faq-head { max-width: 640px; margin: 0 auto clamp(28px,4vw,44px); text-align: center; }
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--sky); transition: transform .25s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 18px; color: var(--muted); font-size: .97rem; }

/* CTA + formulario de agenda */
.cta-card { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.cta-copy { background: linear-gradient(150deg, var(--sky-700) 0%, var(--sky) 60%, var(--mint) 150%); color: #fff; padding: 40px 32px; }
.cta-copy h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta-copy p { color: rgba(255,255,255,.9); margin: 14px 0 24px; }
.cta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cta-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(255,255,255,.94); }
.cta-list svg { flex: none; color: #fff; }

.contact-form { background: #fff; padding: 34px 30px; }
.contact-form h3 { font-size: 1.25rem; margin-bottom: 18px; }
.field { margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font); font-size: .97rem; color: var(--ink);
  background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: 11px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px var(--sky-050); }
.field textarea { resize: vertical; }
.contact-form .btn-block { margin-top: 6px; }

.form-success { text-align: center; padding: 12px 6px; }
.success-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--mint-050); color: var(--mint); margin-bottom: 12px; }
.form-success strong { display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 6px; color: var(--ink); }
.form-success p { color: var(--muted); margin-bottom: 16px; }

/* --------------------------------------------------------------- Footer -- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 46px 0 30px; }
.footer-grid { display: grid; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #94a3b8; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-loc { margin-top: 12px; color: #94a3b8; font-size: .92rem; display: grid; gap: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer-nav a { color: #cbd5e1; font-size: .93rem; }
.footer-nav a:hover { color: #fff; }
.footer-note { margin-top: 22px; display: grid; gap: 6px; }
.footer-note p { font-size: .84rem; color: #7c8aa0; }
.footer-copy { color: #64748b !important; }

/* ------------------------------------------------------ WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0; overflow: hidden;
  background: var(--wa); color: #fff; height: 58px; border-radius: var(--radius-full);
  padding: 0 15px; box-shadow: 0 14px 30px -8px rgba(34,197,94,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -8px rgba(34,197,94,.7); }
.wa-float svg { flex: none; }
.wa-float-label { font-weight: 600; max-width: 0; opacity: 0; margin-left: 0; transition: max-width .3s ease, opacity .3s ease, margin-left .3s ease; white-space: nowrap; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 16px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* --------------------------------------------------------- Animaciones --- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-copy h1 .hl { background-size: 100% .86em; }
}

/* ------------------------------------------------------------- Responsive */
@media (min-width: 560px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .svc-panel.is-active { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .hero-cards { grid-template-columns: 1fr 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .wa-float-label { max-width: 120px; opacity: 1; margin-left: 9px; }
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none !important; }

  .hero { padding: 68px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; }
  .hero-copy .lead { font-size: 1.15rem; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .svc-panel.is-active { grid-template-columns: repeat(3, 1fr); }
  .band-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }

  .flow { grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
  .flow::before {
    content: ""; position: absolute; left: 23px; right: 23px; top: 29px; height: 2px;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--sky) 34%, transparent) 0 8px, transparent 8px 16px);
    z-index: 0;
  }
  .flow-step { z-index: 1; }

  .papas-grid { grid-template-columns: .9fr 1.1fr; gap: 44px; }
  .flow--2 { grid-template-columns: repeat(2, 1fr); gap: 26px 24px; }

  .consult-grid { grid-template-columns: 1fr 1.05fr; gap: 44px; }
  .cta-card { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero { padding: 88px 0 76px; }
  .section-head { margin-bottom: clamp(40px, 4vw, 56px); }
}
