/* =====================================================================
   ServiMensajería Q · Hoja de estilos principal
   Estructura: 1. Tokens  2. Base  3. Componentes  4. Secciones  5. Utilidades
   ===================================================================== */

/* ---------- 1. Tokens de diseño ---------- */
:root {
  /* Azules tomados del logotipo */
  --navy-900: #071B3F;
  --navy-800: #0E2A5F;
  --navy-700: #1A4A9A;
  --navy-600: #1E5FB8;
  --navy-100: #E4EDF9;
  --brand: #0F6298;          /* azul del texto del logo */
  --accent: #2A9ACB;         /* cian del logo (acento) */
  --accent-600: #1B86B4;
  --accent-100: #E2F3FA;
  --aqua: #50C0C8;           /* verde agua de la flecha */
  --cta-gradient: linear-gradient(135deg, #1E5FB8 0%, #2A9ACB 60%, #50C0C8 100%);
  --wa: #25D366;
  --wa-600: #1EBE5A;
  --wa-100: #E3F8EC;
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --bg-softer: #FAFBFD;

  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 31, 58, .35);
  --shadow-float: 0 18px 40px -14px rgba(11, 31, 58, .32);

  --header-h: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand__text { font-family: var(--font-head); letter-spacing: -.01em; }
h1, h2, h3, h4 { font-weight: 700; color: var(--ink); }
p { color: var(--ink-soft); }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--navy-800); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.text-accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--brand); }

