/* ERP-GEST — marketing site · azul intenso + dorado */

:root {
  --blue-950: #050d24;
  --blue-900: #0a1a45;
  --blue-800: #0f2a6b;
  --blue-700: #1438a0;
  --blue-600: #1a4fd4;
  --blue-500: #2b6ef5;
  --blue-400: #5b92ff;
  --blue-200: #b8d0ff;
  --gold-600: #a67c12;
  --gold-500: #c9940a;
  --gold-400: #e8b923;
  --gold-300: #f5d06a;
  --gold-200: #fce9a8;
  --ink: #0c1630;
  --ink-soft: #3a4766;
  --surface: #f3f6fd;
  --surface-2: #e8eefb;
  --white: #ffffff;
  --success: #1f8f5f;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(5, 13, 36, 0.18);
  --header-h: 64px;
  --page-pad: 1rem;
  --section-y: 3.25rem;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(43, 110, 245, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(232, 185, 35, 0.14), transparent 50%),
    linear-gradient(180deg, #f7f9ff 0%, var(--surface) 40%, #eef3ff 100%);
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 16px;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Accesibilidad / SEO: salto de contenido */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--gold-400);
  color: var(--blue-950);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: calc(0.75rem + var(--safe-top));
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* Custom development service */

.custom-dev {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(232, 185, 35, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(43, 110, 245, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(232, 238, 251, 0.85));
}

.custom-dev-layout {
  display: grid;
  gap: 2rem;
}

.custom-dev-intro {
  max-width: 640px;
  margin-bottom: 0;
}

.custom-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn-outline-dark {
  color: var(--blue-900);
  border: 1.5px solid rgba(15, 42, 107, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline-dark:hover {
  border-color: rgba(201, 148, 10, 0.55);
  background: rgba(232, 185, 35, 0.12);
}

.custom-dev-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.custom-dev-card {
  position: relative;
  padding: 1.4rem 1.25rem 1.3rem;
  border-radius: 20px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid rgba(15, 42, 107, 0.09);
  box-shadow:
    0 14px 34px rgba(10, 26, 69, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.custom-dev-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-400));
}

.custom-dev-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(10, 26, 69, 0.11);
  border-color: rgba(26, 79, 212, 0.18);
}

.custom-dev-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--gold-300);
  background: linear-gradient(145deg, var(--blue-900), var(--blue-600));
  box-shadow: 0 10px 22px rgba(15, 42, 107, 0.22);
}

.custom-dev-icon.gold {
  color: var(--blue-900);
  background: linear-gradient(145deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 10px 22px rgba(201, 148, 10, 0.28);
}

.custom-dev-icon svg {
  width: 22px;
  height: 22px;
}

.custom-dev-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-900);
  letter-spacing: -0.015em;
}

.custom-dev-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.custom-dev-steps {
  list-style: none;
  margin: 0;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--blue-950), var(--blue-800) 60%, #12307a);
  color: #fff;
  box-shadow: var(--shadow);
}

.custom-dev-steps li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-dev-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.custom-dev-steps span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-300);
}

.custom-dev-steps strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.custom-dev-steps p {
  margin: 0;
  color: rgba(230, 238, 255, 0.78);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .custom-dev-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-dev-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
    padding: 1.5rem;
  }

  .custom-dev-steps li {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (min-width: 960px) {
  .custom-dev-layout {
    gap: 2.25rem;
  }

  .custom-dev-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .custom-dev-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .custom-dev-actions .btn {
    width: auto;
  }
}

/* FAQ SEO */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
}

.faq-item {
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid rgba(15, 42, 107, 0.09);
  box-shadow: 0 12px 28px rgba(10, 26, 69, 0.05);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-900);
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-600);
  font-size: 1.35rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq-item a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: rgba(230, 238, 255, 0.85);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--gold-300);
}

