/* =========================================================
   Faro Seguros — sitio institucional
   Paleta 60 / 30 / 10
   60% gris claro neutro · 30% grafito / negro mate · 10% rojo
   ========================================================= */
:root {
  /* 60% — fondo */
  --bg: #E8E9EB;
  --bg-soft: #F1F2F3;
  --bg-deep: #DCDDE0;
  /* 30% — estructura */
  --graphite: #1A1B1E;
  --graphite-2: #232428;
  --graphite-3: #2E2F34;
  --matte: #111214;
  /* 10% — acento */
  --red: #C8202B;
  --red-hover: #A9161F;
  --red-glow: rgba(200, 32, 43, .35);

  --ink: #17181B;
  --ink-2: #4A4D54;
  --ink-3: #6F727A;
  --line: rgba(23, 24, 27, .10);
  --on-dark: #F4F4F5;
  --on-dark-2: rgba(244, 244, 245, .68);
  --on-dark-3: rgba(244, 244, 245, .45);

  --font-title: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.anim-lock, html.anim-lock body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
section { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Vidrio estilo iOS ---------- */
.glass {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.06) 45%, rgba(255,255,255,.10) 100%),
    rgba(24, 25, 28, .32);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(255,255,255,.06),
    inset 0 0 0 .5px rgba(255,255,255,.08),
    0 24px 60px -12px rgba(0,0,0,.35);
  color: var(--on-dark);
}
.glass::before { /* brillo especular sutil en el borde superior */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 60% at 15% 0%, rgba(255,255,255,.18), transparent 55%);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .005em;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -8px var(--red-glow); }
.btn-red:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 14px 28px -8px var(--red-glow); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--graphite-3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200,32,43,.18); }
.eyebrow-light { color: rgba(255,255,255,.85); }

