/* ============================================================
   Salva tu Ramo · multi-page · dark theme
   ============================================================ */

:root {
  --bg: #07060B;
  --bg-soft: #0E0C16;
  --bg-card: #14111F;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --ink: rgba(255, 255, 255, 0.95);
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-mute: rgba(255, 255, 255, 0.5);
  --violet: #A78BFA;
  --violet-deep: #7C3AED;
  --cyan: #22D3EE;
  --wa: #25D366;
  --wa-deep: #128C7E;
  --serif: "Montserrat", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --mono: "Montserrat", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* — Grid de fondo sutil — */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 30%, transparent 80%);
  z-index: 0; pointer-events: none;
}

main { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* — Tipografía display — */
.display { font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.display.h1 { font-size: clamp(40px, 5.4vw, 76px); }
.display.h2 { font-size: clamp(32px, 3.8vw, 56px); }
.display.h3 { font-size: clamp(24px, 2.2vw, 32px); }
.display .em { color: var(--violet); }
.serif-em { color: var(--violet); font-weight: 400; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--violet);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18);
}

/* — Botones — */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-wa {
  background: var(--wa); color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
}
.btn-wa:hover { background: #1ebd5b; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35); }
.btn-ghost-dark {
  border: 1px solid rgba(255,255,255,0.18); color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.btn-violet {
  background: var(--violet-deep); color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}
.btn-violet:hover { background: #6d28d9; box-shadow: 0 10px 28px rgba(124, 58, 237, 0.4); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: padding 0.25s ease, background 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.scrolled {
  background: rgba(7, 6, 11, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.nav-brand img { height: 40px; width: auto; transition: height 0.25s ease; }
.nav.scrolled .nav-brand img { height: 32px; }

.nav-links {
  display: flex; list-style: none; gap: 28px;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink-soft); transition: color 0.15s ease;
  position: relative; padding: 6px 0;
}
.nav-links a:hover { color: var(--violet); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--violet);
}
.nav-cta { padding: 10px 18px; font-size: 13.5px; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-burger span {
  display: block; width: 22px; height: 1.6px; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* — Menú móvil overlay full-screen sólido — */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;                  /* dvh = dynamic viewport height en mobile */
  background: #07060B;             /* sólido, sin transparencia */
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 80px 24px 32px;         /* top: deja espacio para el header con la X */
  z-index: 200;                    /* por encima de WAFab y todo */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: navMobileIn 240ms cubic-bezier(.2,.7,.2,1);
  box-sizing: border-box;
}
@keyframes navMobileIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile a {
  font-family: "Inter", sans-serif;  /* sans, no serif: más compacto */
  font-size: 20px;                   /* bajo de 32 a 20 — cabe sin scroll */
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  display: block;
}
.nav-mobile a.active { color: var(--violet, #A78BFA); }
.nav-mobile .btn {
  margin-top: 24px;
  align-self: stretch;            /* botón ocupa todo el ancho */
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;            /* no se rompe a 2 líneas */
  border-bottom: none;             /* quitar el border-bottom heredado de .nav-mobile a */
}

/* Cuando el menú móvil está abierto, ocultar el WAFab (compite con el botón) y bloquear scroll del body */
.nav.open ~ .wafab,
body.nav-open .wafab { display: none !important; visibility: hidden !important; }
body.nav-open { overflow: hidden !important; position: fixed; width: 100%; }

/* Cuando el menú está abierto, el header (con la X y el logo) sube por encima del overlay */
.nav.open { z-index: 300 !important; background: transparent !important; backdrop-filter: none !important; }
.nav.open .nav-burger { position: relative; z-index: 301; }
.nav.open .nav-brand img { filter: brightness(1.2); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   PAGE HERO compartido
   ============================================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(34, 211, 238, 0.08), transparent 70%);
  pointer-events: none; z-index: -1;
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { max-width: 18ch; text-wrap: balance; }
.page-hero h1 em { color: var(--violet); }
.page-hero-sub {
  max-width: 50ch; margin-top: 24px;
  color: var(--ink-soft); font-size: 18px; line-height: 1.55;
  text-wrap: pretty;
}
.page-hero-extra { margin-top: 32px; }

@media (max-width: 720px) {
  .page-hero { padding: 130px 0 56px; }
  .page-hero-sub { font-size: 16px; }
}

/* — Page back / breadcrumb — */
.page-back { padding: 100px 0 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--violet); }

/* — Section base — */
.section { padding: 80px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

.section-head {
  max-width: 720px; margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .display { text-wrap: balance; }
.section-head .lede {
  margin-top: 22px; color: var(--ink-soft); font-size: 18px;
  text-wrap: pretty; max-width: 56ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-soft);
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 1;
}
.foot-top {
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.foot-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.foot-brand p {
  font-size: 14px; max-width: 36ch; color: var(--ink-soft);
  line-height: 1.55; margin-bottom: 14px;
}
.foot-rut {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute); margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--ink-soft); transition: color 0.15s ease; }
.foot-col a:hover { color: var(--violet); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 12px; color: var(--ink-mute);
}
.foot-legal { display: flex; gap: 20px; }
.foot-legal a { transition: color 0.15s ease; }
.foot-legal a:hover { color: var(--violet); }

@media (max-width: 720px) {
  .foot-top { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============================================================
   WAFAB flotante
   ============================================================ */
.wafab {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35), 0 4px 10px rgba(0, 0, 0, 0.25);
  font-size: 14px; font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wafab:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45), 0 6px 14px rgba(0, 0, 0, 0.3); }
.wafab::before {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  background: var(--wa); opacity: 0.35; z-index: -1;
  animation: wapulse 2.4s ease-in-out infinite;
}
@keyframes wapulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.12); opacity: 0; }
}
@media (max-width: 540px) {
  .wafab { padding: 14px; bottom: 16px; right: 16px; }
  .wafab-text { display: none; }
}

/* ============================================================
   HOME — logo protagonista
   ============================================================ */
.home-hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 0 60px;
}
.home-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(167, 139, 250, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(34, 211, 238, 0.15), transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 40%, rgba(124, 58, 237, 0.18), transparent 70%);
  pointer-events: none; z-index: 0;
}
.home-hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 720px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.home-eyebrow { margin-bottom: 32px; opacity: 0; animation: rise 0.6s ease 0.1s forwards; }
.home-logo {
  width: 100%; max-width: 320px;
  margin-bottom: 36px;
  filter: drop-shadow(0 20px 40px rgba(167, 139, 250, 0.35));
  opacity: 0; animation: rise 0.8s ease 0.2s forwards;
}
.home-tagline {
  font-family: var(--serif); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink-soft);
  max-width: 22ch; text-wrap: balance;
  margin-bottom: 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; animation: rise 0.6s ease 0.4s forwards;
}
.home-tagline em { color: var(--violet); }
.home-tagline-lead {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.home-tagline-rest {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 4px;
}
.home-ctas {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: rise 0.6s ease 0.55s forwards;
}
.home-meta {
  margin-top: 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
  opacity: 0; animation: rise 0.6s ease 0.7s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* — Home: navegación tipo editorial — */
.home-nav-section {
  padding: 80px 0 100px; position: relative;
}
.home-nav-head {
  max-width: 600px; margin: 0 auto 48px; text-align: center;
}
.home-nav-head .eyebrow { margin-bottom: 16px; }
.home-nav-head .lede {
  margin-top: 18px; color: var(--ink-soft); font-size: 17px;
  text-wrap: pretty;
}
.home-nav-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.home-nav-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative; overflow: hidden;
  min-height: 180px;
}
.home-nav-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, var(--accent, rgba(167,139,250,0.08)), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.home-nav-card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, 0.4); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); }
.home-nav-card:hover::before { opacity: 1; }
.home-nav-card .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-mute); text-transform: uppercase;
}
.home-nav-card h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.015em;
  margin-top: 4px;
}
.home-nav-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.home-nav-card .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet);
  margin-top: 4px;
}
.home-nav-card .arrow svg { transition: transform 0.25s ease; }
.home-nav-card:hover .arrow svg { transform: translateX(4px); }