.bg-mesh {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20, 56, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 56, 160, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.container {
  width: min(1160px, calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(247, 249, 255, 0.9);
  border-bottom: 1px solid rgba(15, 42, 107, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  padding-top: var(--safe-top);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(5, 13, 36, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: min(118px, 34vw);
  height: auto;
  background: transparent;
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-desktop a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-desktop a:hover {
  color: var(--blue-800);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: none;
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: var(--blue-900);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-300);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem var(--page-pad) calc(1rem + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(15, 42, 107, 0.08);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.95rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--blue-900);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav-mobile a:not(.btn):active {
  background: var(--surface-2);
}

.nav-mobile .btn {
  width: 100%;
  margin-top: 0.35rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  color: var(--blue-950);
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 45%, var(--gold-500) 100%);
  box-shadow: 0 12px 28px rgba(201, 148, 10, 0.28);
}

.btn-gold:hover {
  box-shadow: 0 16px 36px rgba(201, 148, 10, 0.38);
}

.btn-outline {
  color: var(--blue-100, #dce7ff);
  border: 1.5px solid rgba(232, 185, 35, 0.55);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--gold-300);
  background: rgba(232, 185, 35, 0.1);
}

.btn-lg {
  min-height: 54px;
  padding-inline: 1.8rem;
  font-size: 1.05rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: 0;
  color: var(--white);
  overflow: hidden;
}

/* El fondo de la sección usa el azul exacto de la foto activa (lo fija script.js),
   así el banner y el fondo son un solo campo de color continuo. */
.hero {
  --bnr-solid: #012244;
  background-color: var(--bnr-solid);
  transition: background-color 0.65s ease;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  background-color: var(--bnr-solid);
  transition: background-color 0.65s ease;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

/* Halo ambiental: el logo "habita" el fondo azul, no flota en un rectángulo */
.logo-aura {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.logo-aura::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -6% 14%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 70% 55% at 45% 40%, rgba(91, 146, 255, 0.38) 0%, transparent 62%),
    radial-gradient(ellipse 50% 40% at 68% 58%, rgba(232, 185, 35, 0.22) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  transform: scale(1.05);
  animation: aura-breathe 7s ease-in-out infinite;
}

.logo-aura--hero {
  margin-bottom: 0.75rem;
}

.logo-aura--cta {
  margin: 0 auto 0.85rem;
}

.logo-aura--cta::before {
  inset: 12% 0 18%;
  filter: blur(14px);
  opacity: 0.85;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(220px, 62vw);
  height: auto;
  display: block;
  background: transparent;
  filter:
    drop-shadow(0 10px 22px rgba(3, 8, 24, 0.45))
    drop-shadow(0 0 28px rgba(43, 110, 245, 0.18));
  animation: logo-float 6s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6.2vw, 3.15rem);
  line-height: 1.14;
  font-weight: 800;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.25rem;
  max-width: 40ch;
  font-size: clamp(0.95rem, 3.4vw, 1.15rem);
  color: rgba(230, 238, 255, 0.88);
  font-weight: 500;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  width: 100%;
  max-width: 360px;
}

.hero-actions .btn {
  width: 100%;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  perspective: none;
}

.hero-slider {
  position: relative;
  width: 100%;
}

.hero-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 0;
  transform: none;
  box-shadow:
    0 20px 44px rgba(3, 8, 24, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(14px);
  transition: transform 0.5s ease;
}

.hero-banner-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-banner-wrap .hero-slider {
  width: 100%;
  max-width: 100%;
}

.hero-banner-wrap .hero-slider-viewport {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  transform: none !important;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
}

.hero-banner-wrap .hero-slider-track,
.hero-banner-wrap .hero-slide.is-active {
  min-height: 0;
}

/* Sin padding: el banner llega a los bordes y deja de leerse como recuadro */
.hero-banner-wrap .hero-slide {
  padding: 0;
}

.banner-slide {
  /* Alto = proporción de la foto. Marca también su ancho (3:2), y con él
     cuánto sitio libre queda a la izquierda para el texto. */
  --bnr-h: clamp(468px, 42vw, 620px);
  position: relative;
  height: var(--bnr-h);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bnr-grad, linear-gradient(180deg, var(--blue-950), var(--blue-900)));
}

.banner-slide-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  overflow: hidden;
  background: none;
  pointer-events: none;
}

/* Velo suave sobre el lado del texto: se apaga antes de tocar a las personas */
.banner-slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 10, 28, 0.45) 0%, rgba(2, 10, 28, 0.2) 30%, transparent 55%);
}

/* La foto se ve COMPLETA: ocupa todo el alto con su proporción natural (3:2),
   anclada a la derecha. Nada se recorta; su borde izquierdo (azul plano)
   se disuelve en el fondo, que es del mismo color. */
.banner-slide-image {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 7%, #000 17%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 7%, #000 17%);
}

.banner-slide-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(46%, 560px);
  margin-inline-start: max(var(--page-pad), calc(50% - 580px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* El padding inferior reserva sitio para las flechas y los puntos */
  padding: clamp(1.1rem, 2.4vw, 1.9rem) 0 clamp(4.6rem, 6.4vw, 6.2rem);
  background: none;
}

.banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin: 0 0 0.85rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  color: var(--gold-200);
  background: rgba(232, 185, 35, 0.12);
  border: 1px solid rgba(245, 208, 106, 0.38);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.banner-slide-copy h1,
.banner-slide-copy h2 {
  margin: 0 0 0.65rem;
  max-width: 20ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.banner-slide-copy .hero-lead {
  max-width: 48ch;
  margin-bottom: 0.8rem;
  font-size: clamp(0.86rem, 1.35vw, 1rem);
}

.banner-points {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.banner-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
}

.banner-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.14);
  flex-shrink: 0;
}

