/**
 * APOLO SYSTEM — componentes.
 * Bootstrap, jQuery, Chart.js y SweetAlert2 van por CDN en cada HTML.
 * En producción: minificar este archivo (cssnano / lightningcss) y servir con gzip.
 * Mobile-first. Breakpoints de revisión: 375px, 768px, 1440px (+ Bootstrap md/lg).
 */

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-8));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-16);
  top: -100px;
  z-index: 2000;
  padding: var(--space-8) var(--space-16);
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-8);
}

/* ==========================================================================
   Tipografía
   ========================================================================== */

.font-display,
h1,
h2,
h3,
.navbar-brand {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-primary);
}

h1 {
  font-size: var(--text-hero);
  margin-bottom: var(--space-24);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-24);
}

h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-16);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}

.lead-muted {
  max-width: 38rem;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

/* ==========================================================================
   Bootstrap overrides — botones
   (deja de verse “plantilla azul Bootstrap”)
   ========================================================================== */

.btn {
  --bs-btn-border-radius: var(--radius-full);
  --bs-btn-font-weight: var(--font-weight-semibold);
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: 0.7rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}

.btn-primary {
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-color: var(--color-primary-700);
  --bs-btn-hover-bg: var(--color-accent-600);
  --bs-btn-hover-border-color: var(--color-accent-600);
  --bs-btn-hover-color: var(--color-primary-700);
  --bs-btn-active-bg: var(--color-accent-600);
  --bs-btn-active-border-color: var(--color-accent-600);
  --bs-btn-disabled-bg: var(--color-gray-300);
  --bs-btn-disabled-border-color: var(--color-gray-300);
  box-shadow: var(--shadow-sutil);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-media);
}

.btn-secondary {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary);
  --bs-btn-hover-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--color-white);
}

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

.btn-outline-light {
  --bs-btn-color: var(--color-white);
  --bs-btn-border-color: var(--glass-border);
  --bs-btn-hover-bg: var(--color-white);
  --bs-btn-hover-color: var(--color-primary);
}

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

.btn--product,
.btn-product {
  background: var(--accent-current);
  border: 1px solid var(--accent-current);
  color: var(--color-primary-700);
  border-radius: var(--radius-full);
}

.btn--product:hover,
.btn-product:hover {
  filter: brightness(0.96);
  color: var(--color-primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-media);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-product:hover,
  .card-product:hover,
  .product-card:hover {
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Bootstrap overrides — navbar
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--header-h);
  background: rgba(7, 16, 24, 0.94);
  border-bottom: 1px solid var(--glass-border);
  transition:
    border-color var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out),
    backdrop-filter var(--duration) var(--ease-out);
}

.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-header--overlay.is-scrolled,
.site-header.is-scrolled {
  background: rgba(7, 16, 24, 0.96);
  border-bottom-color: var(--glass-border);
  backdrop-filter: blur(16px);
}

.site-header .navbar {
  padding-block: var(--space-8);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 1.05rem;
  color: var(--color-white) !important;
  text-decoration: none;
}

.navbar-brand__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.navbar-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.navbar-brand__text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.12em;
  color: var(--color-mist);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.footer-brand__logo {
  height: 56px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.navbar.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: var(--font-weight-medium);
  padding-inline: 0.7rem;
  position: relative;
}

.navbar.navbar-dark .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.navbar.navbar-dark .navbar-nav .nav-link:hover,
.navbar.navbar-dark .navbar-nav .nav-link.active {
  color: var(--color-white);
}

.navbar.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar.navbar-dark .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: var(--glass-border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem var(--bs-focus-ring-color);
}

.offcanvas-nav {
  background: var(--color-night);
  color: var(--color-text-inverse);
}

.offcanvas-nav .offcanvas-title {
  font-family: var(--font-display);
  color: var(--color-white);
}

.offcanvas-nav .btn-close {
  filter: invert(1);
}

