/* ==========================================================================
   CERTIFIKANTE LANDING PAGE - DESIGN SYSTEM & STYLES
   Paleta en tonos suaves inspirada en la confianza y rigor empresarial
   ========================================================================== */

:root {
  /* Brand Primary: Deep Corporate Navy (derived from official logo #001248) */
  --primary: #001248;
  --primary-hover: #001f66;
  --primary-active: #000c30;
  --primary-light: #eef3fa;
  --primary-border: rgba(0, 18, 72, 0.15);
  --primary-glow: rgba(0, 18, 72, 0.10);

  /* Brand Accent: Soft Emerald / Mint (Verificación y certeza) */
  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: rgba(16, 185, 129, 0.2);
  --emerald-glow: rgba(16, 185, 129, 0.12);

  /* Warning / Amber Soft */
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --amber-border: rgba(245, 158, 11, 0.2);

  /* Neutrals: Cool Slate spectrum */
  --bg-main: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-overlay: rgba(0, 18, 72, 0.5);

  /* Text hierarchy */
  --text-primary: #001248;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-light: rgba(0, 18, 72, 0.08);
  --border-medium: rgba(0, 18, 72, 0.15);
  --border-focus: rgba(0, 18, 72, 0.35);

  /* Elevation Shadows (Layered & Soft) */
  --shadow-sm:
    0 1px 2px 0 rgba(15, 23, 42, 0.04), 0 0 0 1px var(--border-light);
  --shadow-md:
    0 4px 12px -2px rgba(15, 23, 42, 0.05),
    0 2px 4px -1px rgba(15, 23, 42, 0.03), 0 0 0 1px var(--border-light);
  --shadow-lg:
    0 12px 28px -6px rgba(15, 23, 42, 0.08),
    0 4px 10px -2px rgba(15, 23, 42, 0.04), 0 0 0 1px var(--border-light);
  --shadow-xl:
    0 20px 38px -8px rgba(15, 23, 42, 0.1),
    0 6px 16px -4px rgba(15, 23, 42, 0.05), 0 0 0 1px var(--border-light);

  /* Radii scale */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-normal: 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    'Plus Jakarta Sans',
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.text-gradient {
  background: linear-gradient(135deg, #001248 0%, #002b80 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-hover);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-badge.emerald {
  background-color: var(--emerald-light);
  border-color: var(--emerald-border);
  color: var(--emerald-hover);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 6px rgba(0, 18, 72, 0.22);
  transition: all var(--transition-normal);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(0, 18, 72, 0.32);
  transform: translateY(-1.5px);
}

.btn-primary:hover::after {
  left: 140%;
  transition: left 650ms cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-1.5px);
}

.btn-emerald {
  background-color: var(--emerald);
  color: var(--text-inverse);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  transition: all var(--transition-normal);
}

.btn-emerald::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: none;
}

.btn-emerald:hover {
  background-color: var(--emerald-hover);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transform: translateY(-1.5px);
}

.btn-emerald:hover::after {
  left: 140%;
  transition: left 650ms cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition:
    border-color var(--transition-normal),
    background-color var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 18, 72, 0.08);
  flex-shrink: 0;
  padding: 3px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-border);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 20px 16px 24px;
  animation: mobileNavSlide 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-drawer.open {
  display: block;
}

@keyframes mobileNavSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--bg-subtle);
  color: var(--primary);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -180px;
  right: -220px;
  left: auto;
  transform: none;
  width: 900px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(0, 18, 72, 0.10) 0%,
    rgba(16, 185, 129, 0.08) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-bg-glow::after {
  content: '';
  position: absolute;
  top: 260px;
  left: -420px;
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.1) 0%,
    transparent 68%
  );
}

/* Textura de "papel de seguridad": líneas finas repetidas, referencia
   directa a los patrones guilloché de certificados y documentos oficiales */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(15, 23, 42, 0.035) 0px,
    rgba(15, 23, 42, 0.035) 1px,
    transparent 1px,
    transparent 10px
  );
  mask-image: radial-gradient(
    ellipse 900px 500px at 78% 10%,
    black 0%,
    transparent 72%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 900px 500px at 78% 10%,
    black 0%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-content h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.035em;
}