/* Controles sobre el propio banner: la foto llega hasta el borde inferior
   de la sección y no queda ninguna franja que la enmarque. */
@media (min-width: 961px) {
  .hero-banner-wrap .hero-slider-ui {
    position: absolute;
    z-index: 4;
    left: max(var(--page-pad), calc(50% - 580px));
    right: auto;
    bottom: clamp(2.2rem, 4vw, 3.4rem);
    margin: 0;
    justify-content: flex-start;
  }

  .hero-banner-wrap .hero-slider-btn {
    width: 38px;
    height: 38px;
  }
}

/* Tablet y móvil: foto arriba, completa y sin recorte (3:2), fundida hacia el texto */
@media (max-width: 960px) {
  .hero {
    padding: 0;
  }

  .hero-banner-wrap .hero-slider-viewport,
  .banner-slide {
    border-radius: 0;
  }

  .banner-slide {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .banner-slide-media {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    aspect-ratio: 3 / 2;
  }

  .banner-slide-media::after {
    background: none;
  }

  .banner-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  }

  .banner-slide-copy {
    height: auto;
    width: 100%;
    max-width: 640px;
    margin-inline-start: 0;
    justify-content: flex-start;
    padding: 0 var(--page-pad) clamp(1.1rem, 4vw, 1.6rem);
    margin-top: -6%;
  }

  .hero-slider-ui {
    margin: 0;
    padding: 0.65rem 0 0.9rem;
  }
}

/* Desde 720px la tarjeta "trust" flota -2rem sobre el hero: los controles
   necesitan ese hueco extra para no quedar por debajo de ella. */
@media (min-width: 720px) and (max-width: 960px) {
  .hero-banner-wrap .hero-slider-ui {
    padding-bottom: 3rem;
  }
}

/* Móvil apaisado: la foto completa (3:2) sería más alta que la pantalla,
   así que aquí sí se encuadra, manteniendo al protagonista a la vista. */
@media (max-width: 960px) and (orientation: landscape) {
  .banner-slide-media {
    aspect-ratio: auto;
    height: min(62svh, 300px);
  }

  .banner-slide-image {
    object-fit: cover;
    object-position: 72% center;
  }
}

@media (max-width: 719px) {
  .banner-slide-copy h1,
  .banner-slide-copy h2 {
    max-width: 16ch;
    font-size: clamp(1.25rem, 6vw, 1.85rem);
    margin-bottom: 0.45rem;
  }

  .banner-slide-copy .hero-lead {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
  }

  .banner-points {
    gap: 0.4rem;
  }

  .banner-points li {
    font-size: 0.68rem;
    padding: 0.28rem 0.46rem;
  }

  .banner-slide-copy .hero-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    max-width: 100%;
  }

  .banner-slide-copy .hero-actions .btn {
    min-height: 40px;
    padding: 0.5rem 0.55rem;
    font-size: 0.8rem;
  }
}

.hero-slider:hover .hero-slider-viewport {
  transform: none;
}

.hero-slider-track {
  position: relative;
  min-height: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 0.95rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px) scale(0.985);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s;
  pointer-events: none;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide.is-exit-left {
  opacity: 0;
  transform: translateX(-28px) scale(0.98);
}

.slide-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slide-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 0;
}

.slide-top .win {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.slide-top .win i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.slide-top .win i:nth-child(1) { background: #ff6b6b; }
.slide-top .win i:nth-child(2) { background: var(--gold-400); }
.slide-top .win i:nth-child(3) { background: #4ade80; }

.slide-top > span:not(.win):not(.slide-badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-badge {
  margin-left: auto;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  flex-shrink: 0;
}

.slide-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.slide-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-500));
  color: var(--gold-300);
  box-shadow: 0 8px 18px rgba(15, 42, 107, 0.35);
}

.slide-icon svg {
  width: 20px;
  height: 20px;
}

.slide-title-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.slide-title-row p {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: rgba(230, 238, 255, 0.7);
  line-height: 1.3;
}

.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.mock-stat {
  padding: 0.65rem 0.6rem;
  border-radius: 12px;
  background: rgba(5, 13, 36, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.mock-stat.gold {
  background: linear-gradient(145deg, rgba(232, 185, 35, 0.22), rgba(166, 124, 18, 0.12));
  border-color: rgba(232, 185, 35, 0.35);
}

.mock-stat small {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.2rem;
}

.mock-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 3.5vw, 1.08rem);
  letter-spacing: -0.02em;
  color: #fff;
  word-break: break-word;
}

.mock-stat em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--gold-300);
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 88px;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(5, 13, 36, 0.28);
}

