/* ==========================================================
   Rediseñalo Pe — estilos
   ========================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca — colores tomados del logo */
  --blue: #006BFD;        /* azul eléctrico del logo: botones y enlaces */
  --blue-dark: #0052CC;
  --blue-soft: #EAF2FF;
  --sky: #00A4FD;         /* celeste del logo: degradados y detalles */
  --cyan: #00C8FC;        /* cian del logo: solo detalles o sobre fondo oscuro */
  --cyan-text: #006FA8;   /* cian oscurecido con contraste suficiente para texto */
  --cyan-soft: #E3F8FF;
  --ink: #050B14;         /* negro del fondo del logo */
  --navy: #08182C;        /* azul noche del logo: títulos */
  --bg: #F5F8FC;
  --white: #FFFFFF;
  --text: #08182C;
  --text-2: #475569;
  --border: #E2E8F0;
  --wa: #25D366;

  /* Tipografía */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Formas */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 24, 44, .06), 0 1px 3px rgba(8, 24, 44, .04);
  --shadow: 0 10px 30px -12px rgba(8, 24, 44, .18);
  --shadow-lg: 0 24px 60px -20px rgba(8, 24, 44, .28);

  --header-h: 68px;
  --container: 1160px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }

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

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .975rem; line-height: 1.2;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: .9rem; padding: .6em 1.1em; }
.btn-lg { font-size: 1.03rem; padding: .95em 1.6em; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 107, 253, .55); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: var(--blue); color: #fff; box-shadow: 0 10px 26px -8px rgba(0, 164, 253, .6); }
.btn-light:hover { background: var(--blue-dark); }
.btn.is-disabled { background: #F1F5F9; color: #64748B; border-color: #E2E8F0; box-shadow: none; cursor: not-allowed; }
.btn.is-disabled:hover { transform: none; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -.02em; }
.brand-text span { color: var(--blue); }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.brand-logo-lg { width: 112px; height: 112px; }
.brand-footer { flex-direction: column; align-items: flex-start; gap: 12px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.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); }

.site-nav {
  position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
  background: #fff; padding: 12px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  overflow-y: auto;
}
.site-nav.open { opacity: 1; transform: none; visibility: visible; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav ul a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--border);
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1.1rem;
}
.site-nav .btn { align-self: stretch; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  /* El desenfoque solo en escritorio: en móvil crearía un contexto que rompe el menú fijo. */
  .site-header { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; padding: 0; background: none; flex-direction: row; align-items: center; gap: 28px;
    transform: none; opacity: 1; visibility: visible; overflow: visible;
  }
  .site-nav ul { flex-direction: row; gap: 26px; }
  .site-nav ul a { padding: 6px 0; border: 0; font-size: .95rem; font-weight: 500; color: var(--text-2); }
  .site-nav ul a:hover { color: var(--navy); }
  .site-nav .btn { align-self: auto; }
}

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.eyebrow-light, .contact-box .eyebrow-light { color: var(--cyan); }

@media (min-width: 900px) {
  .section { padding: 104px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 64px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(0, 200, 252, .12), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, rgba(0, 107, 253, .10), transparent 70%),
    var(--bg);
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero .eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--cyan-text);
  background: var(--cyan-soft); padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.05rem, 7vw, 3.5rem); font-weight: 800; margin-bottom: 18px; max-width: 14ch; }
.lead { font-size: clamp(1.03rem, 2.4vw, 1.18rem); color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }

@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* Maqueta de celular */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.phone {
  width: 260px; height: 520px; border-radius: 40px; background: var(--navy); padding: 12px;
  box-shadow: var(--shadow-lg); position: relative;
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: var(--navy); border-radius: 0 0 12px 12px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 30px; background: #fff; overflow: hidden; padding: 38px 14px 14px; }
.m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.m-logo { width: 70px; height: 12px; border-radius: 6px; background: var(--navy); }
.m-menu { width: 18px; height: 12px; border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); position: relative; }
.m-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: var(--navy); }
.m-chips { display: flex; gap: 6px; margin-bottom: 14px; }
.m-chips span { height: 20px; flex: 1; border-radius: 999px; background: #F1F5F9; }
.m-chips .on { background: var(--blue); }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-card { border: 1px solid var(--border); border-radius: 12px; padding: 7px; }
.m-img { height: 92px; border-radius: 8px; background: linear-gradient(135deg, #DCEBFF, #B9D5FF); margin-bottom: 8px; }
.m-img.alt { background: linear-gradient(135deg, #CCF3FE, #99E6FD); }
.m-img.alt2 { background: linear-gradient(135deg, #E2E8F0, #CBD5E1); }
.m-line { height: 7px; border-radius: 4px; background: #E2E8F0; margin-bottom: 5px; }
.m-line.short { width: 60%; }
.m-wa {
  margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 9px; font-weight: 700; color: #fff; background: #0E7A55; /* verde WhatsApp oscurecido: contraste 5.3:1 */ border-radius: 999px; padding: 5px 0;
}
.m-wa svg { width: 10px; height: 10px; }
.bubble {
  position: absolute; bottom: 8px; right: 50%; margin-right: -170px;
  display: flex; align-items: center; gap: 8px; max-width: 250px;
  background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: .82rem; color: var(--navy); line-height: 1.35;
}
.bubble .icon { color: var(--wa); width: 22px; height: 22px; }
@media (max-width: 400px) { .bubble { right: 8px; margin-right: 0; } }

/* Servicios que integra la marca */
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags li {
  font-size: .82rem; font-weight: 600; color: var(--navy);
  padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
}

/* ---------- Posicionamiento ---------- */
.positioning { padding: 64px 0; background: #fff; }
.positioning-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.positioning-head h2 { font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.positioning-head p { color: var(--text-2); font-size: 1.05rem; }

.flow { display: grid; gap: 14px; }
.flow-step {
  position: relative; padding: 22px 22px 22px 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
}
.flow-label { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.flow-step p { color: var(--text-2); font-size: .96rem; }
.flow-brand { background: var(--ink); border-color: rgba(0, 164, 253, .45);
  background-image: radial-gradient(260px 140px at 100% 0%, rgba(0, 200, 252, .25), transparent 70%); }
.flow-brand .flow-label { color: var(--cyan); }
.flow-brand p { color: #C9D6E8; }
/* Flecha entre pasos: hacia abajo en móvil, hacia la derecha en escritorio */
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -13px; width: 12px; height: 12px; margin-left: -6px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); z-index: 1;
}
@media (min-width: 900px) {
  .positioning { padding: 88px 0; }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .flow-step:not(:last-child)::after { left: auto; right: -21px; top: 50%; bottom: auto; margin: -6px 0 0; transform: rotate(-45deg); }
}

/* Recorrido de 4 pasos (ecosistema): vertical hasta 1040px, horizontal después */
@media (min-width: 900px) {
  .flow-4 { grid-template-columns: 1fr; gap: 14px; max-width: 560px; margin: 0 auto; }
  .flow-4 .flow-step:not(:last-child)::after { left: 50%; right: auto; top: auto; bottom: -13px; margin: 0 0 0 -6px; transform: rotate(45deg); }
}
@media (min-width: 1040px) {
  .flow-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: none; }
  .flow-4 .flow-step:not(:last-child)::after { left: auto; right: -21px; top: 50%; bottom: auto; margin: -6px 0 0; transform: rotate(-45deg); }
}
.flow-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-tools li { font-size: .82rem; font-weight: 600; color: var(--blue-dark); background: var(--blue-soft); border: 1px solid #CFE0FF; padding: 3px 10px; border-radius: 999px; }
.flow-result { background: #fff; border: 2px solid var(--blue); }
.flow-result p { color: var(--cyan-text); font-weight: 600; }

/* Ecosistema y diagnóstico */
.ecosystem { background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%); }
.ecosystem .section-head h2 { font-size: clamp(1.4rem, 3.8vw, 2rem); }
.diagnostic {
  margin-top: 32px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid #CFE0FF;
  box-shadow: var(--shadow-sm); display: grid; gap: 16px;
}
.diagnostic-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.diagnostic-text { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); line-height: 1.35; }
@media (min-width: 760px) {
  .diagnostic { grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 28px 32px; }
}

.redesign { margin-top: 32px; text-align: center; }
.redesign-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.redesign-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.redesign-list li {
  padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--blue-dark); background: var(--blue-soft); border: 1px solid #CFE0FF;
}

/* ---------- Para quién ---------- */
.audience { padding: 36px 0; border-bottom: 1px solid var(--border); }
.audience-title { font-size: 1rem; font-weight: 700; color: var(--text-2); text-align: center; margin-bottom: 18px; letter-spacing: 0; }
.audience-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.audience-list li {
  padding: 8px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
  font-size: .92rem; font-weight: 500; color: var(--navy);
}

/* ---------- Tarjetas ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}

/* Servicios */
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service-icon svg.icon-fill { fill: currentColor; stroke: none; }

/* Pilares de servicio */
.pillars { display: grid; gap: 16px; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; gap: 20px; } }
.pillar { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar-head { display: flex; align-items: center; gap: 14px; }
.pillar-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-text); }
.pillar h3 { font-size: 1.18rem; font-weight: 700; }
.pillar > p { color: var(--text-2); font-size: .96rem; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pillar-tags li {
  font-size: .8rem; font-weight: 500; color: var(--navy); line-height: 1.3;
  padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
}
.pillar-note { font-size: .85rem; color: var(--text-2); }
@media (min-width: 760px) { .pillar { padding: 26px; } }
.pillars-note { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--text-2); }

.includes {
  margin-top: 40px; padding: 28px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
}
.includes h3 { font-size: 1.15rem; margin-bottom: 16px; }

.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: var(--text); }
.check-list .icon { color: var(--cyan-text); margin-top: .25em; }
.check-list li.muted { color: var(--text-2); }
.check-list li.muted .icon { color: #94A3B8; }
.includes-grid { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .includes-grid { grid-template-columns: 1fr 1fr; } }
.includes-grid li { font-size: .95rem; line-height: 1.4; }
@media (min-width: 900px) { .includes-grid { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }

/* ---------- Portafolio: proyectos realizados ---------- */
.cases { display: grid; gap: 28px; }
.case {
  display: grid; gap: 22px; padding: 14px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
/* Marco de navegador minimalista: el protagonista es el video */
.case-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--navy); }
.case-bar { display: flex; gap: 6px; padding: 9px 12px; background: #EEF2F7; border-bottom: 1px solid var(--border); }
.case-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.case-screen { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.case-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.case-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px; text-align: center;
  background:
    radial-gradient(420px 220px at 85% 0%, rgba(0, 200, 252, .22), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, rgba(0, 107, 253, .3), transparent 70%),
    var(--ink);
  background-size: cover; background-position: center top;
}
.case-fallback.has-poster { background-size: cover; }
.case-fallback.has-poster > * { display: none; }
.case-fallback-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.2rem, 4vw, 1.7rem); color: #fff; }
.case-fallback-note { font-size: .85rem; color: #9FB3CC; }
/* Botón de pausa/reproducción del video (WCAG 2.2.2) */
.case-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(5, 11, 20, .72); cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.case-toggle:hover { background: rgba(5, 11, 20, .9); }
.case-toggle::before, .case-toggle::after { content: ""; display: block; }
/* Pausa: dos barras */
.case-toggle::before { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
.case-toggle::after { display: none; }
/* Reproducir: triángulo */
.case-toggle.is-paused::before { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }

.case-body { padding: 0 8px 8px; }
.case-body h3 { font-size: 1.35rem; font-weight: 800; }
.case-category { color: var(--text-2); font-size: .95rem; margin-top: 2px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.case-tags li {
  font-size: .8rem; font-weight: 600; color: var(--blue-dark); line-height: 1.3;
  padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); border: 1px solid #CFE0FF;
}
.case-details { margin: 0; display: grid; gap: 4px; }
.case-details dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-text); margin-top: 8px; }
.case-details dt:first-child { margin-top: 0; }
.case-details dd { margin: 0; color: var(--text-2); font-size: .96rem; }

/* Escritorio: video grande a la izquierda y texto a la derecha, un proyecto por fila */
@media (min-width: 960px) {
  .cases { gap: 32px; }
  .case { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: 36px; padding: 18px; }
  .case-body { padding: 8px 16px 8px 0; }
}

.cases-note { margin: 24px auto 0; max-width: 720px; text-align: center; font-size: .92rem; color: var(--text-2); }

/* ---------- Confianza ---------- */
.trust {
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(0, 200, 252, .16), transparent 70%),
    radial-gradient(520px 300px at 0% 100%, rgba(0, 107, 253, .22), transparent 70%),
    var(--ink);
}
.trust .section-head h2 { color: #fff; }
.trust .section-head p { color: #C9D6E8; }
.trust-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.trust-grid li {
  position: relative; padding: 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(0, 164, 253, .28);
}
.trust-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 164, 253, .14); color: var(--cyan); margin-bottom: 12px; }
.trust-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: #6B8AAE; }
.trust-grid h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.trust-grid p { color: #C9D6E8; font-size: .93rem; }

/* ---------- Planes ---------- */
.plans-common { text-align: center; margin: -12px auto 28px; max-width: 760px; }
.plans-common p { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.plans-common ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.plans-common li {
  font-size: .85rem; font-weight: 500; color: var(--navy); padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
}

.plans { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { padding: 28px 24px; display: flex; flex-direction: column; }
.plan-kicker, .plan-badge { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.plan-kicker { color: var(--cyan-text); }
.plan-badge { color: #fff; background: var(--blue); padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: 8px 0 10px; letter-spacing: -.02em; line-height: 1.1; }
.price span { display: block; font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-bottom: 2px; }
.plan-desc { color: var(--text-2); font-size: .95rem; }
.plan .check-list { flex: 1; margin: 18px 0 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.plan .check-list small { display: block; font-size: .8rem; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.plan-mid { border: 2px solid var(--blue); box-shadow: var(--shadow); background: linear-gradient(180deg, #F3F8FF 0%, #fff 30%); }
@media (min-width: 960px) {
  .plan-mid { transform: translateY(-8px); }
}

.plans-price-note { margin-top: 20px; text-align: center; font-size: .9rem; color: var(--text-2); }
.plans-help { margin-top: 28px; }
.plans-help h3.diagnostic-text { margin-bottom: 6px; }
.plans-help-text { color: var(--text-2); font-size: .96rem; }
.plans-extra { margin-top: 18px; text-align: center; font-size: .92rem; color: var(--navy); font-weight: 500; }

.plan-notes {
  margin-top: 32px; padding: 24px 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border);
}
.plan-notes h3 { font-size: 1.05rem; margin-bottom: 12px; }
.plan-notes ul { display: grid; gap: 8px; }
.plan-notes li { position: relative; padding-left: 18px; color: var(--text-2); font-size: .94rem; }
.plan-notes li strong { color: var(--navy); font-weight: 600; }
.plan-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
@media (min-width: 900px) { .plan-notes ul { grid-template-columns: 1fr 1fr; column-gap: 36px; } }

/* ---------- Proceso ---------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
.step { display: flex; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: .96rem; }
.step .step-time { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--cyan-text); background: var(--cyan-soft); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.steps-note { text-align: center; color: var(--text-2); font-size: .9rem; margin-top: 22px; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } .step:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { flex-direction: column; }
  .step:last-child { grid-column: auto; }
}

/* ---------- Diagnóstico ---------- */
.diag-section { background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%); }
.diag-inner { display: grid; gap: 28px; align-items: center; }
.diag-copy h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.diag-copy > p:not(.eyebrow):not(.diag-small) { color: var(--text-2); font-size: 1.05rem; margin-bottom: 22px; max-width: 520px; }
.diag-small { margin-top: 10px; font-size: .88rem; color: var(--text-2); }
.diag-steps-card { background: #fff; border: 1px solid #CFE0FF; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.diag-steps-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.diag-steps { counter-reset: diag; display: grid; gap: 14px; }
.diag-steps li { counter-increment: diag; position: relative; padding-left: 44px; }
.diag-steps li::before {
  content: counter(diag); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: #fff; background: var(--blue);
}
.diag-steps strong { display: block; color: var(--navy); font-size: .98rem; }
.diag-steps span { display: block; color: var(--text-2); font-size: .92rem; }
@media (min-width: 900px) { .diag-inner { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #B9D5FF; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--text-2); }

/* ---------- Contacto ---------- */
.contact { padding-top: 0; }
.contact-box {
  border-radius: 24px; padding: 40px 26px; color: #C9D6E8;
  background:
    radial-gradient(520px 280px at 100% 0%, rgba(0, 200, 252, .28), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, rgba(0, 107, 253, .35), transparent 70%),
    var(--ink);
  border: 1px solid rgba(0, 164, 253, .35);
  display: grid; gap: 30px; box-shadow: var(--shadow-lg);
}
.contact-box h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.contact-box p { color: #C9D6E8; font-size: 1.05rem; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 380px; }
.contact-actions .btn { width: 100%; }
.contact-actions .btn.is-disabled { background: rgba(255, 255, 255, .85); color: #475569; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trust-strip li {
  font-size: .82rem; font-weight: 600; color: #E2F6FF; padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 200, 252, .1); border: 1px solid rgba(0, 200, 252, .35);
}
.contact-info { display: grid; gap: 6px; font-size: .95rem; }
.contact-info a { color: var(--cyan); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .28); }
.social svg { width: 20px; height: 20px; }
.contact-actions .contact-info { margin-top: 8px; }
@media (max-width: 419px) {
  .contact-box { padding: 34px 18px; }
  .diagnostic { padding: 22px 18px; }
  .contact-actions .btn, .diagnostic .btn, .diag-copy .btn { font-size: .95rem; padding-left: 1em; padding-right: 1em; }
}
@media (min-width: 900px) {
  .contact-box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 56px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CBD5E1; padding: 52px 0 24px; margin-top: 0; }
.footer-inner { display: grid; gap: 28px; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text span { color: var(--cyan); }
.footer-tagline { margin-top: 12px; color: #E2E8F0; }
.footer-small { margin-top: 4px; font-size: .9rem; color: #94A3B8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { color: #CBD5E1; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #12233A; font-size: .85rem; color: #94A3B8; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 559px) { .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; } .wa-float svg { width: 27px; height: 27px; } }
body:has(.wa-float:not([hidden])) .site-footer { padding-bottom: 96px; }

/* ---------- Animaciones discretas ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

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