.hero-lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-cta-reassurance {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-cta-reassurance .reassurance-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-cta-reassurance svg {
  color: var(--emerald);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

.trust-item:hover {
  transform: translateY(-1px);
  color: var(--text-primary);
}

.trust-item svg {
  color: var(--emerald);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO CARD / INTERACTIVE CERTIFICATE PREVIEW
   ========================================================================== */
.hero-preview-wrapper {
  position: relative;
}

/* Sello de verificación: el único acento gráfico "audaz" de la página,
   evocando el timbre/sello de un documento certificado en papel */
.verify-stamp {
  position: absolute;
  top: -26px;
  left: -26px;
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  box-shadow:
    0 0 0 5px #ffffff,
    0 0 0 6px var(--primary-border),
    var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--primary);
  transform: rotate(-11deg);
  transition: transform var(--transition-normal);
}

.verify-stamp::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px dashed var(--primary-border);
}

.verify-stamp span {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.certificate-card:hover ~ .verify-stamp,
.hero-preview-wrapper:hover .verify-stamp {
  transform: rotate(-6deg) scale(1.04);
}

.certificate-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 28px;
  position: relative;
  transition: transform var(--transition-normal);
}

.certificate-card:hover {
  transform: translateY(-3px);
}

.cert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-hover);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
}

.cert-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.cert-doc-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.cert-title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-entity {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.cert-audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.audit-box {
  background: var(--bg-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.audit-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.audit-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.cert-roles-trail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
  margin-bottom: 20px;
}

.role-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.role-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.role-icon.signed {
  background: var(--emerald-light);
  color: var(--emerald-hover);
}

.role-name {
  font-weight: 600;
  color: var(--text-primary);
}

.role-desc {
  color: var(--text-muted);
}

.role-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.cert-footer-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--bg-subtle);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border-light);
}

/* Floating badge over certificate */
.floating-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: float-gentle 4s ease-in-out infinite;
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--emerald-light);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.floating-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SOCIAL PROOF & TRUST BAR
   ========================================================================== */
.section-social-proof {
  padding: 44px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.proof-metric-card {
  text-align: center;
  padding: 8px 16px;
}

.proof-metric-number {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.proof-metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.45;
}

.social-proof-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px dashed var(--border-light);
}

.proof-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.proof-badge-pill:hover {
  border-color: var(--primary-border);
  background: #ffffff;
  transform: translateY(-1px);
}

.proof-badge-pill svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   PAIN POINTS ("EL CAOS SILENCIOSO")
   ========================================================================== */
.section-pains {
  padding: 88px 0;
  background-color: var(--bg-subtle);
  position: relative;
}

.pains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pain-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 23, 42, 0.14);
}

.pain-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #fff1f2;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition:
    transform var(--transition-normal),
    background-color var(--transition-normal);
}

.pain-card:hover .pain-icon-wrapper {
  transform: translateY(-2px) scale(1.06);
  background: #ffe4e6;
}

.pain-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.pain-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 12px;
}

.pain-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ==========================================================================
   COMPARATIVE SECTION (EXCEL / WORD / GOOGLE FORMS VS CERTIFIKANTE)
   ========================================================================== */
.section-comparison {
  padding: 96px 0;
  background:
    radial-gradient(
      ellipse 820px 380px at 12% 0%,
      var(--primary-glow) 0%,
      transparent 60%
    ),
    var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.alternatives-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
  grid-template-rows: auto auto 1fr;
}

.alt-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 20px;
  transition: all var(--transition-normal);
}

.alt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 23, 42, 0.14);
}

.alt-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.alt-badge-fail {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #dc2626;
  background: #fef2f2;
  padding: 3px 8px;
  border-radius: 4px;
}

.alt-card h3 {
  font-size: 1.35rem;
}