.home-nav-card.featured {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.1), rgba(167, 139, 250, 0.02));
  border-color: rgba(167, 139, 250, 0.3);
}
.home-nav-card.featured .arrow { color: var(--violet); }
.home-nav-card.wa-card {
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.02));
  border-color: rgba(37, 211, 102, 0.3);
}
.home-nav-card.wa-card .arrow { color: var(--wa); }

@media (max-width: 900px) {
  .home-nav-grid { grid-template-columns: 1fr; }
}

/* — Home: testimonios — */
.home-testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.home-testi {
  padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.home-testi:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, 0.3); }
.home-testi-q {
  font-family: var(--serif); font-weight: 700;
  font-size: 18px; line-height: 1.4; letter-spacing: -0.01em;
  color: var(--ink); flex: 1;
}
.home-testi-q::before { content: "“"; color: var(--violet); margin-right: 2px; }
.home-testi-q::after { content: "”"; color: var(--violet); margin-left: 2px; }
.home-testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.home-testi-i {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; color: #0E0C16;
  flex-shrink: 0;
}
.home-testi-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.home-testi-where { font-size: 12px; color: var(--ink-mute); }
@media (max-width: 900px) { .home-testi-grid { grid-template-columns: 1fr; } }

/* — Home: trust strip — */
.home-trust {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.home-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.home-trust-item {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px;
}
.home-trust-item strong {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.005em; text-transform: none;
}
@media (max-width: 720px) {
  .home-trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ============================================================
   CARDS — services / team / etc
   ============================================================ */
.card-grid {
  display: grid; gap: 16px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, 0.3); }
.card.featured {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(167, 139, 250, 0.02));
  border-color: rgba(167, 139, 250, 0.3);
}
.card-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--violet);
}
.card h3 {
  font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em;
}
.card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.card-meta {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-mute);
}
.card-meta strong { font-family: var(--sans); font-size: 18px; color: var(--ink); letter-spacing: -0.01em; font-weight: 500; }
.card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--violet); margin-top: 4px;
}