/* Botones */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-font-size: .95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-lg { --bs-btn-padding-x: 1.7rem; --bs-btn-padding-y: .95rem; --bs-btn-font-size: 1.02rem; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn i { font-size: 1.1em; line-height: 1; }

.btn-accent {
  background: var(--cta-gradient); color: #fff; border: 2px solid transparent; background-origin: border-box;
  box-shadow: 0 10px 24px -10px rgba(42, 154, 203, .7);
}
.btn-accent:hover, .btn-accent:focus-visible { filter: saturate(1.1) brightness(1.06); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(42, 154, 203, .8); }

.btn-wa { background: var(--wa); color: #fff; border: 2px solid var(--wa); box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .7); }
.btn-wa:hover, .btn-wa:focus-visible { background: var(--wa-600); border-color: var(--wa-600); color: #fff; transform: translateY(-2px); }
.btn-wa--icon { --bs-btn-padding-x: .85rem; --bs-btn-padding-y: .6rem; box-shadow: none; }
.btn-outline-wa { background: #fff; color: #128C45; border: 2px solid var(--wa); }
.btn-outline-wa:hover { background: var(--wa-100); color: #0F7A3B; border-color: var(--wa-600); transform: translateY(-2px); }

.btn-primary-dark { background: var(--navy-800); color: #fff; border: 2px solid var(--navy-800); box-shadow: 0 12px 26px -12px rgba(11, 31, 58, .6); }
.btn-primary-dark:hover, .btn-primary-dark:focus-visible { background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn-outline-dark-custom { background: transparent; color: var(--navy-800); border: 2px solid var(--navy-100); }
.btn-outline-dark-custom:hover { border-color: var(--navy-800); color: var(--navy-800); background: #fff; transform: translateY(-2px); }

.btn:focus-visible { outline: 3px solid rgba(28, 74, 133, .35); outline-offset: 2px; }

/* ---------- 3. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease), backdrop-filter .35s;
}
.site-header .navbar { height: 100%; padding: 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -14px rgba(11, 31, 58, .35);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 14px -6px rgba(7, 27, 63, .5); background: #fff; transition: transform .3s var(--ease); }
.site-header.is-scrolled .brand__mark { box-shadow: none; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__text { font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.02em; transition: color .3s; }
.brand__q { color: var(--accent); margin-left: .2rem; }
.site-header.is-scrolled .brand__text, .site-header.is-light .brand__text { color: var(--navy-800); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.nav-link {
  position: relative; display: inline-block; padding: .55rem .9rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .85);
  transition: color .25s, background-color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .35rem; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.site-header.is-scrolled .nav-link { color: var(--ink-soft); }
.site-header.is-scrolled .nav-link:hover, .site-header.is-scrolled .nav-link.active { color: var(--navy-800); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, background-color .3s; }
.site-header.is-scrolled .nav-toggle span, .site-header.menu-open .nav-toggle span { background: var(--navy-800); }
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; padding: 1.25rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .35s var(--ease), opacity .3s var(--ease), visibility 0s .35s;
  }
  .site-header.menu-open .nav-menu { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .site-header.menu-open { background: #fff; box-shadow: 0 6px 24px -14px rgba(11, 31, 58, .35); }
  .site-header.menu-open .brand__text { color: var(--navy-800); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-link { display: block; padding: .85rem .5rem; color: var(--ink) !important; border-radius: 10px; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active { background: var(--bg-soft); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .btn-wa--icon { --bs-btn-padding-y: .8rem; }
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff;
  padding: calc(var(--header-h) + 4.5rem) 0 6rem;
  min-height: 100svh; display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow--1 { width: 520px; height: 520px; background: var(--navy-600); top: -160px; right: -120px; }
.hero__glow--2 { width: 420px; height: 420px; background: rgba(80, 192, 200, .4); bottom: -200px; left: -140px; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__line { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 2; stroke-dasharray: 14 18; animation: dash 18s linear infinite; }
.hero__line--2 { stroke: rgba(42, 154, 203, .22); stroke-dasharray: 6 26; animation-duration: 12s; animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -640; } }

.hero__content { position: relative; z-index: 2; }
.hero .eyebrow { color: #A6E0F5; background: rgba(42, 154, 203, .12); padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(42, 154, 203, .25); }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.05; font-weight: 800; color: #fff; margin-bottom: 1.25rem; letter-spacing: -.03em; }
.hero__lead { font-size: 1.15rem; line-height: 1.65; color: rgba(255, 255, 255, .78); max-width: 34rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.hero__chips i { color: var(--wa); }

.hero__visual { position: relative; z-index: 2; max-width: 560px; margin-inline: auto; }
.hero__frame {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(-1.5deg);
  aspect-ratio: 4 / 3.3;
}
.hero__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0) 40%, rgba(11, 31, 58, .55) 100%);
}
.hero__frame::after {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; height: 70%; z-index: 1;
  background: radial-gradient(circle, rgba(42, 154, 203, .35), transparent 60%);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .18);
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* Tarjetas flotantes */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .75rem;
  background: #fff; color: var(--ink);
  padding: .8rem 1rem; border-radius: 14px;
  box-shadow: var(--shadow-float);
  min-width: 190px;
}
.float-card strong { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.float-card small { display: block; font-size: .75rem; color: var(--ink-muted); margin-top: .1rem; }
.float-card__icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; }
.float-card__icon--green { background: var(--wa-100); color: #128C45; }
.float-card__icon--accent { background: var(--accent-100); color: var(--accent-600); }
.float-card__icon--wa { background: var(--wa); color: #fff; }
.float-card--status { top: 6%; left: -8%; }
.float-card--done { bottom: 10%; right: -6%; }
.float-card--chat { bottom: -5%; left: 8%; }
.pulse { position: relative; width: 10px; height: 10px; margin-left: auto; border-radius: 50%; background: var(--wa); }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--wa); animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 991.98px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__chips { justify-content: center; }
  .hero__visual { max-width: 460px; }
  .float-card--status { left: -2%; }
  .float-card--done { right: -2%; }
  .hero__scroll { display: none; }
}
@media (max-width: 575.98px) {
  .hero .eyebrow { font-size: .68rem; letter-spacing: .05em; padding: .4rem .75rem; }
  .hero__cta .btn { width: 100%; }
  .float-card { min-width: 0; padding: .6rem .75rem; }
  .float-card small { display: none; }
  .float-card--chat { display: none; }
  .float-card--status { top: 4%; left: -4px; }
  .float-card--done { bottom: 6%; right: -4px; }
}

/* ---------- 5. Secciones genéricas ---------- */
.section { padding: 6rem 0; position: relative; }
.section--light { background: var(--bg-soft); }
.section--dark { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, .72); }
.section__head { max-width: 760px; margin: 0 auto 3.5rem; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; margin-bottom: 1rem; letter-spacing: -.02em; }
.section__lead { font-size: 1.1rem; line-height: 1.65; }
@media (max-width: 767.98px) {
  .section { padding: 4.5rem 0; }
  .section__head--split { grid-template-columns: 1fr; gap: .5rem; }
  .section__head { margin-bottom: 2.5rem; }
}

/* ---------- 6. Confianza ---------- */
.value-card {
  height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.6rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.value-card::after {
  content: ""; position: absolute; inset: auto -40px -40px auto; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-100), transparent 65%); opacity: 0; transition: opacity .35s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.value-card:hover::after { opacity: 1; }
.value-card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-700); font-size: 1.5rem; margin-bottom: 1.25rem;
  transition: background-color .35s, color .35s, transform .35s var(--ease);
}
.value-card:hover .value-card__icon { background: var(--navy-800); color: #fff; transform: rotate(-6deg) scale(1.05); }
.value-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.value-card p { font-size: .95rem; margin: 0; line-height: 1.6; }

/* ---------- 7. Servicios ---------- */
.service-card {
  height: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--navy-600));
  transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--accent)); color: #fff; font-size: 1.55rem;
  margin-bottom: 1.4rem; box-shadow: 0 10px 20px -10px rgba(11, 31, 58, .6);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p { font-size: .95rem; line-height: 1.6; flex: 1; }
.service-card__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy-700); margin-top: .5rem; }
.service-card__link i { transition: transform .25s var(--ease); }
.service-card__link:hover { color: var(--accent); }
.service-card__link:hover i { transform: translateX(4px); }
.services__note {
  margin: 2.5rem auto 0; text-align: center; font-size: .95rem; color: var(--ink-muted);
  display: flex; justify-content: center; align-items: center; gap: .5rem;
}