.mock-chart .bar {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-700));
  opacity: 0.85;
  transform-origin: bottom;
}

.hero-slide.is-active .mock-chart .bar {
  animation: bar-rise 0.9s ease both;
}

.mock-chart .bar.active {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  opacity: 1;
}

.mock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.mock-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.mock-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* BOM / producción tree */
.mock-tree {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.mock-tree .node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(5, 13, 36, 0.35);
  border-left: 3px solid var(--blue-400);
  font-size: 0.72rem;
  min-width: 0;
  word-break: break-word;
}

.mock-tree .node.child {
  margin-left: 0.65rem;
  border-left-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.05);
}

.mock-tree .node span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  flex-shrink: 0;
}

/* Kanban CRM */
.mock-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.kan-col {
  background: rgba(5, 13, 36, 0.3);
  border-radius: 10px;
  padding: 0.4rem;
  min-height: 0;
  min-width: 0;
}

.kan-col h4 {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kan-card {
  padding: 0.4rem 0.42rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}

.kan-card strong {
  display: block;
  font-size: 0.66rem;
  color: var(--gold-300);
  margin-top: 0.15rem;
  font-weight: 700;
}

.kan-col.hot .kan-card {
  border: 1px solid rgba(232, 185, 35, 0.35);
  background: rgba(232, 185, 35, 0.12);
}

/* Facturación rows */
.mock-invoice {
  display: grid;
  gap: 0.4rem;
}

.inv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: #fff;
}

.inv-row span:first-child {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-row b {
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Almacén stock bars */
.mock-stock {
  display: grid;
  gap: 0.55rem;
}

.stock-row {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
}

.stock-row .meta {
  display: flex;
  justify-content: space-between;
}

.stock-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.stock-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  width: var(--w);
}

.stock-fill.warn {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.stock-fill.ok {
  background: linear-gradient(90deg, #1f8f5f, #4ade80);
}

/* Cobranza aging */
.mock-aging {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.aging-cell {
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-radius: 10px;
  background: rgba(5, 13, 36, 0.35);
}

.aging-cell small {
  display: block;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.25rem;
}

.aging-cell strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #fff;
}

.aging-cell.late strong {
  color: var(--gold-300);
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.tag-ok {
  background: rgba(31, 143, 95, 0.25);
  color: #8dffc4;
}

.tag-gold {
  background: rgba(232, 185, 35, 0.2);
  color: var(--gold-200);
}

.tag-warn {
  background: rgba(255, 107, 107, 0.2);
  color: #ffb4b4;
}

.hero-slider-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.hero-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-200);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 185, 35, 0.35);
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-slider-btn:hover {
  background: rgba(232, 185, 35, 0.18);
  border-color: var(--gold-300);
  transform: scale(1.05);
}

.hero-slider-btn:active {
  transform: scale(0.96);
}

.hero-slider-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(100%, 220px);
}

.hero-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.3s ease, background 0.3s ease;
  padding: 0;
}

.hero-dot.is-active {
  width: 20px;
  background: linear-gradient(90deg, var(--blue-400), var(--gold-400));
}

.hero-slider-caption {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(230, 238, 255, 0.72);
  min-height: 2.4em;
  line-height: 1.35;
  padding-inline: 0.25rem;
}

.hero-slider-caption strong {
  color: var(--gold-300);
  font-weight: 700;
}

/* Progress autoplay — al borde superior: la tarjeta flotante de "trust"
   se superpone al pie del banner y taparía la barra si fuera abajo. */
.hero-slider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.hero-slider-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.hero-slider-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-400), var(--gold-400));
  border-radius: 999px;
}

.hero-slider.is-playing .hero-slider-progress i {
  animation: slider-progress var(--autoplay, 5.5s) linear forwards;
}

.hero-scroll {
  display: none;
}

.hero .hero-scroll {
  display: none !important;
}

.hero-scroll i {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--gold-400), transparent);
  animation: scroll-line 1.6s ease-in-out infinite;
}

/* Sections */

.section {
  padding: var(--section-y) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(232, 238, 251, 0.9));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-400));
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--blue-900);
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Video promocional */

.promo-video {
  position: relative;
}

.promo-video-frame {
  margin: 0 auto;
  max-width: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-950);
  box-shadow: 0 16px 40px rgba(10, 26, 69, 0.14);
  border: 1px solid rgba(26, 79, 212, 0.25);
  aspect-ratio: 16 / 9;
}

.promo-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  background: #050d24;
}

.promo-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0 0;
}