.offcanvas-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: var(--font-weight-medium);
  padding: var(--space-8) 0;
}

.offcanvas-nav .nav-link.active,
.offcanvas-nav .nav-link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Bootstrap overrides — cards genéricas
   ========================================================================== */

.card {
  --bs-card-border-radius: var(--radius-md);
  --bs-card-border-color: var(--color-border);
  --bs-card-bg: var(--color-surface);
  box-shadow: var(--shadow-sutil);
}

/* ==========================================================================
   Secciones + separadores wave / diagonal
   ========================================================================== */

.section {
  position: relative;
  padding-block: var(--section-pad-y);
}

.section--dark {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--night {
  background: var(--color-bg-night);
  color: var(--color-text-inverse);
}

.section--night h1,
.section--night h2,
.section--night h3 {
  color: var(--color-white);
}

.section--paper {
  background: var(--color-bg-alt);
}

.section--dark .lead-muted,
.section--night .lead-muted {
  color: var(--color-text-inverse-muted);
}

/* Onda SVG al borde inferior (une secciones claro/oscuro) */
.section--wave {
  padding-bottom: calc(var(--section-pad-y) + 48px);
}

.section--wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 56px;
}

.section--wave-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%230B1F3A' d='M0 24c240 32 480-24 720-8s480 40 720 8v32H0z'/%3E%3C/svg%3E");
}

.section--wave-ice::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23F4F7FB' d='M0 24c240 32 480-24 720-8s480 40 720 8v32H0z'/%3E%3C/svg%3E");
}

.section--wave-paper::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 24c240 32 480-24 720-8s480 40 720 8v32H0z'/%3E%3C/svg%3E");
}

.section--wave-night::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23071018' d='M0 24c240 32 480-24 720-8s480 40 720 8v32H0z'/%3E%3C/svg%3E");
}

/* Corte diagonal sutil */
.section--diagonal {
  clip-path: polygon(0 0, 100% 24px, 100% 100%, 0 calc(100% - 24px));
}

@media (min-width: 768px) {
  .section--diagonal {
    clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
  }
}

/* ==========================================================================
   Hero slider (inicio)
   ========================================================================== */

.hero-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--color-night);
  color: var(--color-text-inverse);
}

@media (min-width: 992px) {
  .hero-slider {
    height: 100vh;
    min-height: 640px;
  }
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
  z-index: 0;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slider__bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 6s linear;
}

.hero-slider__slide.is-active .hero-slider__bg {
  transform: scale(1);
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.88) 0%, rgba(7, 16, 24, 0.55) 48%, rgba(7, 16, 24, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 16, 24, 0.35) 0%, rgba(7, 16, 24, 0.55) 100%);
}

.hero-slider__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: var(--header-h);
  padding-bottom: var(--space-64);
}

.hero-slider__copy {
  max-width: 38rem;
}

.hero-slider__copy .eyebrow,
.hero-slider__copy .hero-slider__title,
.hero-slider__copy p,
.hero-slider__copy .btn {
  opacity: 0;
  transform: translateY(22px);
}

.hero-slider__slide.is-enter .eyebrow {
  animation: hero-copy-in 0.7s var(--ease-out) 0.05s forwards;
}

.hero-slider__slide.is-enter .hero-slider__title {
  animation: hero-copy-in 0.75s var(--ease-out) 0.16s forwards;
}

.hero-slider__slide.is-enter p {
  animation: hero-copy-in 0.75s var(--ease-out) 0.28s forwards;
}

.hero-slider__slide.is-enter .btn {
  animation: hero-copy-in 0.7s var(--ease-out) 0.4s forwards;
}

@keyframes hero-copy-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-slider__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-white);
  margin-bottom: var(--space-16);
}

.hero-slider .eyebrow {
  color: var(--accent-current);
}

.hero-slider .lead-muted {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-24);
}