/* ============================================================
   SERVICES list (full)
   ============================================================ */
.svc-list {
  display: flex; flex-direction: column; gap: 0;
}
.svc-row {
  display: grid; grid-template-columns: 80px 1.6fr 1fr auto;
  gap: 32px; align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease;
}
.svc-row:hover { padding-left: 12px; }
.svc-row .num {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--ink-mute); text-transform: uppercase;
}
.svc-row .info h3 {
  font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.svc-row .info p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; max-width: 56ch; }
.svc-row .meta {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.06em; color: var(--ink-mute);
}
.svc-row .meta strong { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink); display: block; letter-spacing: -0.01em; margin-bottom: 4px; }

@media (max-width: 900px) {
  .svc-row {
    grid-template-columns: 1fr; gap: 12px;
    padding: 24px 0;
  }
  .svc-row .num { font-size: 10.5px; }
  .svc-row .info h3 { font-size: 22px; }
}

/* ============================================================
   PROCESS steps
   ============================================================ */
.proc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative;
}
.proc-grid::before {
  content: "";
  position: absolute; top: 28px; left: 60px; right: 60px;
  height: 1px; background: var(--line);
  z-index: 0;
}
.proc-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 20px;
  background: var(--bg);
}
.proc-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #0E0C16;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}
.proc-time {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--violet);
}
.proc-step h4 {
  font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em;
}
.proc-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.proc-extra {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-mute); text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid::before { display: none; }
}
@media (max-width: 540px) {
  .proc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.team-card {
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.team-card:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, 0.3); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 28px; color: #0E0C16;
  margin-bottom: 18px;
}
.team-name {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.team-title { font-size: 13px; color: var(--violet); margin-bottom: 4px; }
.team-years { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-mute); margin-bottom: 12px; }
.team-spec { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESIS
   ============================================================ */
.tesis-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  align-items: start;
}
.tesis-weeks {
  display: flex; flex-direction: column; gap: 0;
}
.tesis-week {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.tesis-week-w {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--violet); text-transform: uppercase;
  padding-top: 4px;
}
.tesis-week-t {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.tesis-week-d { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.tesis-tutor {
  padding: 32px;
  border: 1px solid rgba(167, 139, 250, 0.3); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(167, 139, 250, 0.02));
  position: sticky; top: 100px;
}
.tesis-tutor-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.tesis-tutor-photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  padding: 2px;
  position: relative;
  box-shadow: 0 8px 24px rgba(124, 61, 255, 0.25);
}
.tesis-tutor-photo::after {
  content: "";
  position: absolute;
  bottom: 4px; right: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--wa);
  border: 2px solid #0E0C16;
  z-index: 2;
}
.tesis-tutor-photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0E0C16;
}
.tesis-tutor-name {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.015em;
}
.tesis-tutor-title { font-size: 13px; color: var(--violet); margin-top: 4px; }

.tesis-includes { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.tesis-includes li {
  font-size: 14px; color: var(--ink-soft); padding-left: 24px;
  position: relative; line-height: 1.5;
}
.tesis-includes li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--violet); font-weight: 600;
}

.tesis-payment {
  margin-top: 24px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.tesis-payment-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px;
}
.tesis-payment p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 900px) {
  .tesis-grid { grid-template-columns: 1fr; gap: 40px; }
  .tesis-tutor { position: static; }
  .tesis-week { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex; flex-direction: column; gap: 0;
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--violet); }
.faq-toggle {
  width: 24px; height: 24px; flex-shrink: 0;
  position: relative;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.4px; background: var(--ink-soft);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a {
  padding: 0 0 22px 0;
  color: var(--ink-soft); font-size: 15px; line-height: 1.65;
  max-width: 64ch;
}

/* ============================================================
   CALCULADORA
   ============================================================ */
.calc {
  max-width: 800px;
  padding: 36px;
  border: 1px solid rgba(167, 139, 250, 0.3); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.06), rgba(167, 139, 250, 0.02));
}
.calc-fields {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.calc-field label {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 8px;
}
.calc-field select, .calc-field input {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--ink); font-family: var(--sans); font-size: 14.5px;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.calc-field select:hover, .calc-field select:focus { border-color: var(--violet); outline: none; }
.calc-field select option { background: var(--bg-card); color: var(--ink); }

.calc-result {
  padding: 28px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.calc-range {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 5vw, 56px); line-height: 1;
  letter-spacing: -0.02em; color: var(--violet);
}
.calc-note {
  font-size: 13px; color: var(--ink-soft); max-width: 50ch; line-height: 1.5;
}

@media (max-width: 720px) {
  .calc { padding: 24px; }
  .calc-fields { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
.contact-card {
  padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  display: flex; flex-direction: column; gap: 20px;
}
.contact-card.wa {
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.02));
  border-color: rgba(37, 211, 102, 0.3);
}
.contact-card h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.015em;
}
.contact-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink-soft);
}
.contact-list li strong { font-weight: 500; color: var(--ink); }
.contact-list a { color: var(--ink); transition: color 0.15s ease; }
.contact-list a:hover { color: var(--violet); }