@media (max-width: 640px) {
  .promo-video-meta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Casos / galería de uso en empresas — compacta */

.cases {
  position: relative;
  overflow: hidden;
}

.cases::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto;
  height: 55%;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(43, 110, 245, 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 185, 35, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.cases .container {
  position: relative;
  z-index: 1;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.case-card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background: #0a1638;
  box-shadow: 0 10px 24px rgba(10, 26, 69, 0.1);
  border: 1px solid rgba(15, 42, 107, 0.12);
  aspect-ratio: 5 / 4;
  min-height: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card--lg,
.case-card--wide {
  grid-column: auto;
  aspect-ratio: 5 / 4;
  min-height: 0;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 26, 69, 0.16);
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.case-card--lg img,
.case-card--wide img {
  min-height: 0;
  max-height: none;
}

.case-card:hover img {
  transform: scale(1.04);
}

.case-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.7rem 0.65rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 13, 36, 0.5) 40%,
    rgba(5, 13, 36, 0.92) 100%
  );
  color: #f4f7ff;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  z-index: 2;
}

.case-tag {
  align-self: flex-start;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-200);
  background: rgba(201, 148, 10, 0.18);
  border: 1px solid rgba(245, 208, 106, 0.35);
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.case-card figcaption strong {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card figcaption p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(244, 247, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cases-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .case-card {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .case-card figcaption {
    padding: 2.2rem 0.85rem 0.75rem;
  }

  .case-card figcaption strong {
    font-size: 0.92rem;
  }

  .case-card figcaption p {
    font-size: 0.78rem;
  }
}

@media (min-width: 1040px) {
  .cases-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .case-card {
    aspect-ratio: 4 / 3;
  }

  .case-card figcaption {
    padding: 2.4rem 0.95rem 0.85rem;
  }

  .case-tag {
    font-size: 0.62rem;
  }

  .case-card figcaption strong {
    font-size: 0.95rem;
  }

  .case-card figcaption p {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 479px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .case-card {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .case-card figcaption {
    padding: 1.6rem 0.55rem 0.55rem;
  }

  .case-tag {
    font-size: 0.52rem;
    padding: 0.12rem 0.32rem;
  }

  .case-card figcaption strong {
    font-size: 0.72rem;
  }

  .case-card figcaption p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-card,
  .case-card img {
    transition: none;
  }

  .case-card:hover,
  .case-card:hover img {
    transform: none;
  }
}

/* Trust strip */

.trust {
  padding: 0;
  margin-top: -1px;
}

.trust-row {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(90deg, var(--blue-900), var(--blue-800));
  color: var(--white);
  box-shadow: 0 18px 40px rgba(10, 26, 69, 0.25);
}

.trust-row p {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
}

.trust-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trust-row li {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 185, 35, 0.35);
  color: var(--gold-200);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Modules */

.module-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 42, 107, 0.08);
  width: 100%;
  max-width: 100%;
  box-shadow: 0 8px 24px rgba(10, 26, 69, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.module-filters::-webkit-scrollbar {
  display: none;
}

.filter {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--blue-800);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 40px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter:hover {
  background: rgba(15, 42, 107, 0.05);
}

.filter.is-active {
  color: var(--blue-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(201, 148, 10, 0.28);
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.module-card {
  position: relative;
  padding: 1.45rem 1.3rem 1.3rem;
  border-radius: 20px;
  background:
    linear-gradient(165deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid rgba(15, 42, 107, 0.09);
  box-shadow:
    0 14px 32px rgba(10, 26, 69, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-400));
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.module-card::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -30%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 110, 245, 0.08), transparent 70%);
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(10, 26, 69, 0.12);
  border-color: rgba(26, 79, 212, 0.2);
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-card.is-hidden {
  display: none;
}

.module-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--blue-800), var(--blue-600));
  color: var(--gold-300);
  box-shadow: 0 12px 24px rgba(15, 42, 107, 0.22);
  position: relative;
  z-index: 1;
}

.module-icon svg {
  width: 22px;
  height: 22px;
}

.module-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--blue-900);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.module-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.module-features {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  display: grid;
  gap: 0.45rem;
  border-top: 1px dashed rgba(15, 42, 107, 0.12);
  position: relative;
  z-index: 1;
}

.module-features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
}

.module-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.18);
}

/* Shared tiles · Perú */

.peru-grid,
.adv-grid {
  display: grid;
  gap: 1.1rem;
}

.info-tile,
.adv-card,
.flow-card {
  position: relative;
  border-radius: 20px;
  background:
    linear-gradient(160deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid rgba(15, 42, 107, 0.09);
  box-shadow:
    0 14px 34px rgba(10, 26, 69, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.info-tile:hover,
.adv-card:hover,
.flow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(10, 26, 69, 0.11);
  border-color: rgba(26, 79, 212, 0.18);
}

.info-tile {
  padding: 1.4rem 1.3rem 1.35rem;
}

.info-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.info-icon,
.adv-icon,
.flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold-300);
  background: linear-gradient(145deg, var(--blue-900), var(--blue-600));
  box-shadow: 0 10px 22px rgba(15, 42, 107, 0.22);
}