/* =========================================================
   NAVBAR (30% grafito)
   ========================================================= */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  width: min(var(--container), 100% - 24px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 66px; padding: 0 12px 0 18px;
  background: rgba(26, 27, 30, .92);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
  color: var(--on-dark);
  transition: background .3s;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-family: var(--font-title); font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.brand-txt small { font-size: 11px; color: var(--on-dark-3); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--on-dark-2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-current { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta-mobile { display: none; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-social { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--on-dark-2); transition: color .2s, background .2s; }
.nav-social:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-social svg { width: 18px; height: 18px; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; color: #fff; background: rgba(255,255,255,.08); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  margin: 92px 12px 0;
  min-height: min(calc(100svh - 104px), 780px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(24px, 4vw, 56px);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,18,20,.25) 0%, rgba(17,18,20,0) 28%),
    linear-gradient(15deg, rgba(17,18,20,.82) 0%, rgba(17,18,20,.45) 32%, rgba(17,18,20,0) 62%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content { max-width: 640px; color: #fff; }
.hero h1 { font-size: clamp(38px, 5.4vw, 74px); font-weight: 800; letter-spacing: -.035em; margin: 18px 0 18px; }
.hero h1 span { font-weight: 500; color: rgba(255,255,255,.78); }
.hero-sub { font-size: clamp(15px, 1.4vw, 17.5px); color: rgba(255,255,255,.82); max-width: 520px; }

.hero-card { width: min(360px, 100%); padding: 24px; border-radius: var(--radius-lg); display: grid; gap: 12px; }
.hero-card-title { font-family: var(--font-title); font-size: 22px; font-weight: 700; letter-spacing: -.01em; position: relative; }
.hero-card-sub { font-size: 14px; color: var(--on-dark-2); margin-top: -6px; margin-bottom: 4px; position: relative; }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; height: 50px; padding: 0 44px 0 18px;
  border-radius: 14px;
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.select-wrap select:hover { background: rgba(255,255,255,.16); }
.select-wrap select:focus { outline: none; border-color: rgba(255,255,255,.6); }
.select-wrap option, .field select option { color: var(--ink); background: #fff; }
.select-wrap svg, .field-select svg { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; pointer-events: none; color: rgba(255,255,255,.8); }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about { padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 7vw, 88px); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); }
.about h2 { font-size: clamp(32px, 4vw, 50px); }
.about-copy > p { font-size: 17.5px; color: var(--ink-2); }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.feature {
  background: var(--graphite);
  color: var(--on-dark);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex; flex-direction: column; gap: 22px;
  min-height: 132px;
  transition: transform .35s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.feature-ico svg { width: 20px; height: 20px; color: #fff; }
.feature p { font-size: 14.5px; font-weight: 500; line-height: 1.35; margin-top: auto; }

.stats {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 8px;
}
.stat { text-align: center; padding: 4px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-title); font-weight: 700; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* =========================================================
   SEGUROS
   ========================================================= */
.services { padding: clamp(64px, 8vw, 104px) 0; background: var(--bg-deep); }
.sec-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 48px); }
.sec-head h2 span { color: var(--ink-3); font-weight: 500; }
.sec-head p { color: var(--ink-2); font-size: 16.5px; }
.sec-head-center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head-center p { max-width: 520px; }

.stage {
  position: relative;
  min-height: 720px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; justify-content: flex-end; align-items: stretch;
  padding: 20px;
  background: var(--graphite);
  isolation: isolate;
}
.stage-bg { position: absolute; inset: 0; z-index: -1; }
.stage-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 50%;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.stage-bg img.is-active { opacity: 1; transform: scale(1); }
.stage-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(17,18,20,.7) 0%, rgba(17,18,20,.15) 40%, rgba(17,18,20,0) 60%); }
.stage-caption {
  position: absolute; left: clamp(24px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px);
  color: #fff; display: flex; flex-direction: column; gap: 2px;
  max-width: calc(100% - 560px);
}
.stage-count { font-size: 13px; letter-spacing: .18em; color: rgba(255,255,255,.7); }
.stage-count b { color: #fff; font-weight: 700; }
.stage-caption strong { font-family: var(--font-title); font-size: clamp(40px, 5.5vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: 6px; }
.stage-caption span:last-child { font-size: 17px; color: rgba(255,255,255,.85); }
.stage-caption.is-swapping strong, .stage-caption.is-swapping #stage-tag { animation: capIn .6s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

.stage-panel {
  width: min(500px, 100%);
  border-radius: 26px;
  padding: 22px;
  display: flex; flex-direction: column;
  max-height: 680px;
  overflow: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.panel-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); padding: 2px 6px 12px; position: relative; }
.acc { display: flex; flex-direction: column; gap: 8px; position: relative; }

.svc { border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .35s, border-color .35s; }
.svc:hover { background: rgba(255,255,255,.07); }
.svc.is-open { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
.svc h3 { font: inherit; letter-spacing: normal; }
.svc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left; border-radius: 18px; }
.svc-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); transition: background .35s, border-color .35s; }
.svc-ico svg { width: 21px; height: 21px; color: #fff; }
.svc.is-open .svc-ico { background: var(--red); border-color: transparent; box-shadow: 0 8px 20px -6px var(--red-glow); }
.svc-name { flex: 1; display: flex; flex-direction: column; font-family: var(--font-title); font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1.15; color: #fff; }
.svc-name small { font-family: var(--font-body); font-weight: 500; font-size: 13.5px; color: var(--on-dark-2); letter-spacing: 0; margin-top: 2px; }
.svc-chev { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: transform .45s var(--ease), background .3s; }
.svc-chev svg { width: 16px; height: 16px; }
.svc.is-open .svc-chev { transform: rotate(45deg); background: rgba(255,255,255,.16); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.svc.is-open .svc-body { grid-template-rows: 1fr; }
.svc-inner { overflow: hidden; padding: 0 16px; }
.svc-inner > * { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease); }
.svc.is-open .svc-inner > * { opacity: 1; transform: none; transition-delay: .12s; }
.svc-inner p { font-size: 15px; color: rgba(255,255,255,.88); line-height: 1.55; }
.chips { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .8; }
.svc-inner .btn { margin-bottom: 16px; height: 46px; }

/* Más coberturas (30% grafito) */
.more {
  margin-top: 20px;
  background: var(--graphite);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: 0 clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px);
  overflow: hidden;
}
.marquee { margin: 0 calc(-1 * clamp(20px, 3vw, 36px)); padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.07); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-title); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--on-dark-3); padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.more-head { display: flex; align-items: center; gap: 20px; padding: clamp(24px, 3vw, 36px) 0 24px; }
.more-badge { flex-shrink: 0; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 32px; letter-spacing: -.03em; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.more-head h3 { font-size: clamp(24px, 2.6vw, 32px); }
.more-head p { color: var(--on-dark-2); margin-top: 4px; max-width: 620px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.more-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--graphite-2);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--on-dark);
  transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.more-card:hover { transform: translateY(-3px); background: var(--graphite-3); border-color: rgba(255,255,255,.12); }
.more-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); margin-bottom: 10px; transition: background .3s; }
.more-card:hover .more-ico { background: var(--red); }
.more-card strong { font-family: var(--font-title); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.more-card span:last-child { font-size: 13.5px; color: var(--on-dark-2); line-height: 1.45; }
.more-card-cta { border: 1px dashed rgba(255,255,255,.22); background: transparent; }

/* =========================================================
   ACCESOS RÁPIDOS
   ========================================================= */
.quick { padding: clamp(72px, 9vw, 112px) 0 clamp(40px, 5vw, 64px); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin-inline: auto; }
.quick-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px;
  background: var(--graphite);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(0,0,0,.45); }