.contact-meta {
  margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   TAREAS Y PRUEBAS — sub-servicio
   ============================================================ */
.subsvc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.subsvc-card {
  padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
}
.subsvc-card h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.subsvc-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }
.subsvc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.subsvc-list li {
  font-size: 14px; color: var(--ink-soft); padding-left: 22px;
  position: relative; line-height: 1.5;
}
.subsvc-list li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--violet);
}
.subsvc-meta {
  display: flex; gap: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  margin-bottom: 20px;
}
.subsvc-meta-item {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.subsvc-meta-item strong {
  display: block; font-family: var(--sans); font-size: 18px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em; margin-top: 4px;
}

@media (max-width: 720px) {
  .subsvc-grid { grid-template-columns: 1fr; }
  .subsvc-card { padding: 24px; }
}

/* ============================================================
   CTA BAND (final de cada subpágina)
   ============================================================ */
.cta-band {
  margin-top: 80px; padding: 56px var(--gutter); text-align: center;
  border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(167, 139, 250, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-band-inner { position: relative; max-width: 600px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-band h2 em { color: var(--violet); }
.cta-band p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; margin-bottom: 28px; }
.cta-band-btns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-band-meta {
  margin-top: 20px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase;
}

/* ============================================================
   LEGAL pages (Privacidad / Términos)
   ============================================================ */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: 160px var(--gutter) 80px;
  position: relative;
}
.legal-page h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.legal-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--violet);
  margin-bottom: 36px;
}
.legal-page h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: 24px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 36px; margin-bottom: 12px;
}
.legal-page p {
  font-size: 15px; color: var(--ink-soft); line-height: 1.7;
  margin-bottom: 14px;
}
.legal-page ul {
  margin-bottom: 14px; padding-left: 20px;
  color: var(--ink-soft);
}
.legal-page li {
  font-size: 15px; line-height: 1.7; margin-bottom: 6px;
}
.legal-page strong { color: var(--ink); font-weight: 500; }
.legal-page a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.legal-page a:hover { color: var(--cyan); }

.legal-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(7, 6, 11, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.legal-nav .nav-brand img { height: 32px; }
.legal-nav .btn { padding: 10px 18px; font-size: 13.5px; }


/* ============================================================
   HOME · NUEVOS BLOQUES (CRO 2026-05)
   ============================================================ */

/* — Hero agresivo — sobreescritura de tagline para nuevo home */
.home-hero-headline {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.02; letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch; text-wrap: balance;
  margin-top: 8px; margin-bottom: 24px;
}
.home-hero-headline em { color: var(--violet); }
.grad-violet-cyan {
  background: linear-gradient(90deg, #A78BFA 0%, #C084FC 35%, #22D3EE 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.home-hero-sub {
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch; text-wrap: pretty;
  margin-bottom: 32px;
}

/* — DOLOR · 3 puntos — */
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 32px;
}
.pain-card {
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  display: flex; flex-direction: column; gap: 10px;
}
.pain-card-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--violet); text-transform: uppercase;
}
.pain-card h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink);
}
.pain-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 720px) { .pain-grid { grid-template-columns: 1fr; } }

/* — SOLUCIÓN · split — */
.solution {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
.solution-text h2 { margin-bottom: 20px; }
.solution-text p {
  font-size: 17px; color: var(--ink-soft); line-height: 1.6;
  margin-bottom: 14px; max-width: 50ch;
}
.solution-text strong { color: var(--ink); font-weight: 500; }
.solution-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.solution-list li {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.55;
  padding-left: 24px; position: relative;
}
.solution-list li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--violet); font-weight: 600;
}
.solution-aside {
  padding: 32px;
  border: 1px solid rgba(167,139,250,0.3); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(167,139,250,0.08), rgba(167,139,250,0.02));
}
.solution-aside-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 14px;
}
.solution-aside p {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink);
}
.solution-aside p + p { margin-top: 12px; font-size: 16px; color: var(--ink-soft); font-style: normal; font-family: var(--sans); }
@media (max-width: 900px) { .solution { grid-template-columns: 1fr; gap: 32px; } }

/* — CHATS WhatsApp — */
.chats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) { .chats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .chats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .chats-grid { grid-template-columns: 1fr; } }

