/* Enfoque Visual — estilos del sitio. Primero celular. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/figtree-latin-600-normal.woff2') format('woff2'); }

:root {
  --azul: #1F4E8C;
  --azul-hover: #163A6A;
  --azul-claro: #5B8DEF;
  --azul-pastel: #DCE8FB;
  --lavanda: #E9E4FA;
  --menta: #DFF3EC;
  --durazno: #FDE8DD;
  --texto: #1B2433;
  --texto-2: #4B5567;
  --fondo: #FAFBFE;
  --blanco: #FFFFFF;
  --borde: #E3E8F2;
  --verde-wa: #1E7A4F;
  --oscuro: #1B2433;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radio: 18px;
  --radio-sm: 12px;
  --sombra: 0 10px 30px rgba(31, 78, 140, 0.08);
  --sombra-hover: 0 16px 40px rgba(31, 78, 140, 0.14);
  --header-h: 72px;
  --mobile-bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  padding-bottom: var(--mobile-bar-h);
  text-rendering: optimizeLegibility;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--texto); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.45rem); }
.h3-like { font-size: clamp(1.25rem, 2.6vw, 1.45rem); margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--azul-hover); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
address { font-style: normal; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.section { padding: 64px 0; }
.section-alt { background: var(--blanco); }
.section-pastel { background: var(--azul-pastel); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); margin-bottom: .75em; }
.lead { font-size: 1.15rem; color: var(--texto-2); max-width: 640px; }
.muted { color: var(--texto-2); }
.small { font-size: .9rem; }
.center { text-align: center; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-hover); color: #fff; box-shadow: var(--sombra); }
.btn-secondary { background: var(--blanco); color: var(--azul); border-color: var(--azul); }
.btn-secondary:hover { background: var(--azul-pastel); color: var(--azul-hover); }
.btn-wa { background: var(--verde-wa); color: #fff; }
.btn-wa:hover { background: #17633F; color: #fff; }
.btn-light { background: #fff; color: var(--azul); }
.btn-light:hover { background: var(--azul-pastel); color: var(--azul-hover); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.actions { display: flex; flex-direction: column; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 254, .94);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--borde); box-shadow: 0 4px 18px rgba(27,36,51,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); transition: min-height .25s ease; }
.site-header.is-scrolled .header-inner { min-height: 60px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { height: 48px; width: auto; transition: height .25s ease; }
.site-header.is-scrolled .logo img { height: 40px; }
@media (min-width: 1024px) { .logo img { height: 56px; } .site-header.is-scrolled .logo img { height: 46px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--borde);
  background: var(--blanco); color: var(--texto); cursor: pointer;
}
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--fondo); border-bottom: 1px solid var(--borde);
  padding: 8px 20px 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-nav li a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--borde); color: var(--texto); text-decoration: none; font-weight: 500; font-size: 1.08rem; }
.site-nav li a[aria-current="page"] { color: var(--azul); font-weight: 600; }
.site-nav .nav-cta { width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 28px; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: 22px; margin: 0; }
  .site-nav li a { min-height: 44px; border: 0; font-size: .97rem; padding: 0; position: relative; }
  .site-nav li a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
  .site-nav li a:hover::after, .site-nav li a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-cta { width: auto; }
}

/* ---------- Hero ---------- */
.hero { background: var(--azul-pastel); padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { color: #2E3A4D; margin-bottom: 1.5em; }
.hero-visual {
  position: relative; border-radius: 28px; background: var(--blanco); min-height: 280px;
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--sombra);
}
.hero-visual img.hero-logo { width: min(78%, 420px); }
.hero-visual .blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-visual .b1 { width: 220px; height: 220px; background: var(--lavanda); top: -60px; right: -50px; }
.hero-visual .b2 { width: 180px; height: 180px; background: var(--menta); bottom: -60px; left: -40px; }
.hero-visual > picture { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 500; }
.hero-badges svg { color: var(--azul); }

.page-hero { background: var(--azul-pastel); padding: 44px 0 48px; }
.page-hero .lead { color: #2E3A4D; }
.page-hero .actions { margin-top: 20px; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 18px; }
.card {
  background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sombra-hover); border-color: #D2DCEC; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--texto-2); }
.card .link-arrow { margin-top: auto; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--azul); background: var(--azul-pastel); flex: 0 0 auto; }
.bg-lavanda { background: var(--lavanda); }
.bg-menta { background: var(--menta); }
.bg-durazno { background: var(--durazno); }
.bg-pastel { background: var(--azul-pastel); }
.card.tint-lavanda { background: var(--lavanda); border-color: transparent; }
.card.tint-menta { background: var(--menta); border-color: transparent; }
.card.tint-durazno { background: var(--durazno); border-color: transparent; }
.card.tint-lavanda p, .card.tint-menta p, .card.tint-durazno p { color: #2E3A4D; }

.service { gap: 12px; }
.service .meta { display: grid; gap: 6px; font-size: .95rem; color: var(--texto-2); }
.service .meta b { color: var(--texto); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.chips li { background: var(--azul-pastel); color: var(--azul-hover); border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 500; }

.steps { counter-reset: paso; display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: paso; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px 20px 20px 72px; position: relative; }
.steps li::before { content: counter(paso); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; font-weight: 600; }
.steps h3 { font-size: 1.15rem; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--texto-2); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { color: var(--verde-wa); flex: 0 0 auto; margin-top: 3px; }

.list-links { list-style: none; padding: 0; margin: 0; }
.list-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--borde); color: var(--texto); text-decoration: none; font-size: 1.08rem; font-weight: 500; }
.list-links a svg { color: var(--azul); }
.list-links a:hover { color: var(--azul); }

/* ---------- Monturas (bloque inicio) ---------- */
.frames-teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.frames-teaser div { aspect-ratio: 4 / 3; border-radius: 20px; display: grid; place-items: center; color: var(--azul); }

/* ---------- Pupo iframes ---------- */
.frame-wrap { background: var(--blanco); border: 1px solid var(--borde); border-radius: 20px; padding: 6px; box-shadow: var(--sombra); }
.frame-fallback { margin-top: 12px; font-size: .95rem; color: var(--texto-2); text-align: center; }
.frame-fallback a { font-weight: 600; }

/* ---------- Reseñas ---------- */
.review { gap: 12px; }
.stars { display: flex; gap: 2px; color: #B7791F; }
.review blockquote { margin: 0; color: var(--texto); font-size: 1rem; }
.review .who { font-size: .9rem; color: var(--texto-2); }
.review .who b { color: var(--texto); }
.reviews-empty { text-align: center; padding: 36px 24px; align-items: center; }

/* ---------- Ubicación ---------- */
.info-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list svg { color: var(--azul); flex: 0 0 auto; margin-top: 2px; }
.info-list a { overflow-wrap: anywhere; }
.map-facade {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 300px;
  background: var(--azul-pastel); border: 1px solid var(--borde); display: grid; place-items: center; text-align: center; padding: 24px;
}
.map-facade .map-pattern { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--blanco) 2px, transparent 2px), linear-gradient(90deg, var(--blanco) 2px, transparent 2px);
  background-size: 48px 48px; }