.quick-ico { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.quick-ico svg { width: 24px; height: 24px; }
.quick-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.quick-card strong { font-family: var(--font-title); font-size: 19px; font-weight: 700; }
.quick-card small { font-size: 14px; color: var(--on-dark-2); line-height: 1.45; margin-top: 2px; }
.quick-arrow { width: 22px; height: 22px; color: var(--on-dark-3); transition: color .3s, transform .3s var(--ease); }
.quick-card:hover .quick-arrow { color: #fff; transform: translate(2px, -2px); }

/* =========================================================
   CITA
   ========================================================= */
.quote-band { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 112px); }
.quote-band figure { margin: 0 auto; max-width: 820px; text-align: center; position: relative; }
.q-mark { display: block; font-family: var(--font-title); font-weight: 800; font-size: 96px; line-height: .6; color: var(--red); height: 48px; }
.quote-band blockquote { margin: 0; font-family: var(--font-title); font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.quote-band figcaption { margin-top: 26px; display: flex; flex-direction: column; font-size: 14px; color: var(--ink-3); }
.quote-band figcaption strong { color: var(--ink); font-size: 15.5px; }

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */
.faq { padding: clamp(72px, 9vw, 112px) 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq-intro h2 { font-size: clamp(32px, 4vw, 50px); }
.faq-intro > p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 8px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .3s, border-color .3s; }
.faq-item.is-open { border-color: rgba(23,24,27,.18); box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.faq-item h3 { font: inherit; letter-spacing: normal; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 22px 22px 24px; text-align: left; font-family: var(--font-title); font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.faq-chev { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); transition: transform .45s var(--ease), background .3s, color .3s; }
.faq-chev svg { width: 17px; height: 17px; }
.faq-item.is-open .faq-chev { transform: rotate(45deg); background: var(--graphite); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; padding: 0 24px; color: var(--ink-2); font-size: 15.5px; }
.faq-inner > *:first-child { margin-top: 0; }
.faq-inner > *:last-child { margin-bottom: 24px; }
.faq-inner p + p, .faq-inner p + ul, .faq-inner ul + p { margin-top: 12px; }
.faq-inner ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.faq-inner li { position: relative; padding-left: 22px; }
.faq-inner li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.faq-inner strong { color: var(--ink); }
.faq-src { font-size: 13.5px; color: var(--ink-3); }
.faq-src a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   CONTACTO (vidrio sobre imagen oscura)
   ========================================================= */
.contact { position: relative; padding: clamp(72px, 9vw, 120px) 0; background: var(--matte); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.9); }
.contact-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 90% at 85% 50%, rgba(17,18,20,.25), rgba(17,18,20,.7) 70%),
    linear-gradient(90deg, rgba(17,18,20,.94) 0%, rgba(17,18,20,.72) 45%, rgba(17,18,20,.35) 100%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 16px 0 14px; }
.contact-lead { color: var(--on-dark-2); font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.c-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.c-ico svg { width: 19px; height: 19px; }
.contact-list div { display: flex; flex-direction: column; font-size: 15px; color: var(--on-dark-2); }
.contact-list strong { color: #fff; font-size: 15.5px; }
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 18px; transition: transform .3s var(--ease), background .3s; }
.social:hover { transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; position: relative; }
.social span { display: flex; flex-direction: column; font-weight: 700; font-size: 15px; line-height: 1.2; position: relative; }
.social small { font-weight: 500; font-size: 12.5px; color: var(--on-dark-2); }

.contact-form { border-radius: 28px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 24px 16px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 15.5px;
  transition: border-color .25s, background .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { cursor: pointer; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { background: rgba(255,255,255,.11); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.12); box-shadow: 0 0 0 4px rgba(255,255,255,.07); }
.field label { position: absolute; left: 17px; top: 17px; font-size: 15.5px; color: var(--on-dark-2); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.6); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b73; }
.form-error { grid-column: 1 / -1; color: #ffb3b8; font-size: 14px; min-height: 0; position: relative; }
.form-error:empty { display: none; }
.form-note { text-align: center; font-size: 13px; color: var(--on-dark-3); position: relative; }
.contact-form .btn { position: relative; height: 54px; font-size: 15.5px; }
.contact-form > * { position: relative; }

/* =========================================================
   MAPA
   ========================================================= */
.map { position: relative; height: 440px; background: var(--bg-deep); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25) contrast(1.02); }
.map-card {
  position: absolute; left: 16px; top: 16px;
  background: #fff; color: var(--ink);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.3);
  display: flex; flex-direction: column; gap: 2px;
  max-width: 280px;
}
.map-card strong { font-family: var(--font-title); font-size: 18px; }
.map-card > span { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.map-card .btn svg { width: 16px; height: 16px; }
.map-card .btn:hover svg { transform: translate(2px, -2px); }

/* =========================================================
   FOOTER (30% grafito / negro mate)
   ========================================================= */
.footer { background: var(--matte); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--font-title); font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.footer-brand span { color: var(--on-dark-2); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-cols a, .footer-cols span { color: var(--on-dark-2); transition: color .2s; width: fit-content; }
.footer-cols a:hover { color: #fff; }
.f-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: var(--on-dark-3); flex-wrap: wrap; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--on-dark-2); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(26,27,30,.75); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; position: relative; }

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   ANIMACIÓN DEL LOGO
   ========================================================= */
.la { position: fixed; inset: 0; z-index: 200; background: #141517; display: none; overflow: hidden; }
.la.is-on, html.intro .la { display: block; }
.la-red { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: scale(0); will-change: transform; }
.la-red { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: var(--red); z-index: 1; }
.la-brand { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 22px); padding: 16px; }
.la-logo { width: clamp(64px, 9vw, 104px); height: auto; will-change: transform; }
.la-text { display: flex; flex-direction: column; gap: 6px; }
.la-word { font-family: var(--font-title); font-weight: 800; font-size: clamp(24px, 4.4vw, 54px); letter-spacing: .02em; line-height: 1; color: #fff; white-space: nowrap; }
.la-word span { display: inline-block; will-change: transform, opacity; }
.la-word span.sp { width: .3em; }
.la-word span.r { color: #D3D4D7; }
.la-tag { font-size: clamp(10px, 1.2vw, 13px); letter-spacing: .38em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 500; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 10px; }
  .nav-social { display: none; }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-social { display: grid; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    background: rgba(26, 27, 30, .96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 24px;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-inner { position: relative; }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 16px; font-size: 16px; border-radius: 14px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 8px; }

  .hero { grid-template-columns: 1fr; align-content: end; min-height: auto; padding-top: 220px; }
  .hero-card { width: 100%; }
  .about-grid, .sec-head, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat:nth-child(3) { border-left: 0; }

  .stage { flex-direction: column; justify-content: flex-end; padding: 12px; padding-top: 300px; min-height: 0; }
  .stage-bg img { object-position: 30% 0%; }
  .stage-bg::after { background: linear-gradient(180deg, rgba(17,18,20,0) 0%, rgba(17,18,20,.1) 35%, rgba(17,18,20,.5) 100%); }
  .stage-caption { top: 22px; bottom: auto; left: 22px; max-width: calc(100% - 44px); }
  .stage-caption strong { font-size: 44px; }
  .stage-panel { width: 100%; max-height: none; overflow: visible; padding: 14px; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .brand-txt small { display: none; }
  .nav-social { display: none; }
  .nav-inner { height: 60px; }
  .hero { margin: 86px 8px 0; padding: 200px 18px 18px; border-radius: 24px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature { flex-direction: row; align-items: center; min-height: 0; gap: 14px; }
  .feature p { margin-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; padding: 22px 4px; }
  .stage { border-radius: 24px; padding-top: 260px; }
  .svc-head { padding: 12px; gap: 12px; }
  .svc-name { font-size: 18px; }
  .svc-inner { padding: 0 12px; }
  .more-head { flex-direction: column; align-items: flex-start; }
  .more-badge { width: 60px; height: 60px; font-size: 26px; border-radius: 18px; }
  .more-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .faq-q { font-size: 17px; padding: 18px; }
  .faq-inner { padding: 0 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .map { height: 380px; }
  .la-word { font-size: 22px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* Ajustes de grilla */
.sec-head-center { gap: 14px; }
.more-grid { grid-template-columns: repeat(3, 1fr); }
.more-card-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
.more-card-cta .more-ico { margin-bottom: 0; }
.more-card-cta strong { white-space: nowrap; }
@media (max-width: 900px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .more-grid { grid-template-columns: 1fr; }
  .more-card-cta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .more-card-cta .more-ico { margin-bottom: 10px; }
}
.footer-bottom { padding-right: 72px; }

/* Celular: hero con texto debajo de las caras y fotos de servicios a escala */
@media (max-width: 900px) {
  .hero-media img { object-position: 42% 0%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(17,18,20,.15) 0%, rgba(17,18,20,0) 22%, rgba(17,18,20,.7) 48%, rgba(17,18,20,.92) 100%); }
  .stage-bg { bottom: auto; height: 460px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .stage-bg img { object-position: 50% 50%; }
  .stage-bg img:first-child { object-position: 30% 75%; }
}
@media (max-width: 560px) {
  .hero { padding-top: 300px; }
  .hero-media img { height: 62%; }
  .hero-media { background: var(--graphite); }
  .stage-bg { height: 400px; }
}
@media (max-width: 560px) {
  .hero-media img { -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
  .stage { padding-top: 290px; }
  .stage-bg { height: 340px; }
}