/* — Chat capturas fieles — */
.chat-screenshot {
  border-radius: 22px;
  overflow: hidden;
  background: #0E1418;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 8px 20px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
}
.chat-screenshot-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 18px 6px;
  background: #075E54;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12px; font-weight: 600; color: #fff;
  letter-spacing: -0.01em;
}
.chat-screenshot-statusbar .right {
  display: inline-flex; gap: 5px; align-items: center;
}
.chat-screenshot-statusbar svg { display: block; }
.chat-screenshot-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #075E54;
  border-bottom: 1px solid rgba(0,0,0,0.18);
}
.chat-screenshot-back {
  color: #fff; font-size: 22px; line-height: 1;
  opacity: 0.9;
}
.chat-screenshot-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; color: #0E0C16;
  flex-shrink: 0;
}
.chat-screenshot-meta { flex: 1; min-width: 0; }
.chat-screenshot-name {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14.5px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-screenshot-status {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 11.5px; color: rgba(255,255,255,0.7);
}
.chat-screenshot-icons {
  display: flex; gap: 14px; color: rgba(255,255,255,0.85);
}
.chat-screenshot-body {
  padding: 14px 12px 10px;
  background: #0B141A;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.018) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px, 60px 60px;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.chat-screenshot-msg {
  max-width: 82%;
  padding: 7px 10px 6px;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 13.5px; line-height: 1.35;
  color: #E9EDEF;
  border-radius: 9px;
  position: relative;
  word-wrap: break-word;
}
.chat-screenshot-msg.in {
  background: #1F2C33;
  align-self: flex-start;
  border-top-left-radius: 0;
}
.chat-screenshot-msg.out {
  background: #005C4B;
  align-self: flex-end;
  border-top-right-radius: 0;
}
.chat-screenshot-time {
  font-size: 10px; color: rgba(255,255,255,0.55);
  margin-left: 8px; float: right;
  display: inline-flex; align-items: center; gap: 3px;
  position: relative; top: 4px;
}
.chat-screenshot-check {
  display: inline-block; color: rgba(83,168,255,0.95);
  font-size: 11px; line-height: 1;
}
.chat-screenshot-result {
  padding: 10px 14px;
  background: rgba(167,139,250,0.08);
  border-top: 1px solid rgba(167,139,250,0.2);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute);
}
.chat-screenshot-result strong {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: -0.01em; text-transform: none;
}

/* — Chat burbujas (estilo más simple, fuera del frame iOS) — */
.chat-bubble-card {
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  display: flex; flex-direction: column; gap: 14px;
}
.chat-bubble-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.chat-bubble-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; color: #0E0C16; flex-shrink: 0;
}
.chat-bubble-meta { flex: 1; min-width: 0; }
.chat-bubble-name { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.chat-bubble-where { font-size: 11.5px; color: var(--ink-mute); }
.chat-bubble-tone {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--violet);
  padding: 4px 8px; border-radius: 999px;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.25);
}
.chat-bubble-stack {
  display: flex; flex-direction: column; gap: 6px;
}
.chat-bubble-msg {
  align-self: flex-start;
  max-width: 88%;
  padding: 10px 13px;
  background: #1F2C33;
  border-radius: 14px; border-top-left-radius: 4px;
  font-size: 13.5px; line-height: 1.45; color: #E9EDEF;
}
.chat-bubble-result {
  padding-top: 10px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.chat-bubble-result strong {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: -0.005em; text-transform: none; color: var(--violet);
}

/* — FILTRADO · band — */
.filter-band {
  padding: 56px 0; position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.filter-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.filter-item h4 {
  font-family: var(--serif); font-weight: 700;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.filter-item h4 em { color: var(--violet); }
.filter-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 720px) { .filter-grid { grid-template-columns: 1fr; gap: 24px; } }

/* — CTA FINAL FUERTE — */
.cta-final {
  position: relative; overflow: hidden;
  padding: 100px var(--gutter) 110px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(167,139,250,0.25), transparent 70%),
    radial-gradient(ellipse 40% 50% at 30% 50%, rgba(34,211,238,0.12), transparent 70%),
    radial-gradient(ellipse 40% 50% at 70% 50%, rgba(124,58,237,0.18), transparent 70%);
  pointer-events: none;
}
.cta-final-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-final h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 20px; text-wrap: balance;
}
.cta-final h2 em { color: var(--violet); }
.cta-final p {
  color: var(--ink-soft); font-size: 18px; line-height: 1.55;
  max-width: 50ch; margin: 0 auto 32px; text-wrap: pretty;
}
.cta-final-btns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-final .btn-wa { padding: 18px 32px; font-size: 16px; }
.cta-final-meta {
  margin-top: 28px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase;
}

/* — 3-PASOS HOW (compacto en home) — */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  position: relative;
}
.how-grid::before {
  content: "";
  position: absolute; top: 28px; left: 60px; right: 60px;
  height: 1px; background: var(--line); z-index: 0;
}
.how-step { position: relative; z-index: 1; padding: 24px 4px; }
.how-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #0E0C16;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}
.how-step h4 {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.how-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; max-width: 32ch; }
@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; gap: 8px; }
  .how-grid::before { display: none; }
}


/* ============================================================
   HERO ANIMADO V2 — Brutalist + WhatsApp mock + counters
   ============================================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero layout — split cols: copy izq + WA mock der */