.hero-slider__prev,
.hero-slider__next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: rgba(7, 16, 24, 0.4);
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hero-slider__prev:hover,
.hero-slider__next:hover {
  background: rgba(224, 122, 61, 0.9);
  color: var(--color-night);
  border-color: transparent;
}

.hero-slider__prev {
  left: var(--space-8);
}

.hero-slider__next {
  right: var(--space-8);
}

@media (min-width: 768px) {
  .hero-slider__prev {
    left: var(--space-24);
  }

  .hero-slider__next {
    right: var(--space-24);
  }
}

.hero-slider__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: var(--space-24);
  display: flex;
  gap: var(--space-8);
  transform: translateX(-50%);
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-slider__dot.is-active {
  width: 28px;
  background: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide,
  .hero-slider__bg,
  .hero-slider__copy .eyebrow,
  .hero-slider__copy .hero-slider__title,
  .hero-slider__copy p,
  .hero-slider__copy .btn {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-slider__slide.is-active .hero-slider__bg {
    transform: none;
  }
}

.hero-product {
  padding-block: calc(var(--section-pad-y) + var(--space-16));
  background:
    radial-gradient(
      ellipse 70% 50% at 90% 10%,
      color-mix(in srgb, var(--accent-current) 28%, transparent),
      transparent 55%
    ),
    var(--color-bg-night);
}

.hero-product .eyebrow {
  color: var(--accent-current);
}

/* ==========================================================================
   Badges — Nuevo / Popular
   ========================================================================== */

.badge-ui {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
  vertical-align: middle;
}

.badge-ui--nuevo {
  background: var(--color-accent-teal);
  color: var(--color-white);
}

.badge-ui--popular {
  background: var(--color-accent);
  color: var(--color-primary-700);
}

.badge-ui--producto {
  background: var(--accent-current);
  color: var(--color-primary-700);
}

/* ==========================================================================
   Cards de producto (hover: elevación + escala)
   ========================================================================== */

.card-product,
.product-card {
  --accent-current: var(--color-accent);
  display: block;
  height: 100%;
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  transform: translateY(0) scale(1);
  transition:
    transform var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

.card-product:hover,
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  color: inherit;
  box-shadow: var(--shadow-fuerte);
}

.card-product[data-product="a-prueba"],
.product-card[data-product="a-prueba"] {
  --accent-current: var(--color-product-aprueba);
}

.card-product[data-product="aduanas"],
.product-card[data-product="aduanas"] {
  --accent-current: var(--color-product-aduanas);
}

.card-product[data-product="reclamaciones"],
.product-card[data-product="reclamaciones"] {
  --accent-current: var(--color-product-reclamaciones);
}

.card-product:hover,
.product-card:hover {
  border-color: var(--accent-current);
}

.card-product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.card-product__bar,
.accent-bar {
  width: 40px;
  height: 3px;
  margin-bottom: var(--space-16);
  background: var(--accent-current);
  border-radius: var(--radius-full);
}

.card-product .eyebrow,
.product-card .eyebrow {
  margin-bottom: 0;
  color: var(--accent-current);
}

.card-product__title {
  color: var(--color-white);
  margin-bottom: var(--space-8);
}

.card-product__text {
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-24);
}

.card-product__cta {
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

/* ==========================================================================
   Chips, pasos, confianza, features
   ========================================================================== */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.chip {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  background: var(--color-surface);
}

.step-num {
  display: block;
  margin-bottom: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
}

.trust-tag {
  display: inline-block;
  margin: var(--space-4);
  padding: 6px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
}

.feature-card {
  height: 100%;
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sutil);
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.feature-card:hover {
  box-shadow: var(--shadow-media);
  transform: translateY(-4px);
}

.section--dark .feature-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
}

.split-panel {
  padding: var(--space-32);
  border-radius: var(--radius-md);
  height: 100%;
}

.split-panel--problem {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.split-panel--solution {
  background: var(--color-primary);
  color: var(--color-white);
}

.split-panel--solution h3 {
  color: var(--color-white);
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: var(--space-16);
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--color-mist);
  font-size: var(--text-sm);
}