/* ---------- 8. Cómo funciona ---------- */
.steps { position: relative; }
.steps__track { position: absolute; left: 0; right: 0; top: 52px; height: 120px; width: 100%; pointer-events: none; display: none; }
@media (min-width: 768px) { .steps__track { display: block; } }
.steps__path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.steps__path--bg { stroke: rgba(255, 255, 255, .12); stroke-dasharray: 2 10; }
.steps__path--fg { stroke: var(--accent); }
.step { text-align: center; position: relative; padding: 0 .5rem; }
.step__badge {
  position: relative; width: 104px; height: 104px; margin: 0 auto 1.5rem; border-radius: 30px;
  display: grid; place-items: center; font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), border-color .35s;
}
.step:hover .step__badge { transform: translateY(-4px); border-color: rgba(42, 154, 203, .6); }
.step__num {
  position: absolute; top: -12px; right: -12px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--cta-gradient); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  display: grid; place-items: center; box-shadow: 0 8px 16px -6px rgba(42, 154, 203, .8);
}
.step h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.step p { font-size: .95rem; line-height: 1.6; max-width: 20rem; margin-inline: auto; }

/* ---------- 9. Empresas ---------- */
.business__visual { position: relative; max-width: 520px; margin-inline: auto; }
.business__frame { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; position: relative; }
.business__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 31, 58, 0) 55%, rgba(11, 31, 58, .45) 100%); }
.business__frame img { width: 100%; height: 100%; object-fit: cover; }
.business__visual::after {
  content: ""; position: absolute; z-index: -1; inset: 12% -8% -8% 12%; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent-100), var(--navy-100));
}
.float-card--business { bottom: 8%; left: -8%; }
@media (max-width: 991.98px) { .float-card--business { left: 4%; } }

.feature-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list__icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--navy-700); font-size: 1.2rem; box-shadow: var(--shadow-sm);
}
.feature-list strong { display: block; font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.feature-list span { font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- 10. Nosotros ---------- */
.about-logo { width: 220px; height: auto; margin-bottom: 1.5rem; }
.about-card {
  height: 100%; background: var(--bg-soft); border-radius: var(--radius-lg); padding: 1.75rem;
  border: 1px solid transparent; transition: background-color .35s, border-color .35s, transform .35s var(--ease);
}
.about-card:hover { background: #fff; border-color: var(--line); transform: translateY(-4px); box-shadow: var(--shadow); }
.about-card__icon { font-size: 1.7rem; color: var(--accent-600); margin-bottom: .9rem; display: block; }
.about-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.about-card p { font-size: .95rem; margin: 0; line-height: 1.6; }

/* ---------- 11. FAQ ---------- */
.faq {
  --bs-accordion-border-width: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--navy-800);
  --bs-accordion-btn-icon: none;
  --bs-accordion-btn-active-icon: none;
}
.faq .accordion-item {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius) !important;
  margin-bottom: .85rem; overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.faq .accordion-item:hover { border-color: #CBD5E1; }
.faq .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(42, 154, 203, .45);
  box-shadow: 0 14px 34px -18px rgba(11, 31, 58, .28);
}
.faq .accordion-button {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: 1.2rem 1.4rem; background: transparent; box-shadow: none !important;
  gap: 1rem; transition: color .25s, padding-bottom .25s;
}
.faq .accordion-button:hover { color: var(--navy-700); }
.faq .accordion-button:not(.collapsed) { color: var(--navy-800); padding-bottom: .65rem; }
.faq .accordion-button::after {
  content: ""; flex: 0 0 34px; width: 34px; height: 34px; margin-left: auto;
  background-color: var(--bg-soft); background-image: none; border-radius: 10px;
  background-image:
    linear-gradient(var(--navy-800), var(--navy-800)),
    linear-gradient(var(--navy-800), var(--navy-800));
  background-size: 14px 2px, 2px 14px; background-position: center; background-repeat: no-repeat;
  transition: transform .35s var(--ease), background-color .3s;
}
.faq .accordion-button:not(.collapsed)::after {
  transform: rotate(45deg); background-color: var(--accent-100);
  background-image: linear-gradient(var(--accent-600), var(--accent-600)), linear-gradient(var(--accent-600), var(--accent-600));
}
.faq .accordion-button:focus-visible { outline: 3px solid rgba(28, 74, 133, .25); outline-offset: -3px; border-radius: var(--radius); }
.faq .accordion-body {
  color: var(--ink-soft); padding: 0 1.4rem 1.35rem; line-height: 1.7; font-size: .98rem;
  position: relative;
}
.faq .accordion-body::before {
  content: ""; position: absolute; left: 1.4rem; top: .25rem; bottom: 1.35rem; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(42, 154, 203, .15));
}
.faq .accordion-body { padding-left: calc(1.4rem + 1rem); }
.faq .accordion-body p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .faq .accordion-button { font-size: .98rem; padding: 1.05rem 1.1rem; }
  .faq .accordion-body { padding: 0 1.1rem 1.15rem calc(1.1rem + .9rem); }
  .faq .accordion-body::before { left: 1.1rem; }
}