.info-icon.gold,
.adv-icon.gold,
.flow-icon.gold {
  color: var(--blue-900);
  background: linear-gradient(145deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 10px 22px rgba(201, 148, 10, 0.28);
}

.info-icon svg,
.adv-icon svg,
.flow-icon svg {
  width: 22px;
  height: 22px;
}

.info-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(15, 42, 107, 0.28);
}

.info-tile h3,
.adv-card h3,
.flow-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--blue-900);
  letter-spacing: -0.015em;
}

.info-tile p,
.adv-card p,
.flow-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Flow cards */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.flow-card {
  padding: 1.35rem 1.25rem 1.3rem;
  list-style: none;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.55rem;
  padding: 0 0.55rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  box-shadow: 0 4px 12px rgba(201, 148, 10, 0.25);
}

.flow-icon {
  margin-bottom: 0.85rem;
}

.flow-card h3 {
  margin-bottom: 0.4rem;
}

/* Advantages */

.adv-card {
  padding: 1.4rem 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.adv-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-400));
  opacity: 0.85;
}

.adv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.adv-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-800);
  background: rgba(15, 42, 107, 0.06);
  border: 1px solid rgba(15, 42, 107, 0.1);
}

.adv-points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid rgba(15, 42, 107, 0.08);
}

.adv-points li {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-900);
  background: linear-gradient(135deg, rgba(43, 110, 245, 0.08), rgba(232, 185, 35, 0.12));
  border: 1px solid rgba(15, 42, 107, 0.08);
}

/* Planes */


.plans-grid {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e4eaf5;
  box-shadow: 0 16px 36px rgba(16, 32, 72, 0.07);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(16, 32, 72, 0.12);
}

.plan-card--featured {
  border-color: rgba(201, 148, 10, 0.55);
  box-shadow:
    0 18px 40px rgba(16, 32, 72, 0.1),
    0 0 0 1px rgba(232, 185, 35, 0.35);
}

.plan-card--featured:hover {
  border-color: rgba(201, 148, 10, 0.8);
}

.plan-card-head {
  padding: 1.25rem 1.2rem 1.1rem;
  background: #f5f8fd;
  border-bottom: 1px solid #e6edf8;
}

.plan-card--featured .plan-card-head {
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 208, 106, 0.28), transparent 42%),
    linear-gradient(155deg, #071433 0%, #12327d 100%);
  border-bottom: 0;
}

.plan-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.plan-badge {
  margin: 0;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1404;
  background: linear-gradient(180deg, #ffe07a, var(--gold-400));
}

.plan-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.plan-head-top .plan-eyebrow {
  margin: 0;
}

.plan-card--featured .plan-eyebrow {
  color: var(--gold-300);
}

.plan-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: #12182b;
}

.plan-card--featured h3 {
  color: #ffffff;
}

.plan-summary {
  margin: 0;
  color: #5c6b86;
  font-size: 0.9rem;
  line-height: 1.45;
}

.plan-card--featured .plan-summary {
  color: rgba(232, 239, 255, 0.78);
}

.plan-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  flex: 1;
  padding: 1.05rem 1.15rem 1.2rem;
}

.plan-price {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.plan-price--compact {
  gap: 0.7rem;
  padding: 0;
  border-radius: 0;
  color: var(--blue-950);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.plan-price-mainline {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  color: var(--blue-950);
}

.plan-price-mainline .plan-currency {
  margin-right: 0.12rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-500);
}

.plan-price-mainline strong {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 3.15rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--blue-950);
}

.plan-price-mainline .plan-period {
  margin-left: 0.08rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #667085;
}

.plan-annual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid rgba(201, 148, 10, 0.28);
}

.plan-annual-row p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.plan-annual-row span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.plan-annual-row strong {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.plan-annual-row em {
  flex: 0 0 auto;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-300);
  background: var(--blue-900);
  white-space: nowrap;
}

.plan-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.plan-stats div {
  min-height: 4.4rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  text-align: center;
  background: #f4f7fb;
}

.plan-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--blue-950);
}