.breadcrumb-item.active {
  color: var(--color-white);
}

.mock-ui {
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-fuerte);
}

@media (min-width: 768px) {
  .mock-ui {
    min-height: 280px;
  }
}

/* ==========================================================================
   FAQ (accordion Bootstrap)
   ========================================================================== */

.faq .accordion-item {
  background: transparent;
  border-color: var(--color-border);
}

.faq .accordion-button {
  font-weight: var(--font-weight-semibold);
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
  background: var(--color-bg);
  color: var(--color-primary);
}

.faq .accordion-button:focus {
  box-shadow: 0 0 0 0.15rem var(--bs-focus-ring-color);
}

/* ==========================================================================
   Formularios
   ========================================================================== */

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border-color: var(--color-border);
  padding: 0.75rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(27, 75, 138, 0.15);
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-error {
  color: var(--color-danger);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-bg-night);
  color: var(--color-text-inverse-muted);
  padding-top: var(--space-64);
  font-size: var(--text-sm);
}

.site-footer a {
  color: var(--color-text-inverse);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-white);
}

.site-footer h2,
.site-footer .footer-brand {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: var(--space-16);
}

.footer-legal {
  margin-top: var(--space-48);
  padding: var(--space-24) 0;
  border-top: 1px solid var(--glass-border);
}

.libro-reclamaciones-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--font-weight-semibold);
}

.libro-reclamaciones-link img {
  width: 48px;
  height: auto;
}

.site-footer .location-social a {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}

.site-footer .location-social a:hover,
.site-footer .location-social a:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-700);
}

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: var(--space-16);
  bottom: var(--space-16);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25d366;
  box-shadow: var(--shadow-media);
  text-decoration: none;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow: var(--shadow-fuerte);
  outline: none;
}

.whatsapp-float img {
  width: 56px;
  height: 56px;
  display: block;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #25d366;
  animation: whatsapp-pulse 2s var(--ease-out) infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: var(--space-24);
    bottom: var(--space-24);
    width: 64px;
    height: 64px;
  }

  .whatsapp-float img {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__pulse {
    animation: none;
    display: none;
  }

  .whatsapp-float:hover,
  .whatsapp-float:focus-visible {
    transform: none;
  }
}

.icon-wa {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  margin-right: 0.35em;
}

.card-servicio {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-32);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sutil);
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.card-servicio:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-media);
  border-color: var(--accent-current);
}

.card-servicio__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-16);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent-current) 16%, var(--color-ice));
  color: var(--accent-current);
  font-size: 1.65rem;
}

.card-servicio__title {
  margin-bottom: var(--space-8);
}

.card-servicio__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  margin-bottom: var(--space-16);
}

.card-servicio__list {
  padding-left: 1.1rem;
  margin-bottom: var(--space-16);
  color: var(--color-slate);
  font-size: var(--text-sm);
}

.card-servicio__list li {
  margin-bottom: var(--space-8);
}

.card-servicio__precio {
  margin-top: auto;
  margin-bottom: var(--space-16);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.card-servicio .btn {
  align-self: flex-start;
}

/* ==========================================================================
   Page header (producto) + A-PRUEBA
   ========================================================================== */

.page-hero {
  padding-top: var(--space-32);
  padding-bottom: var(--space-48);
  background: var(--color-night);
  color: var(--color-text-inverse);
}

.page-hero h1 {
  color: var(--color-white);
}

.page-hero .lead-muted {
  color: var(--color-ice);
  max-width: 38rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-16);
}

.page-hero__actions .btn {
  white-space: nowrap;
}

.btn-hero-register {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  border-radius: var(--radius-full);
}

.btn-hero-register:hover,
.btn-hero-register:focus-visible {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary-700);
}

.page-hero__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-fuerte);
}

