:root {
  --bg: #0a1628;
  --bg-soft: #0e1e38;
  --surface: #101f3a;
  --surface-2: #14284a;
  --border: #1e355c;
  --text: #eef3fb;
  --text-muted: #9db0cc;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-text: #000000;
  --radius: 14px;
  --max-width: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

a { color: inherit; text-decoration: none; }

/* Foco visible para navegación con teclado */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.whatsapp-float:focus-visible { border-radius: 999px; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline-offset: 0; border-radius: 10px; }
main:focus { outline: none; }

/* Enlace "saltar al contenido" */
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-mark {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.logo-text span { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 11px 0;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-text);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 168px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px circle at 15% 20%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(480px circle at 85% 15%, rgba(99, 102, 241, 0.18), transparent 60%);
  pointer-events: none;
}
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  opacity: 0.55;
  z-index: -1;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin-bottom: 22px;
}
.highlight {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Checks bajo los botones del hero */
.hero-checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-checks svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Ilustración del hero: una web en el navegador + una app en el celular */
.hero-visual {
  position: relative;
  height: 420px;
  max-width: 540px;
  width: 100%;
  justify-self: end;
}
.mock-browser {
  position: absolute;
  top: 10px; left: 0;
  width: 88%;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.06);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock-bar > span { width: 9px; height: 9px; border-radius: 50%; }
.mock-bar > span:nth-child(1) { background: #f87171; }
.mock-bar > span:nth-child(2) { background: #fbbf24; }
.mock-bar > span:nth-child(3) { background: #34d399; }
.mock-url {
  margin-left: 10px;
  flex: 1;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 10px;
}
.mock-page { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.mock-page i { display: block; border-radius: 6px; background: #1c3157; }
.mock-nav { display: flex; align-items: center; gap: 10px; }
.mock-nav i { height: 7px; width: 34px; }
.mock-nav .mock-logo { width: 54px; height: 12px; margin-right: auto; background: var(--accent); opacity: 0.85; }
.mock-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: center; }
.mock-hero-text { display: flex; flex-direction: column; gap: 8px; }
.mock-hero-text .l1 { height: 12px; width: 92%; background: #2b4775; }
.mock-hero-text .l2 { height: 12px; width: 70%; background: linear-gradient(90deg, var(--accent), #a78bfa); }
.mock-hero-text .l3 { height: 7px; width: 85%; margin-top: 4px; }
.mock-hero-text .mock-cta { height: 18px; width: 46%; margin-top: 6px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.mock-img {
  height: 92px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, rgba(167, 139, 250, 0.55), transparent 55%),
    linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(99, 102, 241, 0.35));
}
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards i { height: 58px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }

.mock-phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 168px;
  height: 330px;
  padding: 10px;
  border-radius: 30px;
  background: #050d1a;
  border: 1px solid #22385e;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.75);
}
.mock-notch { width: 54px; height: 6px; border-radius: 999px; background: #1a2b4a; margin: 4px auto 10px; }
.mock-app {
  height: calc(100% - 20px);
  border-radius: 20px;
  background: var(--surface);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-app-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.mock-app-num { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-top: -6px; }
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  padding: 6px;
  border-radius: 10px;
  background: var(--surface-2);
}
.mock-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform-origin: bottom;
}
.mock-rows { display: flex; flex-direction: column; gap: 7px; }
.mock-rows i { display: block; height: 22px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-app-btn { display: block; margin-top: auto; height: 26px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.mock-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  background: rgba(16, 31, 58, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}
.mock-badge svg { width: 15px; height: 15px; color: #34d399; }
.mock-badge-1 { left: -18px; bottom: 78px; }
.mock-badge-2 { right: 120px; top: -6px; }

/* Section generic */
section { padding: 96px 0; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.servicios h2, .nosotros h2, .casos h2, .contacto h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 44px;
}

/* Servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card > p { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }

.card-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.card-list li {
  font-size: 14.5px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Casos */
.casos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.caso-logo {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.caso-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.caso-logo--claro { background: #ffffff; border-color: #ffffff; }
.caso {
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.caso .caso-tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.caso h3 { font-size: 21px; margin-bottom: 6px; }
.caso .caso-sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}
.caso .caso-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.caso .caso-text {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.caso-chips {
  list-style: none;
  margin: auto 0 0;
  padding: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.caso-chips li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Nosotros */
.nosotros { background: rgba(14, 30, 56, 0.6); }
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.nosotros-text h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 10px 0 18px; }
.nosotros-p { color: var(--text-muted); font-size: 16px; max-width: 480px; }

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}
.feature h4::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* CTA strip */
.cta-strip {
  padding: 72px 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(99,102,241,0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-strip h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-strip p { color: var(--text-muted); font-size: 16px; margin-bottom: 8px; }

/* Contacto */
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
  transition: border-color 0.15s ease;
}
.contact-link:hover { border-color: var(--accent); }
.contact-link svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }

.form-note {
  font-size: 13.5px;
  color: var(--accent);
  min-height: 18px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p { color: var(--text-muted); font-size: 13.5px; }

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 32px; height: 32px; }

/* Responsive */
@media (max-width: 900px) {
  .casos-grid { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; max-width: 640px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-self: center; height: 380px; }
}

@media (max-width: 860px) {
  .nosotros-inner, .contacto-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nosotros-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header.open .nav {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    gap: 0;
  }
  .hero { padding: 140px 0 72px; }
  .nosotros-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* Respeta la preferencia de menos movimiento del sistema */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover, .card:hover, .whatsapp-float:hover { transform: none; }
}

/* ---------- Animaciones ---------- */
:root { --ease-salida: cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes subir { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes piezaE { from { opacity: 0; translate: -8px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes gradienteMovil {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulsoWsp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45), 0 8px 24px rgba(37, 211, 102, 0.4); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 24px rgba(37, 211, 102, 0.4); }
}

/* Entrada del hero */
.hero-text > * { animation: subir 0.8s var(--ease-salida) both; }
.hero-text > :nth-child(2) { animation-delay: 0.12s; }
.hero-text > :nth-child(3) { animation-delay: 0.24s; }
.hero-text > :nth-child(4) { animation-delay: 0.36s; }
.hero-text > :nth-child(5) { animation-delay: 0.48s; }
.hero-visual { animation: subir 1s var(--ease-salida) 0.3s both; }
.mock-browser { animation: flotar 7s ease-in-out 1.3s infinite alternate; }
.mock-phone { animation: flotar 6s ease-in-out 1.6s infinite alternate-reverse; }
.mock-badge-1 { animation: flotar 5s ease-in-out 1s infinite alternate; }
.mock-badge-2 { animation: flotar 5.5s ease-in-out 1.8s infinite alternate-reverse; }
.mock-chart i { animation: crecerBarra 0.9s var(--ease-salida) 0.82s both; }
.mock-chart i:nth-child(2) { animation-delay: 0.9s; }
.mock-chart i:nth-child(3) { animation-delay: 0.98s; }
.mock-chart i:nth-child(4) { animation-delay: 1.06s; }
.mock-chart i:nth-child(5) { animation-delay: 1.14s; }
.mock-chart i:nth-child(6) { animation-delay: 1.22s; }
.mock-chart i:nth-child(7) { animation-delay: 1.3s; }
@keyframes flotar { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes crecerBarra { from { scale: 1 0; } to { scale: 1 1; } }

/* Las piezas de la E del header entran una tras otra */
.header .logo-mark rect { animation: piezaE 0.5s var(--ease-salida) both; }
.header .logo-mark rect:nth-child(2) { animation-delay: 0.08s; }
.header .logo-mark rect:nth-child(3) { animation-delay: 0.16s; }
.header .logo-mark rect:nth-child(4) { animation-delay: 0.24s; }

/* Degradé del titular en movimiento lento */
.highlight {
  background-image: linear-gradient(120deg, var(--accent), #a78bfa, var(--accent));
  background-size: 200% 200%;
  animation: gradienteMovil 8s ease-in-out infinite;
}

/* Header más sólido al hacer scroll */
.header { transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Brillo que cruza el botón principal */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.6s var(--ease-salida);
}
.btn-primary:hover::after { translate: 120% 0; }

/* Tarjetas: resplandor al pasar el mouse */
.card:hover { box-shadow: 0 16px 36px -16px rgba(56, 189, 248, 0.35); }
.caso-logo img { transition: transform 0.35s var(--ease-salida); }
.caso:hover .caso-logo img { transform: scale(1.04); }

/* WhatsApp: pulso suave para llamar la atención */
.whatsapp-float { animation: pulsoWsp 2.8s ease-out 3s infinite; }

/* Aparición al hacer scroll (solo si el JS lo activa) */
.js-anim .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s var(--ease-salida), translate 0.7s var(--ease-salida);
  transition-delay: var(--d, 0s);
}
.js-anim .card.reveal {
  transition: opacity 0.7s var(--ease-salida), translate 0.7s var(--ease-salida),
    transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s;
}
.js-anim .reveal.visible { opacity: 1; translate: 0 0; }

/* Imágenes: entran un instante después que su tarjeta */
.js-anim .reveal .caso-logo {
  opacity: 0;
  scale: 0.9;
  filter: blur(8px);
  transition: opacity 0.8s var(--ease-salida), scale 0.8s var(--ease-salida), filter 0.8s var(--ease-salida);
  transition-delay: calc(var(--d, 0s) + 0.2s);
}
.js-anim .reveal .card-icon {
  opacity: 0;
  scale: 0.5;
  rotate: -12deg;
  transition: opacity 0.6s var(--ease-salida), scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.6s var(--ease-salida);
  transition-delay: calc(var(--d, 0s) + 0.2s);
}
.js-anim .reveal.visible .caso-logo,
.js-anim .reveal.visible .card-icon { opacity: 1; scale: 1; rotate: 0deg; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-visual, .mock-browser, .mock-phone, .mock-badge, .mock-chart i,
  .header .logo-mark rect, .highlight, .whatsapp-float { animation: none !important; }
  .btn-primary::after { display: none; }
  .js-anim .reveal { opacity: 1; translate: 0 0; }
}