.hero2 {
  position: relative;
  min-height: 100vh;
  padding: clamp(80px, 12vh, 120px) var(--gutter) clamp(60px, 8vh, 100px);
  overflow: hidden;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero2::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124,58,237,0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(34,211,238,0.10), transparent 60%);
  pointer-events: none;
}
.hero2::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(167,139,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
}
.hero2-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container);
  margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero2-inner { grid-template-columns: 1fr; gap: 60px; }
}

/* Eyebrow */
.hero2-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet);
  padding: 8px 14px;
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 0; /* brutalist: hard corners */
  background: rgba(167,139,250,0.06);
  margin-bottom: 32px;
  opacity: 0; animation: hero-rise 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.1s forwards;
}
.hero2-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,211,238,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(34,211,238,0.05); }
}

/* Headline brutalist */
.hero2-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero2-title .typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--violet);
  animation:
    typed-write 1.2s steps(7, end) 0.3s forwards,
    typed-cursor 0.7s step-end 4 1.5s forwards;
  width: 0;
  vertical-align: bottom;
}
@keyframes typed-write { from { width: 0 } to { width: 7ch } }
@keyframes typed-cursor {
  0%, 100% { border-right-color: var(--violet); }
  50%      { border-right-color: transparent; }
}
.hero2-title .typed.done { border-right-color: transparent; animation: none; width: auto; }
.hero2-title .grad {
  background: linear-gradient(90deg, #A78BFA 0%, #C084FC 35%, #22D3EE 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: normal;
  display: inline-block;
}

.hero2-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 36px;
  opacity: 0; animation: hero-rise 0.6s cubic-bezier(0.34,1.56,0.64,1) 1.6s forwards;
}

.hero2-ctas {
  display: inline-flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0; animation: hero-rise 0.6s cubic-bezier(0.34,1.56,0.64,1) 1.8s forwards;
}
.hero2-ctas .btn-wa {
  padding: 16px 26px; font-size: 15px;
  border-radius: 0; /* brutalist */
  position: relative;
}
.hero2-ctas .btn-wa::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid #25D366;
  transform: translate(6px, 6px);
  z-index: -1;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.hero2-ctas .btn-wa:hover::after { transform: translate(3px, 3px); }
.hero2-ctas .btn-ghost-dark { border-radius: 0; padding: 16px 26px; font-size: 15px; }

/* Counters */
.hero2-counters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  opacity: 0; animation: hero-rise 0.6s cubic-bezier(0.34,1.56,0.64,1) 2.0s forwards;
}
.hero2-counter {
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.hero2-counter:first-child { border-left: none; padding-left: 0; }
.hero2-counter-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.hero2-counter-num .plus { color: var(--violet); }
.hero2-counter-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .hero2-counters { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .hero2-counter:nth-child(3) { border-left: none; padding-left: 0; }
  .hero2-counter { padding: 0 14px; }
  .hero2-counter:first-child, .hero2-counter:nth-child(3) { padding-left: 0; }
}

/* === WhatsApp Mock animado === */
.wa-mock-stage {
  position: relative;
  display: flex; justify-content: center;
  perspective: 1200px;
}
.wa-mock-stage::before {
  content: "";
  position: absolute; inset: -40px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(124,58,237,0.35), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: glow-shift 8s ease-in-out infinite;
}
@keyframes glow-shift {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%      { transform: translateY(-10px); opacity: 1; }
}
.wa-mock {
  position: relative; z-index: 2;
  width: 100%; max-width: 380px;
  background: #0E1418;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 12px 30px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(167,139,250,0.08);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* WA chrome */
.wa-mock-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 18px 6px;
  background: #075E54;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12px; font-weight: 600; color: #fff;
}
.wa-mock-statusbar .right { display: inline-flex; gap: 5px; align-items: center; }
.wa-mock-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #075E54;
}
.wa-mock-back { color: #fff; font-size: 22px; line-height: 1; opacity: 0.9; }
.wa-mock-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700;
  font-size: 17px; color: #0E0C16;
  position: relative;
  flex-shrink: 0;
}
.wa-mock-avatar::after {
  content: "";
  position: absolute; bottom: 0; right: 0;
  width: 11px; height: 11px;
  background: #25D366; border: 2px solid #075E54;
  border-radius: 50%;
}
.wa-mock-meta { flex: 1; min-width: 0; }
.wa-mock-name {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14.5px; font-weight: 600; color: #fff;
}
.wa-mock-status {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 11.5px; color: rgba(255,255,255,0.75);
}
.wa-mock-icons {
  display: flex; gap: 14px; color: rgba(255,255,255,0.85);
}