@media (min-width: 768px) {
  .page-hero {
    padding-bottom: var(--space-64);
  }

  .page-hero__img {
    height: 280px;
  }
}

.exam-mock {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-media);
  background: var(--color-paper);
}

.exam-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #e8ecf1;
}

.exam-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5ccd6;
}

.exam-mock__url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 0.75rem;
  color: var(--color-mist);
}

.exam-mock__body {
  padding: var(--space-24);
}

.exam-mock__meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mist);
  margin-bottom: var(--space-16);
}

.exam-mock__q {
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-16);
}

.exam-mock__opt {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.exam-mock__opt.is-selected {
  border-color: var(--accent-aprueba);
  background: rgba(240, 162, 2, 0.12);
}

.plan-card {
  max-width: 28rem;
  margin-inline: auto;
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-media);
  text-align: center;
}

.plan-card__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-navy);
  line-height: 1.15;
}

.yape-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}

.quote-card {
  height: 100%;
  padding: var(--space-24);
  border-radius: var(--radius-md);
  background: var(--color-ice);
  border: 1px solid var(--color-line);
}

.quote-card p {
  font-size: var(--text-sm);
}

.chart-frame {
  padding: var(--space-24);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sutil);
}

.tabs-producto {
  border-bottom: 1px solid var(--color-line);
  gap: var(--space-8);
  flex-wrap: wrap;
}

.tabs-producto .nav-link {
  color: var(--color-slate);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  border: 0;
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
}

.tabs-producto .nav-link.active {
  color: var(--color-white);
  background: var(--accent-current, var(--color-product-aduanas));
}

.tab-producto {
  padding: var(--space-32) 0 0;
}

.dash-mock {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-media);
  min-height: 220px;
  padding: var(--space-24);
}

.dash-mock__row {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.dash-mock__kpi {
  flex: 1;
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
}

.dash-mock__kpi strong {
  display: block;
  font-size: var(--text-lg);
  color: #7fd4d0;
}

.transport-icons {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.transport-icons img {
  width: 56px;
  height: 56px;
}

.mapa-rutas {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .mapa-rutas {
    height: 320px;
  }
}

.form-mock {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: var(--shadow-media);
  overflow: hidden;
}

.form-mock__head {
  padding: var(--space-16) var(--space-24);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
}

.form-mock__body {
  padding: var(--space-24);
}

.form-mock__field {
  height: 36px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--color-ice);
  border: 1px solid var(--color-line);
}

.form-mock__field--lg {
  height: 72px;
}

.plan-list {
  text-align: left;
  margin: var(--space-24) auto;
  max-width: 22rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-navy);
  line-height: 1.1;
  display: block;
}

.timeline {
  position: relative;
  padding-left: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-32) 5.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline__year {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-copper);
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sutil);
  background: var(--color-ice);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-social {
  display: flex;
  gap: var(--space-16);
  margin-top: var(--space-16);
}

.location-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  text-decoration: none;
}

.location-social a:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.location-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   JS reveal
   ========================================================================== */

.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.7s var(--ease-out) var(--reveal-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .hero-slider {
    height: auto;
    min-height: 100svh;
  }

  .hero-slider__content {
    padding-top: calc(var(--header-h) + var(--space-16));
    padding-bottom: 6.5rem;
  }

  .hero-slider__title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero-slider__prev,
  .hero-slider__next {
    top: auto;
    bottom: 4.25rem;
    transform: none;
    width: 40px;
    height: 40px;
  }

  .navbar-brand__text {
    font-size: 0.92rem;
  }

  .card-servicio {
    padding: var(--space-24);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-slider {
    height: 90vh;
  }

  .tabs-producto .nav-link {
    font-size: 0.8rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }

  .hero-slider {
    min-height: 720px;
  }
}

/* Producción: minificar style.css (cssnano, lightningcss, etc.) */

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: var(--space-16) 0 var(--space-8);
  }

  .navbar.navbar-dark .navbar-nav .nav-link::after {
    display: none;
  }
}