.map-facade > div { position: relative; display: grid; gap: 12px; justify-items: center; }
.map-facade .pin { width: 56px; height: 56px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; box-shadow: var(--sombra); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Banda final ---------- */
.cta-band { background: var(--azul); color: #fff; border-radius: 28px; padding: 36px 24px; display: grid; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: var(--azul-pastel); margin: 0; }

/* ---------- Preguntas (acordeón) ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; font-size: 1.05rem; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--azul); border-bottom: 2px solid var(--azul); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--texto-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--texto); background: var(--fondo);
  border: 1.5px solid #CBD5E4; border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(91,141,239,.35); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--texto-2); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--azul); }
.form-error { color: #A12C2C; font-weight: 600; font-size: .95rem; margin: 0; }
.form .btn { width: 100%; }

/* ---------- Texto legal ---------- */
.legal { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px 22px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 1.2em; }
.legal p, .legal li { color: #2E3A4D; }
.legal .note { background: var(--durazno); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--borde); padding: 10px 8px; vertical-align: top; }

/* ---------- Pie ---------- */
.site-footer { background: var(--oscuro); color: #E6EBF3; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.site-footer p { margin: 0 0 .8em; }
.site-footer a { color: #E6EBF3; }
.site-footer a:hover { color: #fff; }
.footer-title { font-weight: 600; color: #fff; margin-bottom: .6em !important; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-col address, .footer-col p { line-height: 1.7; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.footer-bottom { border-top: 1px solid #2E3A4D; padding: 18px 20px; text-align: center; font-size: .88rem; color: #B9C4D6; }
.footer-bottom p { margin: 0; }

/* ---------- Barra móvil y botón flotante ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--blanco); border-top: 1px solid var(--borde); box-shadow: 0 -6px 24px rgba(27,36,51,.08);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; color: #fff; font-weight: 600; text-decoration: none; }
.mb-agendar { background: var(--azul); }
.mb-wa { background: var(--verde-wa); }
.wa-float { display: none; }

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .wa-float {
    display: grid; place-items: center; position: fixed; right: 24px; bottom: 24px; z-index: 60;
    width: 62px; height: 62px; border-radius: 50%; background: var(--verde-wa); color: #fff;
    box-shadow: 0 10px 28px rgba(30,122,79,.35); transition: transform .2s ease;
  }
  .wa-float:hover { transform: scale(1.06); color: #fff; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font-family: var(--serif); font-size: clamp(4rem, 18vw, 8rem); color: var(--azul); line-height: 1; margin-bottom: .1em; }

/* ---------- Disposición en pantallas grandes ---------- */
@media (min-width: 640px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { padding: 40px 44px; }
  .cta-band { padding: 48px 44px; }
}
@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero-visual { min-height: 420px; }
  .page-hero { padding: 72px 0 64px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
  .split-top { align-items: start; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; }
  .steps.horizontal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .split > * + * { margin-top: 32px; }
}

/* ---------- Movimiento ---------- */
.reveal.is-hidden { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .7s ease, transform .7s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.is-hidden { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .wa-float:hover { transform: none; }
}

@media print {
  .site-header, .mobile-bar, .wa-float, .cta-band { display: none !important; }
  body { padding: 0; background: #fff; }
}

/* ---------- Fotos ---------- */
.photo { display: block; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4 / 3; background: var(--blanco); }
.hero-photo .photo { height: 100%; }
.photo-card { border-radius: 28px; overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4 / 5; max-width: 460px; width: 100%; margin: 0 auto; background: var(--blanco); }
.photo-card .photo { height: 100%; }
@media (min-width: 900px) { .hero-photo { aspect-ratio: 5 / 4; } }