.alt-problem-box {
  background: #fff8f8;
  border-left: 3px solid #f87171;
  padding: 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: #7f1d1d;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alt-problem-box strong {
  display: block;
  margin-bottom: 6px;
  color: #991b1b;
}

.alt-solution-box {
  background: var(--emerald-light);
  border-left: 3px solid var(--emerald);
  padding: 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  color: #065f46;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alt-solution-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--emerald-hover);
}

/* ==========================================================================
   RESPONSIVE COMPARISON CARDS (REPLACING OLD TABLE)
   ========================================================================== */
.comparison-cards-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.compare-row-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
  transition: all var(--transition-normal);
}

.compare-row-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.compare-aspect-col {
  display: flex;
  align-items: center;
  gap: 16px;
}

.compare-aspect-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.compare-row-card:hover .compare-aspect-icon {
  transform: scale(1.06);
}

.compare-aspect-icon svg {
  width: 24px;
  height: 24px;
}

.compare-aspect-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.compare-aspect-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.compare-aspect-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.compare-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-box-manual {
  background: #fef2f2;
  border: 1px solid #fee2e2;
}

.compare-box-certifikante {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.compare-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compare-box-manual .compare-box-header {
  color: #b91c1c;
}

.compare-box-certifikante .compare-box-header {
  color: #15803d;
}

.compare-indicator-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compare-indicator-icon.red {
  background: #fee2e2;
  color: #dc2626;
}

.compare-indicator-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.compare-indicator-icon svg {
  width: 12px;
  height: 12px;
}

.compare-box-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

.compare-box-manual .compare-box-desc {
  color: #7f1d1d;
}

.compare-box-certifikante .compare-box-desc {
  color: #14532d;
}

/* ==========================================================================
   HOW IT WORKS (3 SIMPLE STEPS)
   ========================================================================== */
.section-how-it-works {
  padding: 96px 0;
  position: relative;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.section-how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(15, 23, 42, 0.03) 0px,
    rgba(15, 23, 42, 0.03) 1px,
    transparent 1px,
    transparent 10px
  );
  mask-image: radial-gradient(
    ellipse 800px 420px at 90% 100%,
    black 0%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 800px 420px at 90% 100%,
    black 0%,
    transparent 70%
  );
  pointer-events: none;
}

.section-how-it-works > .container {
  position: relative;
  z-index: 1;
}

.steps-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px 30px;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.step-number-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  transition:
    transform var(--transition-normal),
    background-color var(--transition-normal);
}

.step-card:hover .step-number-tag {
  transform: translateY(-2px) scale(1.06);
  background: #e0e7ff;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.step-feature-pill {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald-hover);
  background: var(--emerald-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.step-feature-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   USE CASES BY ROLE ("PARA QUIÉN ES")
   ========================================================================== */
.section-usecases {
  padding: 96px 0;
  background: var(--bg-card);
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary-border);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 18, 72, 0.25);
}

.tab-content-panel {
  display: none;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 40px;
  animation: fadeIn 300ms ease;
}