/* ---------- 12. Contacto ---------- */
.section--contact { background: var(--bg); padding-bottom: 7rem; }
.section--contact::before {
  content: ""; position: absolute; inset: 0 0 50% 0; background: var(--bg-soft); z-index: 0;
}
.contact-card {
  position: relative; z-index: 1; background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line);
}
.contact-card__aside {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 3rem 2.5rem;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.contact-card__aside::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -140px; bottom: -160px;
  background: radial-gradient(circle, rgba(42, 154, 203, .35), transparent 65%);
}
.contact-card__aside > * { position: relative; z-index: 1; }
.contact-card__aside h2 { color: #fff; }
.contact-card__aside p { color: rgba(255, 255, 255, .75); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; flex: 1; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 1.15rem; color: #fff; flex: 0 0 44px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }
.contact-list a, .contact-list span:not(.contact-list__icon) { color: #fff; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-card__form { padding: 3rem 2.5rem; }
@media (max-width: 767.98px) { .contact-card__aside, .contact-card__form { padding: 2.25rem 1.5rem; } }

.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.req { color: var(--accent); }
.form-control, .form-select {
  border-radius: 12px; border: 1.5px solid var(--line); padding: .8rem 1rem; font-size: .97rem;
  background: var(--bg-softer); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control:focus, .form-select:focus { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(28, 74, 133, .12); background: #fff; }
.form-check-input:checked { background-color: var(--navy-800); border-color: var(--navy-800); }
.form-check-label { font-size: .9rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn__spinner { display: none; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.form-alert { display: none; padding: .9rem 1.1rem; border-radius: 12px; font-size: .95rem; }
.form-alert.is-success { display: block; background: var(--wa-100); color: #0F7A3B; border: 1px solid rgba(37, 211, 102, .4); }
.form-alert.is-error { display: block; background: #FDECEC; color: #B42318; border: 1px solid #F5C2C0; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 4rem 0 2rem; }
.brand--footer .brand__text { color: #fff; }
.site-footer__tagline { margin-top: 1rem; font-size: .95rem; color: rgba(255, 255, 255, .6); max-width: 26rem; line-height: 1.6; }
.site-footer__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer__links a { color: rgba(255, 255, 255, .65); font-size: .95rem; transition: color .2s, padding-left .2s; }
.site-footer__links a:hover { color: #fff; padding-left: 4px; }
.site-footer__social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.05rem; transition: background-color .2s, transform .2s; }
.site-footer__social a:hover { background: var(--accent); transform: translateY(-2px); }
.site-footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; color: rgba(255, 255, 255, .45);
}

/* ---------- 14. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--wa); color: #fff; padding: .85rem 1rem .85rem .95rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .75);
  transform: translateY(20px); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease), opacity .4s var(--ease), visibility 0s .4s, background-color .2s;
}
.wa-float.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.wa-float:hover { background: var(--wa-600); color: #fff; }
.wa-float i { font-size: 1.5rem; line-height: 1; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .4s var(--ease), opacity .3s; }
.wa-float:hover .wa-float__label, .wa-float.show-label .wa-float__label { max-width: 200px; opacity: 1; }
@media (max-width: 575.98px) { .wa-float { right: 1rem; bottom: 1rem; } .wa-float__label { display: none; } }

/* ---------- 15. Animaciones de aparición ---------- */
[data-reveal], [data-reveal-group] > * { will-change: transform, opacity; }
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(28px); }
.js [data-hero] { opacity: 0; transform: translateY(24px); }
.js [data-hero-visual] { opacity: 0; transform: translateY(30px) scale(.97); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-reveal-group] > *, .js [data-hero], .js [data-hero-visual] { opacity: 1; transform: none; }
}