/* WA body */
.wa-mock-body {
  position: relative;
  height: 480px;
  padding: 14px 12px;
  background: #0B141A;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.018) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px, 60px 60px;
  display: flex; flex-direction: column; gap: 5px;
  overflow: hidden;
}
.wa-msg {
  max-width: 82%;
  padding: 7px 10px 6px;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 13.5px; line-height: 1.35;
  color: #E9EDEF;
  border-radius: 9px;
  position: relative;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(8px);
}
.wa-msg.in {
  background: #1F2C33;
  align-self: flex-start;
  border-top-left-radius: 0;
}
.wa-msg.out {
  background: #005C4B;
  align-self: flex-end;
  border-top-right-radius: 0;
}
.wa-msg .time {
  font-size: 10px; color: rgba(255,255,255,0.55);
  margin-left: 8px; float: right;
  display: inline-flex; align-items: center; gap: 3px;
  position: relative; top: 4px;
}
.wa-msg .check { display: inline-block; font-size: 11px; line-height: 1; }
.wa-msg .check.read { color: #53A8FF; }
.wa-msg .check.sent { color: rgba(255,255,255,0.5); }

/* Typing indicator */
.wa-typing {
  background: #1F2C33;
  align-self: flex-start;
  border-top-left-radius: 0;
  border-radius: 9px;
  padding: 10px 14px;
  display: inline-flex; gap: 4px;
  opacity: 0;
}
.wa-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8696A0;
  animation: type-bounce 1.2s ease-in-out infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes type-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* PDF attachment chip */
.wa-pdf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06); border-radius: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}
.wa-pdf-ico {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #F87171, #DC2626);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff;
}

/* Loop animation timeline */
.wa-mock-body[data-anim="play"] .wa-msg.m1   { animation: wa-msg-in 0.4s ease  0.5s forwards, wa-fade-out 0.6s ease 11s forwards; }
.wa-mock-body[data-anim="play"] .wa-typing.t1{ animation: wa-msg-in 0.3s ease  2.0s forwards, wa-fade-out 0.4s ease 3.0s forwards; }
.wa-mock-body[data-anim="play"] .wa-msg.m2   { animation: wa-msg-in 0.4s ease  3.2s forwards, wa-fade-out 0.6s ease 11s forwards; }
.wa-mock-body[data-anim="play"] .wa-msg.m3   { animation: wa-msg-in 0.4s ease  5.0s forwards, wa-fade-out 0.6s ease 11s forwards; }
.wa-mock-body[data-anim="play"] .wa-msg.m4   { animation: wa-msg-in 0.4s ease  6.0s forwards, wa-fade-out 0.6s ease 11s forwards; }
.wa-mock-body[data-anim="play"] .wa-msg.m5   { animation: wa-msg-in 0.4s ease  9.0s forwards, wa-fade-out 0.6s ease 11s forwards; }
.wa-mock-body[data-anim="play"] .wa-msg.m6   { animation: wa-msg-in 0.4s ease 10.5s forwards, wa-fade-out 0.6s ease 11s forwards; }

@keyframes wa-msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wa-fade-out {
  to { opacity: 0; transform: translateY(-4px); }
}

/* HERO entry */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* WA mock entry */
.wa-mock-stage {
  opacity: 0; animation: hero-rise 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.5s forwards;
}


/* ============================================================
   FASE 2 · Reveals + micro-interacciones
   ============================================================ */

/* Base reveal — fade up */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes */
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal="zoom"].is-visible { transform: scale(1); }
[data-reveal="fade"] { transform: none; }

/* Stagger automático — hijos directos con [data-reveal-stagger] */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 90ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 180ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 270ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 450ms; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 540ms; }
[data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 630ms; }

/* Pain cards · hover lift */
.pain-card {
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), border-color 250ms ease, background 250ms ease;
}
.pain-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(255,255,255,0.04);
}
.pain-card-num {
  position: relative;
  display: inline-block;
}
.pain-card-num::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 32px; height: 2px;
  background: linear-gradient(90deg, #A78BFA, #22D3EE);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.is-visible .pain-card-num::after,
.pain-card:hover .pain-card-num::after { transform: scaleX(1); }

/* How steps · número anima al entrar */
.how-step { position: relative; }
.how-num {
  position: relative;
  overflow: hidden;
}
.how-num::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #A78BFA, #22D3EE);
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: -1;
  border-radius: inherit;
}
.how-step:hover .how-num::before { opacity: 0.18; }
.how-step:hover .how-num { transform: scale(1.05); }
.how-num { transition: transform 300ms cubic-bezier(.2,.7,.2,1); }

/* Linea conectora entre steps (desktop) */
@media (min-width: 900px) {
  .how-grid { position: relative; }
  .how-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.3) 20%, rgba(34,211,238,0.3) 80%, transparent);
    z-index: 0;
  }
}

/* Service cards · arrow desliza al hover */
.home-nav-card {
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), border-color 250ms ease, background 250ms ease, box-shadow 350ms ease;
}
.home-nav-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 20px 50px -20px rgba(167, 139, 250, 0.35);
}
.home-nav-card .arrow {
  transition: gap 300ms cubic-bezier(.2,.7,.2,1), color 250ms ease;
}
.home-nav-card:hover .arrow {
  gap: 12px;
  color: #A78BFA;
}
.home-nav-card.featured {
  position: relative;
  overflow: hidden;
}
.home-nav-card.featured::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, rgba(167,139,250,0.18), transparent 70%);
  pointer-events: none;
  transition: opacity 400ms ease;
}
.home-nav-card.featured:hover::before { opacity: 1.4; }