.plan-stats dd.plan-stat-word {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.plan-stats dt {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #667085;
}

.plan-price-block--annual {
  position: relative;
  padding: 1.1rem 1rem 1rem;
  border-radius: 18px;
  color: #eef3ff;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 185, 35, 0.28), transparent 38%),
    linear-gradient(145deg, #0a1a45 0%, #12327d 52%, #1a4fd4 100%);
  border: 1px solid rgba(232, 185, 35, 0.35);
  box-shadow:
    0 16px 32px rgba(10, 26, 69, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.plan-price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.plan-price-block--annual .plan-price-label {
  margin: 0;
  color: var(--gold-300);
}

.plan-save {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  box-shadow: 0 6px 14px rgba(201, 148, 10, 0.3);
  white-space: nowrap;
}

.plan-price-block--annual .plan-price-main {
  color: #ffffff;
}

.plan-price-block--annual .plan-period {
  color: rgba(232, 239, 255, 0.78);
}

.plan-price-block--annual .plan-price-alt {
  color: rgba(232, 239, 255, 0.9);
}

.plan-price-block--annual .plan-price-alt strong {
  color: var(--gold-300);
}

.plan-save-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(232, 239, 255, 0.78);
}

.plan-price-block--monthly {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(15, 42, 107, 0.04);
  border: 1px dashed rgba(15, 42, 107, 0.16);
}

.plan-price-block--monthly .plan-price-label {
  margin-bottom: 0.35rem;
  color: rgba(15, 42, 107, 0.55);
}

.plan-price-block--monthly .plan-price-main {
  color: var(--blue-800);
}

.plan-price-main--sm strong {
  font-size: 1.55rem;
}

.plan-price-main {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  color: var(--blue-950);
}

.plan-currency {
  font-size: 1.1rem;
  font-weight: 800;
}

.plan-price-main strong {
  font-family: var(--font-display);
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan-period {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.plan-price-alt {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-800);
}

.plan-price-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.plan-impl {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.plan-impl strong {
  color: var(--blue-900);
}

.plan-modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  flex: 1;
}

.plan-modules--compact {
  gap: 0;
  align-content: start;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(15, 42, 107, 0.06);
}

.plan-modules li {
  display: grid;
  gap: 0.15rem;
  padding-left: 1.15rem;
  position: relative;
}

.plan-modules--compact li {
  min-height: 40px;
  align-content: center;
  padding: 0.55rem 0 0.55rem 1.7rem;
  border-bottom: 1px solid rgba(15, 42, 107, 0.07);
}

.plan-modules--compact li:last-child {
  border-bottom: 0;
}

.plan-modules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--blue-500));
}

.plan-modules--compact li::before {
  top: 0.78rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe07a, var(--gold-400));
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.16);
}

.plan-modules--compact li::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 1.05rem;
  width: 0.32rem;
  height: 0.18rem;
  border-left: 2px solid #1a1404;
  border-bottom: 2px solid #1a1404;
  transform: rotate(-45deg);
}

.plan-modules strong {
  color: #1c2438;
  font-size: 0.92rem;
  font-weight: 700;
}

.plan-modules span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.plan-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.plan-cta.btn-outline {
  color: var(--blue-900);
  border: 1.5px solid rgba(15, 42, 107, 0.28);
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: 0 8px 18px rgba(10, 26, 69, 0.08);
}

.plan-cta.btn-outline:hover {
  color: var(--blue-950);
  border-color: rgba(201, 148, 10, 0.7);
  background: rgba(232, 185, 35, 0.14);
}

.plan-card--featured .plan-cta {
  box-shadow: 0 10px 22px rgba(201, 148, 10, 0.28);
}

.plan-module-notes {
  margin-top: 2.2rem;
  padding: 1.5rem 1.25rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(232, 185, 35, 0.14), transparent 42%),
    linear-gradient(160deg, #0a1a45 0%, #0f2a6b 55%, #16398f 100%);
  color: #e8efff;
  box-shadow: 0 18px 40px rgba(10, 26, 69, 0.22);
}

.plan-module-notes h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}

.plan-module-notes-lead {
  margin: 0 0 1.2rem;
  max-width: 58ch;
  color: rgba(232, 239, 255, 0.86);
  line-height: 1.55;
}

.plan-notes-grid {
  display: grid;
  gap: 0.9rem;
}

.plan-notes-grid article {
  padding: 1rem 1rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-notes-grid h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--gold-300);
}

.plan-notes-grid p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(232, 239, 255, 0.88);
}

/* CTA */

.cta-band {
  padding-bottom: 3rem;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 2rem 1.1rem;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 80% at 85% 0%, rgba(232, 185, 35, 0.25), transparent 50%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800) 55%, #12307a);
  box-shadow: var(--shadow);
}