.tab-content-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.tab-text p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.tab-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.tab-features-list svg {
  color: var(--emerald);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.tab-card-preview {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
}

.preview-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.stat-metric-card {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.stat-metric-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.stat-metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.section-faq {
  padding: 96px 0;
  background-color: var(--bg-subtle);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon-toggle {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 200ms ease;
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */
.section-final-cta {
  padding: 96px 0;
}

.cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(0, 18, 72, 0.35) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: #94a3b8;
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

.cta-button-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   MODAL: SOLICITAR DEMO
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.modal-header h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fff9f9 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-msg {
  display: none;
  font-size: 0.775rem;
  color: #dc2626;
  margin-top: 5px;
  font-weight: 500;
  line-height: 1.3;
}

.field-error-msg.visible {
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.2s ease-in-out;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
  box-sizing: border-box;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-feedback {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.45;
  display: none;
  margin-top: 16px;
  text-align: left;
  animation: fadeIn 0.25s ease-in-out;
  box-sizing: border-box;
}

.form-feedback.success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  color: #065f46;
}

.form-feedback.error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff1f2;
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: #9f1239;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-cta-group,
  .hero-trust-list,
  .hero-cta-reassurance {
    justify-content: center;
  }
  .social-proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .steps-3-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .pains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .alternatives-duo {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }
  .alt-card {
    grid-row: auto;
    grid-template-rows: auto;
    row-gap: 16px;
  }
  .tab-content-panel.active {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets & Mobiles (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Header adjustments */
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-actions .btn-primary {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  /* Hero adjustments */
  .hero-section {
    padding: 40px 0 64px;
  }
  .hero-content h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
    line-height: 1.18;
    margin-bottom: 16px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .hero-cta-reassurance {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }
  .hero-trust-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 18px;
  }

  /* Social Proof Bar Mobile */
  .social-proof-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .social-proof-badges {
    flex-direction: column;
    gap: 10px;
  }
  .proof-badge-pill {
    width: 100%;
    justify-content: center;
  }

  /* How It Works Mobile */
  .steps-3-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Certificate Mockup */
  .certificate-card {
    padding: 20px 16px;
  }
  .cert-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cert-audit-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .role-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cert-footer-code {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .floating-badge {
    position: static;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
  }

  /* Sections Spacing */
  .section-social-proof,
  .section-pains,
  .section-comparison,
  .section-how-it-works,
  .section-usecases,
  .section-faq,
  .section-final-cta {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .section-header p {
    font-size: 1rem;
  }

  /* Pains */
  .pains-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pain-card {
    padding: 22px 18px;
  }

  /* Alternatives */
  .alternatives-duo {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  .alt-card {
    padding: 22px 18px;
  }

  /* Responsive Comparison Cards */
  .compare-row-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
  }
  .compare-dual-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .compare-aspect-col {
    gap: 12px;
  }

  /* Use Cases Horizontal Scrollable Tabs */
  .tabs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 2px 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs-wrapper::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.875rem;
  }
  .tab-content-panel.active {
    padding: 24px 18px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tab-text h3 {
    font-size: 1.35rem;
  }
  .tab-text p {
    font-size: 0.9375rem;
  }
  .preview-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 18px;
    font-size: 0.9375rem;
    gap: 12px;
  }
  .faq-answer {
    padding: 0 18px 18px;
    font-size: 0.875rem;
  }

  /* Final CTA */
  .cta-banner {
    padding: 40px 20px;
  }
  .cta-banner h2 {
    font-size: 1.75rem;
  }
  .cta-banner p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .cta-button-group {
    flex-direction: column;
    gap: 12px;
  }
  .cta-button-group .btn {
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Modal Dialog */
  .modal-card {
    padding: 24px 18px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-header h3 {
    font-size: 1.35rem;
  }
}

/* Extra Small Screens (<= 440px) */
@media (max-width: 440px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand-name {
    font-size: 1.125rem;
  }
  .brand-tag {
    display: none;
  }
  .header-actions .btn-primary {
    display: none; /* Defer to full-width CTA in mobile drawer */
  }
}
/* ==========================================================================
   SUBTLE MOTION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 80ms;
}

.reveal-delay-2 {
  transition-delay: 160ms;
}

.reveal-delay-3 {
  transition-delay: 240ms;
}

/* Glow ambiental del hero */
.hero-bg-glow {
  animation: heroGlowFloat 12s ease-in-out infinite;
}

@keyframes heroGlowFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, 12px, 0) scale(1.025);
  }
}

/* Entrada inicial del hero */
.hero-content > *,
.hero-preview-wrapper {
  animation: heroEnter 700ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero-content > *:nth-child(2) {
  animation-delay: 80ms;
}

.hero-content > *:nth-child(3) {
  animation-delay: 160ms;
}

.hero-content > *:nth-child(4) {
  animation-delay: 240ms;
}

.hero-preview-wrapper {
  animation-delay: 180ms;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