/* Chat cards · hover sutil */
.chat-screenshot, .chat-bubble-card {
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease;
}
.chat-screenshot:hover, .chat-bubble-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
}

/* Filter band · línea decorativa anima */
.filter-item {
  position: relative;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1);
  padding-top: 14px;
}
.filter-item strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.filter-item span {
  display: block;
  color: var(--ink-soft, #c9c4d8);
  font-size: 14px;
  line-height: 1.55;
}
.filter-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 2px;
  background: linear-gradient(90deg, #A78BFA, #22D3EE);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.is-visible .filter-item::before { transform: scaleX(1); }
.is-visible .filter-item:nth-child(1)::before { transition-delay: 200ms; }
.is-visible .filter-item:nth-child(2)::before { transition-delay: 350ms; }
.is-visible .filter-item:nth-child(3)::before { transition-delay: 500ms; }

/* CTA final · pulso sutil en el botón principal */
.cta-final .btn-wa {
  position: relative;
  overflow: visible;
}
.cta-final .btn-wa::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(34, 211, 238, 0.55);
  opacity: 0;
  animation: ctaPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* Section heads · serif-em destaca al entrar */
.section-head {
  position: relative;
}
.serif-em {
  position: relative;
  display: inline-block;
}
.is-visible .serif-em::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.5), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: emUnderline 900ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 600ms;
}
@keyframes emUnderline {
  to { transform: scaleX(1); }
}

/* Buttons · ripple sutil al hover */
.btn {
  position: relative;
  overflow: hidden;
}
.btn-wa, .btn-ghost-dark {
  transition: transform 250ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms ease, border-color 250ms ease, background 250ms ease;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.45); }
.btn-ghost-dark:hover { transform: translateY(-2px); border-color: rgba(167,139,250,0.5); }

/* Solution split · imagen/aside con hover */
.solution-aside {
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), border-color 300ms ease;
}
.solution-aside:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.4);
}
.solution-list li {
  transition: transform 250ms ease, color 250ms ease;
}
.solution-list li:hover {
  transform: translateX(4px);
  color: #fff;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .cta-final .btn-wa::after { animation: none; }
  .serif-em::after { animation: none; transform: scaleX(1); }
}


/* ============================================================
   FASE 2 · Polish · Nav + WAFab + scroll progress
   ============================================================ */

/* Nav · entrada suave al cargar */
.nav {
  animation: navDrop 600ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-brand img {
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), opacity 250ms ease;
}
.nav-brand:hover img {
  transform: scale(1.06);
}

/* WAFab · entrada con bounce + halo */
.wafab {
  animation: fabIn 700ms cubic-bezier(.34, 1.56, .64, 1) 1.2s both;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms ease;
}
.wafab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px -8px rgba(37, 211, 102, 0.55);
}
@keyframes fabIn {
  0%   { opacity: 0; transform: scale(.4) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.wafab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.5);
  opacity: 0;
  animation: fabHalo 2.6s ease-out infinite;
  animation-delay: 2.2s;
  pointer-events: none;
}
@keyframes fabHalo {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #A78BFA, #22D3EE);
  z-index: 1000;
  pointer-events: none;
  transition: width 80ms linear;
}

/* Footer · links con underline anima */
.footer a {
  position: relative;
  transition: color 200ms ease;
}
.footer a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms cubic-bezier(.2,.7,.2,1);
}
.footer a:hover::after { transform: scaleX(1); }

/* Eyebrow dot · pulso vivo en home eyebrow */
.home-eyebrow .dot,
.eyebrow .dot {
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   UNIVERSIDADES — banda de logos con escala de grises + hover
   ============================================================ */
.unis-section { padding-top: 40px; padding-bottom: 40px; }

.unis-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.uni-logo {
  width: 100%;
  max-width: 130px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  transition: all 350ms cubic-bezier(.2,.7,.2,1);
}

.uni-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.4) contrast(0.85);
  opacity: 0.55;
  transition: filter 350ms cubic-bezier(.2,.7,.2,1),
              opacity 350ms cubic-bezier(.2,.7,.2,1),
              transform 350ms cubic-bezier(.2,.7,.2,1);
}

.uni-logo:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
  transform: scale(1.06);
}

.uni-logo:hover {
  background: rgba(255,255,255,0.04);
}

@media (max-width: 720px) {
  .unis-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .uni-logo { height: 48px; }
}

/* ============================================================
   SVC LIST · cards de servicios.html con animación
   ============================================================ */
.svc-row.featured {
  position: relative;
  border-color: rgba(167,139,250,0.35);
}
.svc-row.featured::before {
  content: "";
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(167,139,250,0.18), transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}
.svc-tag {
  display: inline-block;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(167,139,250,0.15);
  color: #A78BFA;
  margin-bottom: 10px;
}
.svc-row.featured .svc-tag {
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(34,211,238,0.15));
  color: #fff;
}