.cta-logo {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: min(148px, 42vw);
  height: auto;
  display: block;
  background: transparent;
  filter:
    drop-shadow(0 8px 18px rgba(3, 8, 24, 0.4))
    drop-shadow(0 0 20px rgba(232, 185, 35, 0.12));
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.cta-inner > p {
  margin: 0 auto 1.5rem;
  max-width: 40ch;
  color: rgba(230, 238, 255, 0.88);
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 48px;
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease;
  word-break: break-word;
}

a.contact-chip:hover {
  background: rgba(232, 185, 35, 0.15);
  border-color: rgba(232, 185, 35, 0.45);
}

.contact-chip svg {
  flex-shrink: 0;
  color: var(--gold-300);
}

/* Footer */

.site-footer {
  padding: 2rem 0 calc(5.5rem + var(--safe-bottom));
  background: var(--blue-950);
  color: rgba(230, 238, 255, 0.78);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  width: 128px;
  height: auto;
  margin-bottom: 0.75rem;
  background: transparent;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  opacity: 0.96;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer-meta a:hover {
  color: var(--gold-300);
}

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(230, 238, 255, 0.5);
}

/* WhatsApp float */

.whatsapp-float {
  position: fixed;
  right: max(0.9rem, var(--safe-right));
  bottom: max(0.9rem, calc(0.75rem + var(--safe-bottom)));
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #25d366, #128c7e);
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse-wa 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 36px rgba(18, 140, 126, 0.5);
}

.whatsapp-float:active {
  transform: scale(0.96);
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Keyframes */

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes aura-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1.02); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes bar-rise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes slider-progress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4); }
  50% { box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.15); }
}

/* Responsive */

@media (min-width: 480px) {
  .hero-actions {
    grid-template-columns: 1fr 1fr;
    max-width: 420px;
  }

  .mock-aging {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  :root {
    --header-h: 72px;
    --page-pad: 1.25rem;
    --section-y: 4.25rem;
  }

  .brand-logo {
    width: 132px;
  }

  .hero {
    align-items: center;
    padding: 0;
  }

  /* La altura la marca el banner (proporción de la foto), no el viewport */
  .hero-banner-wrap,
  .hero-banner-wrap .hero-slider,
  .hero-banner-wrap .hero-slider-viewport,
  .hero-banner-wrap .hero-slider-track,
  .hero-banner-wrap .hero-slide.is-active {
    height: auto;
  }

  .banner-slide-copy .hero-lead {
    margin-bottom: 0.65rem;
  }

  .banner-points {
    margin-bottom: 0.85rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-logo {
    width: min(280px, 70vw);
  }

  .hero-actions {
    display: flex;
    max-width: none;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-visual {
    max-width: 480px;
    perspective: 1400px;
  }

  .hero-slider-viewport {
    border-radius: 22px;
    transform: rotateY(-5deg) rotateX(3deg);
  }

  .hero-slider:hover .hero-slider-viewport {
    transform: rotateY(-2deg) rotateX(1deg);
  }

  .hero-scroll {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
  }

  .slide-title-row h3 {
    font-size: 1.15rem;
  }

  .slide-title-row p,
  .slide-top {
    font-size: 0.78rem;
  }

  .inv-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    font-size: 0.78rem;
  }

  .inv-row span:first-child {
    grid-column: auto;
  }

  .mock-chart {
    height: 100px;
  }

  .module-filters {
    flex-wrap: wrap;
    width: fit-content;
    overflow: visible;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .peru-grid,
  .adv-grid,
  .flow,
  .plan-notes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .plan-module-notes {
    padding: 1.75rem 1.6rem;
  }

  .contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-chip {
    width: auto;
    border-radius: 999px;
  }

  .cta-inner {
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
  }

  .trust-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    border-radius: var(--radius);
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    padding: 1.35rem 1.5rem;
  }

  .cta-band {
    padding-bottom: 4rem;
  }
}

@media (min-width: 960px) {
  :root {
    --header-h: 76px;
    --page-pad: 1.5rem;
    --section-y: 5rem;
  }

  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .hero-visual {
    max-width: 520px;
  }

  .hero-slider-viewport {
    min-height: 360px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .peru-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow,
  .adv-grid,
  .plan-notes-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .plan-card-head {
    min-height: 9.4rem;
  }

  .plan-card--featured:hover {
    transform: translateY(-6px);
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: 3rem;
  }

  .footer-brand {
    flex: 1 1 260px;
    max-width: 320px;
  }

  .footer-nav {
    flex: 1 1 260px;
    max-width: 340px;
    align-content: flex-start;
  }

  .footer-meta {
    flex: 0 1 220px;
  }

  .footer-copy {
    flex-basis: 100%;
  }
}

@media (max-width: 380px) {
  .mock-stats {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: min(190px, 70vw);
  }

  .module-card,
  .info-tile,
  .adv-card,
  .flow-card {
    padding: 1.15rem 1rem 1.1rem;
  }

  .plan-card {
    padding: 0;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card--featured {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-logo,
  .logo-aura::before,
  .whatsapp-float,
  .hero-slide.is-active .mock-chart .bar,
  .hero-slider.is-playing .hero-slider-progress i,
  .hero-scroll i {
    animation: none !important;
  }

  .hero-slider-viewport {
    transform: none;
  }
}
