
/* ============================================================
   RESET Y BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #F8FAFC;
  color: #0F172A;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

/* Clases para aplicar animaciones al scroll
   Solo se activan si JS está cargado (body.js-enabled)
   Si JS falla, los elementos quedan visibles por defecto */

/* Animaciones: elementos son visibles por defecto.
   JS les agrega .js-oculto SOLO si están fuera de pantalla.
   Al entrar al viewport, JS quita .js-oculto y se animan. */
.animar {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-oculto {
  opacity: 0 !important;
}

.js-oculto.desde-abajo {
  transform: translateY(40px) !important;
}

.js-oculto.desde-izquierda {
  transform: translateX(-40px) !important;
}

.js-oculto.desde-derecha {
  transform: translateX(40px) !important;
}

.js-oculto.zoom {
  transform: scale(0.95) !important;
}

/* Delays escalonados para grids */
.animar.delay-1 { transition-delay: 0.1s; }
.animar.delay-2 { transition-delay: 0.2s; }
.animar.delay-3 { transition-delay: 0.3s; }
.animar.delay-4 { transition-delay: 0.4s; }
.animar.delay-5 { transition-delay: 0.5s; }
.animar.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   LOGO GLOBAL
   ============================================================ */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  background: #FFFFFF;
  padding: 5px 12px;
  border-radius: 6px;
  transition: transform 0.2s;
}
.logo-img:hover { transform: scale(1.03); }

/* ============================================================
   HEADER APP (flujo /analizar)
   ============================================================ */
.header {
  background: #0F172A;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .tagline {
  font-size: 13px;
  color: #94A3B8;
}

/* ============================================================
   CONTAINER DEL FLUJO
   ============================================================ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* ============================================================
   HERO DEL FLUJO
   ============================================================ */
.hero {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out;
}
.hero h1 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}
.hero h1 .acento { color: #0EA5E9; }
.hero .subtitulo {
  font-size: 16px;
  color: #64748B;
}

/* ============================================================
   DROP ZONE
   ============================================================ */
.drop-zone {
  background: #FFFFFF;
  border: 2px dashed #CBD5E1;
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out 0.15s backwards;
}
.drop-zone:hover,
.drop-zone.activo {
  border-color: #0EA5E9;
  background: #F0F9FF;
  transform: scale(1.01);
}
.drop-zone.activo {
  border-style: solid;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
}
.drop-icono {
  font-size: 40px;
  color: #0EA5E9;
  margin-bottom: 12px;
  line-height: 1;
  animation: float 3s ease-in-out infinite;
}
.drop-titulo {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.drop-subtitulo {
  color: #94A3B8;
  margin: 10px 0;
  font-size: 13px;
}
.drop-formatos {
  color: #94A3B8;
  font-size: 12px;
  margin-top: 14px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-secundario {
  background: #0EA5E9;
  color: #FFFFFF;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.btn-secundario:hover { background: #0284C7; }
.btn-secundario:active { transform: scale(0.98); }

.btn-primario {
  background: #0EA5E9;
  color: #FFFFFF;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  font-family: inherit;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.btn-primario:hover:not(:disabled) { background: #0284C7; }
.btn-primario:active:not(:disabled) { transform: scale(0.99); }
.btn-primario:disabled {
  background: #94A3B8;
  cursor: not-allowed;
}
.btn-grande {
  padding: 16px 28px;
  font-size: 16px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  animation: fadeInUp 0.5s ease-out;
}

.detectado {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.detectado h2,
.card h2 {
  font-size: 18px;
  margin-bottom: 18px;
  color: #0F172A;
}

.campo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 16px;
}
.campo:last-child { border-bottom: none; }
.campo .label {
  color: #64748B;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.campo .valor {
  font-weight: 600;
  color: #0F172A;
  text-align: right;
  word-break: break-word;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-ok { background: #DCFCE7; color: #166534; }
.badge-warn { background: #FEF3C7; color: #92400E; }
.badge-error { background: #FEE2E2; color: #991B1B; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.formulario { margin: 20px 0; }
.formulario label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
}
.formulario input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  min-height: 48px;
}
.formulario input:focus {
  outline: none;
  border-color: #0EA5E9;
}

/* ============================================================
   PROGRESO
   ============================================================ */
.progreso-barra {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  margin: 18px 0 12px;
}
.progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, #0EA5E9, #0284C7);
  width: 0%;
  transition: width 0.4s ease;
}
.progreso-pct {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #0EA5E9;
  margin-bottom: 6px;
  transition: all 0.3s;
}
.progreso-paso {
  text-align: center;
  color: #64748B;
  font-size: 14px;
  margin-bottom: 4px;
}
.progreso-tiempo {
  text-align: center;
  color: #94A3B8;
  font-size: 12px;
}

/* ============================================================
   PREVIEW
   ============================================================ */
.preview-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  text-align: center;
  animation: zoomIn 0.5s ease-out;
}
.preview-header { margin-bottom: 16px; }
.badge-exito {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.preview-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.preview-pct {
  font-size: clamp(56px, 15vw, 72px);
  font-weight: 800;
  color: #0EA5E9;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
  animation: pulse 2s ease-in-out infinite;
}
.preview-pct .pct-simbolo {
  font-size: 0.45em;
  margin-left: 2px;
}
.preview-texto {
  color: #64748B;
  font-size: 15px;
  margin-bottom: 28px;
}
.preview-numeros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.num-card {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 16px 10px;
  transition: transform 0.2s;
}
.num-card.destacado {
  background: #F0F9FF;
  border: 2px solid #0EA5E9;
}
.num-card.ahorro { background: #DCFCE7; }
.num-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  margin-bottom: 6px;
}
.num-valor {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  color: #0F172A;
}
.num-card.ahorro .num-valor { color: #166534; }
.preview-cta {
  border-top: 1px solid #E2E8F0;
  padding-top: 24px;
}
.preview-cta p {
  color: #64748B;
  font-size: 14px;
  margin-bottom: 14px;
}
.preview-nota {
  color: #94A3B8 !important;
  font-size: 12px !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
}
.modal-contenido {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: zoomIn 0.3s ease-out;
}
.modal-cerrar {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  min-width: 40px;
  min-height: 40px;
}
.modal-cerrar:hover { color: #0F172A; }
.modal-contenido h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-descripcion {
  color: #64748B;
  font-size: 14px;
  margin-bottom: 14px;
}
.modal-lista {
  list-style: none;
  margin-bottom: 20px;
}
.modal-lista li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: #334155;
  font-size: 13px;
}
.modal-lista li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0EA5E9;
  font-weight: 700;
}
.modal-precio {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 20px;
}
.modal-precio-valor {
  font-size: 36px;
  font-weight: 800;
  color: #0F172A;
  display: block;
  line-height: 1;
}
.modal-precio-label {
  color: #94A3B8;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
.modal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 16px;
}
.modal-label input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  min-height: 48px;
}
.modal-label input:focus {
  outline: none;
  border-color: #0EA5E9;
}

/* ============================================================
   EXITO
   ============================================================ */
.exito-card { text-align: center; padding: 16px 0; }
.exito-icono {
  width: 64px;
  height: 64px;
  background: #DCFCE7;
  color: #22C55E;
  font-size: 34px;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
  line-height: 64px;
  animation: pulse 2s ease-in-out;
}
.exito-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.exito-card > p {
  color: #64748B;
  margin-bottom: 24px;
  font-size: 14px;
}
.exito-botones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.exito-botones a {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* ============================================================
   TERMINOS Y CONDICIONES
   ============================================================ */
.terminos-header {
  text-align: center;
  margin-bottom: 20px;
}
.terminos-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.terminos-subtitulo {
  color: #64748B;
  font-size: 13px;
}
.terminos-scroll {
  max-height: 380px;
  overflow-y: auto;
  padding: 18px 22px;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}
.terminos-scroll h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 14px;
  margin-bottom: 6px;
}
.terminos-scroll h3:first-child { margin-top: 0; }
.terminos-scroll p { margin-bottom: 8px; }
.terminos-scroll strong { color: #0F172A; }
.terminos-aceptacion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #0F172A;
  padding: 12px;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
  min-height: 48px;
}
.checkbox-container:hover {
  border-color: #0EA5E9;
  background: #F0F9FF;
}
.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0EA5E9;
  flex-shrink: 0;
  margin-top: 1px;
}
.checkbox-container input[type="checkbox"]:checked ~ span {
  font-weight: 600;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* Header */
.landing-header {
  background: #0F172A;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.landing-header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}
.landing-logo { text-decoration: none; }
.landing-header .logo-img {
  height: 48px;
  padding: 6px 14px;
  border-radius: 8px;
}
.landing-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.landing-nav a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.landing-nav a:hover { color: #FFFFFF; }
.landing-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0EA5E9;
  transition: width 0.3s;
}
.landing-nav a:hover::after { width: 100%; }
.landing-nav .btn-nav-cta {
  background: #0EA5E9;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.landing-nav .btn-nav-cta:hover {
  background: #0284C7;
  transform: translateY(-1px);
}
.landing-nav .btn-nav-cta::after { display: none; }

/* Boton hamburguesa mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #FFFFFF;
}
.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* HERO */
.hero-landing {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.85) 100%),
    url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1920&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #FFFFFF;
  padding: 100px 40px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-landing-overlay { display: none; }
.hero-landing-contenido {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.2);
  color: #0EA5E9;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(14, 165, 233, 0.4);
  animation: fadeInUp 0.8s ease-out;
}
.hero-landing h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}
.hero-landing h1 .acento {
  color: #0EA5E9;
  font-weight: 300;
}
.hero-landing-subtitulo {
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 40px;
  max-width: 620px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}
.hero-landing-acciones {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}
.btn-landing-primario {
  background: #0EA5E9;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-landing-primario::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
.btn-landing-primario:hover {
  background: #0284C7;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.4);
}
.btn-landing-primario:hover::before {
  width: 300px;
  height: 300px;
}
.btn-landing-secundario {
  background: transparent;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(203, 213, 225, 0.35);
  transition: all 0.25s;
  display: inline-block;
}
.btn-landing-secundario:hover {
  border-color: #0EA5E9;
  color: #0EA5E9;
  transform: translateY(-2px);
}
.btn-landing-blanco {
  background: #FFFFFF;
  color: #0F172A;
}
.btn-landing-blanco:hover {
  background: #F1F5F9;
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.2);
}
.hero-landing-metricas {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}
.metrica-item {
  display: flex;
  flex-direction: column;
}
.metrica-item strong {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #0EA5E9;
  line-height: 1;
  margin-bottom: 6px;
}
.metrica-item span {
  font-size: 13px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Secciones */
.seccion-landing {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.seccion-gris {
  background: #F8FAFC;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}
.seccion-gris > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.seccion-gris .seccion-header {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding-left: 40px;
  padding-right: 40px;
}
.seccion-header {
  text-align: center;
  margin-bottom: 56px;
}
.seccion-badge {
  display: inline-block;
  color: #0EA5E9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.seccion-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #0F172A;
  margin-bottom: 14px;
}
.seccion-subtitulo {
  font-size: 17px;
  color: #64748B;
}

/* Pasos */
.pasos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.paso {
  position: relative;
  padding: 44px 28px 32px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.paso:hover {
  border-color: #0EA5E9;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.12);
  transform: translateY(-4px);
}
.paso-numero {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 32px;
  height: 32px;
  background: #0EA5E9;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  transition: transform 0.3s;
}
.paso:hover .paso-numero {
  transform: scale(1.1) rotate(-10deg);
}
.paso-icono {
  width: 48px;
  height: 48px;
  color: #0EA5E9;
  margin-bottom: 20px;
  transition: transform 0.3s;
}
.paso:hover .paso-icono {
  transform: scale(1.1);
}
.paso-icono svg { width: 100%; height: 100%; }
.paso h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}
.paso p {
  color: #64748B;
  font-size: 15px;
  line-height: 1.6;
}

/* Incluye */
.incluye-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.incluye-card {
  background: #FFFFFF;
  padding: 32px 24px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.incluye-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
  border-color: #0EA5E9;
}
.incluye-icono {
  width: 44px;
  height: 44px;
  color: #0EA5E9;
  margin-bottom: 18px;
  transition: transform 0.3s;
}
.incluye-card:hover .incluye-icono {
  transform: scale(1.15) rotate(-5deg);
}
.incluye-icono svg { width: 100%; height: 100%; }
.incluye-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}
.incluye-card p {
  color: #64748B;
  font-size: 14px;
  line-height: 1.55;
}

/* Nosotros */
.nosotros-texto {
  max-width: 780px;
  margin: 0 auto 64px;
  text-align: center;
}
.nosotros-texto p {
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 18px;
}
.nosotros-texto strong {
  color: #0F172A;
  font-weight: 600;
}

/* Beneficios */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.beneficio {
  text-align: center;
  padding: 0 16px;
}
.beneficio-icono {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: #0EA5E9;
  transition: transform 0.3s;
}
.beneficio:hover .beneficio-icono {
  transform: scale(1.15) rotate(5deg);
}
.beneficio-icono svg { width: 100%; height: 100%; }
.beneficio h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}
.beneficio p {
  color: #64748B;
  font-size: 15px;
  line-height: 1.6;
}

/* Precio */
.precio-card {
  background: #FFFFFF;
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 36px 48px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  text-align: center;
  border: 2px solid #0EA5E9;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}
.precio-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}
.precio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}
.precio-tag {
  display: inline-block;
  background: #F0F9FF;
  color: #0EA5E9;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.precio-valor {
  font-size: clamp(44px, 7vw, 60px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}
.precio-moneda {
  color: #64748B;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.precio-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  text-align: left;
  position: relative;
  z-index: 1;
}
.precio-lista li {
  padding: 11px 0 11px 30px;
  position: relative;
  color: #334155;
  font-size: 15px;
  border-bottom: 1px solid #F1F5F9;
}
.precio-lista li:last-child { border-bottom: none; }
.precio-lista li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0EA5E9;
  font-weight: 700;
  font-size: 17px;
}
.btn-bloque {
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}
.precio-nota {
  color: #94A3B8;
  font-size: 13px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.faq-item {
  padding: 28px;
  background: #F8FAFC;
  border-radius: 14px;
  border-left: 4px solid #0EA5E9;
  transition: all 0.25s;
}
.faq-item:hover {
  background: #F0F9FF;
  transform: translateX(4px);
}
.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}
.faq-item p {
  color: #64748B;
  font-size: 15px;
  line-height: 1.6;
}

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.cta-final::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}
.cta-final h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-final p {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.cta-final .btn-landing-primario {
  position: relative;
  z-index: 1;
}

/* Footer */
.landing-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 56px 40px 40px;
}
.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #FFFFFF;
  border-radius: 8px;
}
.footer-logo img { height: 36px; width: auto; }
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #0EA5E9; }
.footer-copyright {
  font-size: 13px;
  color: #64748B;
}

/* ============================================================
   RESPONSIVE - TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .landing-header { padding: 14px 20px; }
  .landing-header .logo-img { height: 40px; }

  .menu-toggle { display: block; }
  .landing-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0F172A;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  .landing-nav.abierto {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .landing-nav a {
    font-size: 16px;
    padding: 8px 0;
    width: 100%;
  }
  .landing-nav .btn-nav-cta {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero-landing {
    padding: 80px 24px;
    min-height: auto;
    background-attachment: scroll;
  }
  .hero-landing h1 { font-size: 36px; }
  .hero-landing-subtitulo { font-size: 16px; }
  .hero-landing-acciones { margin-bottom: 40px; }
  .hero-landing-metricas { gap: 32px; }
  .metrica-item strong { font-size: 28px; }

  .seccion-landing { padding: 64px 24px; }
  .seccion-gris > * { padding-left: 24px; padding-right: 24px; }
  .seccion-gris .seccion-header { padding-left: 24px; padding-right: 24px; }
  .seccion-header { margin-bottom: 40px; }
  .seccion-header h2 { font-size: 30px; }

  .pasos-grid,
  .incluye-grid,
  .beneficios-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-final { padding: 64px 24px; }
  .cta-final h2 { font-size: 28px; }
  .cta-final p { font-size: 16px; }

  .landing-footer { padding: 40px 24px 32px; }
  .footer-links { gap: 20px; }

  .container { padding: 32px 16px; }
  .card { padding: 24px 20px; }
  .header { padding: 12px 20px; }
  .header .tagline { font-size: 12px; }

  .preview-numeros {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-contenido { padding: 28px 22px; }

  .terminos-scroll {
    max-height: 300px;
    padding: 14px 16px;
    font-size: 12.5px;
  }

  .drop-zone { padding: 40px 20px; }
  .drop-icono { font-size: 36px; }

  .detectado { padding: 22px 18px; }

  .progreso-pct { font-size: 24px; }
}

/* ============================================================
   RESPONSIVE - MOBILE PEQUEÑO (max 600px)
   ============================================================ */
@media (max-width: 600px) {
  html { font-size: 15px; }

  .landing-header { padding: 12px 16px; }
  .landing-header .logo-img { height: 36px; padding: 4px 10px; }

  .hero-landing {
    padding: 60px 20px;
    min-height: auto;
  }
  .hero-landing h1 {
    font-size: clamp(26px, 8vw, 34px);
    letter-spacing: -0.8px;
  }
  .hero-landing-subtitulo {
    font-size: 15px;
    margin-bottom: 32px;
  }
  .hero-landing-acciones {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-landing-acciones .btn-landing-primario,
  .hero-landing-acciones .btn-landing-secundario {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }
  .hero-landing-metricas {
    gap: 24px;
    justify-content: space-between;
  }
  .metrica-item strong { font-size: 24px; }
  .metrica-item span { font-size: 11px; }

  .seccion-landing { padding: 48px 20px; }
  .seccion-gris > * { padding-left: 20px; padding-right: 20px; }
  .seccion-gris .seccion-header { padding-left: 20px; padding-right: 20px; }
  .seccion-header h2 { font-size: 26px; letter-spacing: -0.8px; }
  .seccion-subtitulo { font-size: 15px; }

  .paso { padding: 36px 20px 26px; }
  .incluye-card { padding: 24px 20px; }
  .faq-item { padding: 22px 20px; }
  .beneficio { padding: 0 8px; }

  .precio-card { padding: 36px 24px; }
  .precio-valor { font-size: 44px; }

  .cta-final { padding: 56px 20px; }
  .cta-final h2 { font-size: 24px; }
  .cta-final p { font-size: 15px; }

  .footer-logo img { height: 32px; }
  .footer-links { gap: 16px; }
  .footer-links a { font-size: 13px; }

  .container { padding: 24px 14px; }
  .card { padding: 22px 18px; border-radius: 12px; }

  .hero h1 { font-size: 26px; }
  .hero .subtitulo { font-size: 14px; }

  .drop-zone {
    padding: 32px 18px;
    border-radius: 12px;
  }
  .drop-icono { font-size: 32px; }
  .drop-titulo { font-size: 16px; }
  .drop-formatos { font-size: 11px; }

  .campo {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .campo .valor {
    text-align: left;
    max-width: 100%;
  }

  .preview-card { padding: 26px 20px; }
  .preview-pct { font-size: 56px; }
  .preview-card h2 { font-size: 19px; }

  .num-card { padding: 14px 10px; }
  .num-valor { font-size: 16px; }

  .modal { padding: 10px; }
  .modal-contenido { padding: 24px 18px; border-radius: 12px; }
  .modal-precio-valor { font-size: 32px; }

  .exito-icono { width: 56px; height: 56px; line-height: 56px; font-size: 30px; }
  .exito-card h2 { font-size: 20px; }

  .header .tagline { display: none; }
}

/* ============================================================
   PREFERENCIAS DE USUARIO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animar {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ============================================================
   MOCKUP DEL INFORME
   ============================================================ */
.seccion-oscura {
  background: #0F172A;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}
.seccion-oscura > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.seccion-oscura .seccion-header {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding-left: 40px;
  padding-right: 40px;
}

.mockup-contenedor {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  perspective: 1200px;
}

.mockup-pdf {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 0;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  aspect-ratio: 1 / 1.414;
  max-height: 600px;
}
.mockup-contenedor:hover .mockup-pdf {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
}

.mockup-portada {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 40px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mockup-logo {
  display: inline-block;
  background: #FFFFFF;
  color: #0F172A;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  letter-spacing: 1px;
}
.mockup-titulo-pdf {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  margin: 40px 0;
}
.mockup-titulo-pdf span {
  font-weight: 700;
  color: #0EA5E9;
}
.mockup-linea {
  width: 40px;
  height: 3px;
  background: #F97316;
  margin-bottom: 24px;
}
.mockup-meta {
  font-size: 11px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 16px;
}
.mockup-meta > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.mockup-meta > div:last-child { border-bottom: none; }
.mockup-meta span {
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}
.mockup-meta strong { color: #E2E8F0; }

.mockup-badge-flotante {
  position: absolute;
  right: -20px;
  bottom: 40px;
  background: #FFFFFF;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.badge-flotante-icono { font-size: 24px; }
.badge-flotante-texto { display: flex; flex-direction: column; }
.badge-flotante-texto strong { font-size: 13px; color: #0F172A; }
.badge-flotante-texto span { font-size: 11px; color: #64748B; }

/* ============================================================
   CARRUSEL DEL INFORME
   ============================================================ */
.carrusel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.carrusel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
}

.carrusel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carrusel-slide {
  flex: 0 0 100%;
  padding: 8px 16px;
  text-align: center;
  box-sizing: border-box;
}

.carrusel-flecha {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  color: #0F172A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
  flex-shrink: 0;
}
.carrusel-flecha:hover {
  background: #0EA5E9;
  color: #FFFFFF;
  border-color: #0EA5E9;
  transform: scale(1.05);
}

.slide-mock {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 28px;
  min-height: 260px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}
.slide-mock-header {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}
.slide-mock-nota {
  font-size: 48px;
  font-weight: 800;
  color: #0EA5E9;
  line-height: 1;
  text-align: center;
}
.slide-mock-label {
  font-size: 11px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}
.slide-mock-pill {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.slide-mock-pill.azul { background: #F0F9FF; color: #0EA5E9; }
.slide-mock-pill.naranja { background: #FFF7ED; color: #F97316; }

.slide-mock-donut {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 20px auto;
  border-radius: 50%;
  background: conic-gradient(
    #0EA5E9 0% 45%,
    #94A3B8 45% 62%,
    #0F172A 62% 70%,
    #F97316 70% 84%,
    #22C55E 84% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-mock-donut::after {
  content: "";
  width: 80px;
  height: 80px;
  background: #FFFFFF;
  border-radius: 50%;
}

.slide-mock-tabla {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tabla-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
}
.tabla-fila strong { color: #0F172A; }
.semaforo-verde, .semaforo-rojo, .semaforo-amarillo {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}
.semaforo-verde { background: #22C55E; }
.semaforo-rojo { background: #EF4444; }
.semaforo-amarillo { background: #F59E0B; }

.slide-mock-rec {
  padding: 14px;
  background: #F0F9FF;
  border-left: 3px solid #0EA5E9;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.rec-titulo { color: #0F172A; font-weight: 600; }
.rec-ahorro { color: #166534; font-weight: 700; }

.slide-mock-check { display: flex; flex-direction: column; gap: 12px; }
.check-linea {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
}
.check-linea span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22C55E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.check-linea:last-child span {
  background: #F59E0B;
}

.slide-titulo {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 20px;
  text-align: center;
}
.slide-descripcion {
  color: #64748B;
  font-size: 14px;
  text-align: center;
  max-width: 500px;
  margin: 6px auto 0;
  line-height: 1.5;
}

.carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carrusel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  padding: 0;
}
.carrusel-dot.activo {
  background: #0EA5E9;
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   PRECIO MEJORADO
   ============================================================ */
.precio-badge-popular {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #FFFFFF;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  z-index: 2;
  white-space: nowrap;
}
.precio-precios {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 4px;
}
.precio-extra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0F9FF;
  border: 1px solid #0EA5E9;
  color: #0F172A;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  margin: 4px auto 20px;
  position: relative;
  z-index: 1;
}
.precio-extra-monto {
  font-weight: 800;
  color: #0EA5E9;
  font-size: 17px;
}
.precio-extra-txt {
  color: #334155;
  font-weight: 500;
}
.precio-tachado {
  color: #94A3B8;
  font-size: 20px;
  text-decoration: line-through;
}
.precio-descuento {
  background: #DCFCE7;
  color: #166534;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.precio-garantia {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
  text-align: left;
  position: relative;
  z-index: 1;
}
.precio-garantia svg {
  width: 20px;
  height: 20px;
  color: #22C55E;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   TIMELINE DEL PROCESO
   ============================================================ */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, #0EA5E9 0%, #F97316 100%);
  opacity: 0.5;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -60px;
  top: 4px;
  width: 44px;
  height: 44px;
  background: #0F172A;
  border: 2px solid #0EA5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #0EA5E9;
  box-shadow: 0 0 0 6px rgba(15, 23, 42, 1), 0 0 20px rgba(14, 165, 233, 0.4);
}
.timeline-contenido {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.3s;
}
.timeline-item:hover .timeline-contenido {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(14, 165, 233, 0.5);
  transform: translateX(4px);
}
.timeline-contenido h3 {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.timeline-contenido p {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.timeline-tiempo {
  display: inline-block;
  background: rgba(14, 165, 233, 0.15);
  color: #0EA5E9;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================================
   FOOTER COMPLETO
   ============================================================ */
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #0EA5E9; }
.footer-brand { max-width: 320px; }
.footer-descripcion {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748B;
}

/* ============================================================
   BOTÓN VOLVER ARRIBA
   ============================================================ */
.btn-volver-arriba {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0EA5E9;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}
.btn-volver-arriba.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.btn-volver-arriba:hover {
  background: #0284C7;
  transform: translateY(-2px) scale(1.05);
}
.btn-volver-arriba svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   CTA STICKY MOBILE
   ============================================================ */
.cta-sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0EA5E9;
  color: #FFFFFF;
  text-decoration: none;
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  z-index: 95;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.cta-sticky-precio {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE DE LO NUEVO
   ============================================================ */
@media (max-width: 900px) {
  .seccion-oscura > * { padding-left: 24px; padding-right: 24px; }
  .seccion-oscura .seccion-header { padding-left: 24px; padding-right: 24px; }

  .mockup-pdf {
    transform: none;
    max-width: 100%;
  }
  .mockup-badge-flotante {
    right: 10px;
    bottom: 10px;
    padding: 10px 14px;
  }
  .badge-flotante-icono { font-size: 20px; }
  .badge-flotante-texto strong { font-size: 12px; }
  .badge-flotante-texto span { font-size: 10px; }

  .carrusel-flecha { width: 40px; height: 40px; font-size: 24px; }
  .slide-mock { padding: 22px; min-height: 240px; }
  .slide-mock-nota { font-size: 40px; }

  .timeline { padding-left: 44px; }
  .timeline::before { left: 14px; }
  .timeline-marker {
    left: -44px;
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .timeline-contenido { padding: 16px 18px; }
  .timeline-contenido h3 { font-size: 15px; }
  .timeline-contenido p { font-size: 13px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .seccion-oscura > * { padding-left: 20px; padding-right: 20px; }
  .seccion-oscura .seccion-header { padding-left: 20px; padding-right: 20px; }

  .mockup-portada { padding: 28px 22px; }
  .mockup-titulo-pdf { font-size: 22px; margin: 24px 0; }
  .mockup-meta { font-size: 10px; }

  .carrusel-wrapper { gap: 8px; }
  .carrusel-flecha { width: 36px; height: 36px; font-size: 20px; }
  .carrusel-slide { padding: 4px 8px; }
  .slide-mock { padding: 18px; min-height: 220px; }
  .slide-mock-nota { font-size: 36px; }
  .slide-titulo { font-size: 16px; }
  .slide-descripcion { font-size: 13px; }

  .timeline { padding-left: 36px; }
  .timeline::before { left: 10px; }
  .timeline-marker {
    left: -36px;
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom { font-size: 12px; }

  /* Mostrar CTA sticky mobile */
  .cta-sticky-mobile { display: flex; }

  /* Ocultar botón volver arriba en mobile (está el CTA sticky) */
  .btn-volver-arriba { display: none; }

  /* Dejar espacio al final del body para el CTA sticky */
  body { padding-bottom: 60px; }
}

/* ============================================================
   PAGINAS LEGALES
   ============================================================ */
.container-legal {
  max-width: 820px;
  padding: 60px 20px;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E2E8F0;
}
.legal-badge {
  display: inline-block;
  background: #F0F9FF;
  color: #0EA5E9;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -1px;
  margin-bottom: 10px;
  line-height: 1.15;
}
.legal-fecha {
  color: #94A3B8;
  font-size: 13px;
}

.legal-contenido {
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}
.legal-intro {
  font-size: 17px;
  color: #0F172A;
  font-weight: 500;
  padding: 20px 24px;
  background: #F0F9FF;
  border-left: 4px solid #0EA5E9;
  border-radius: 8px;
  margin-bottom: 40px;
}
.legal-contenido h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}
.legal-contenido h2:first-of-type { margin-top: 0; }
.legal-contenido p {
  margin-bottom: 14px;
}
.legal-contenido ul,
.legal-contenido ol {
  margin: 14px 0 14px 24px;
  padding-left: 8px;
}
.legal-contenido ul li,
.legal-contenido ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.legal-contenido ul li::marker { color: #0EA5E9; }
.legal-contenido ol li::marker { color: #0EA5E9; font-weight: 700; }
.legal-contenido strong {
  color: #0F172A;
  font-weight: 600;
}
.legal-contenido em { font-style: italic; }
.legal-cierre {
  margin-top: 48px;
  padding: 20px 24px;
  background: #F8FAFC;
  border-radius: 8px;
  color: #64748B;
  font-size: 14px;
  text-align: center;
}

.legal-volver {
  text-align: center;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #E2E8F0;
}
.legal-volver .btn-primario {
  display: inline-block;
  width: auto;
  padding: 14px 32px;
  text-decoration: none;
}

.btn-volver-web {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.btn-volver-web:hover { color: #0EA5E9; }

@media (max-width: 600px) {
  .container-legal { padding: 40px 20px; }
  .legal-header { margin-bottom: 32px; padding-bottom: 24px; }
  .legal-contenido { font-size: 14.5px; }
  .legal-contenido h2 { font-size: 18px; margin-top: 32px; }
  .legal-intro { font-size: 15px; padding: 16px 18px; }
  .legal-volver { margin-top: 32px; padding-top: 28px; }
  .header .tagline { display: none; }
}

/* ============================================================
   PAGINA DE RECURSOS EDUCATIVOS
   ============================================================ */

/* Navegacion por tabs */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #E2E8F0;
}
.tab-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.tab-btn:hover {
  background: #F0F9FF;
  border-color: #0EA5E9;
  color: #0EA5E9;
}
.tab-btn.activo {
  background: #0EA5E9;
  border-color: #0EA5E9;
  color: #FFFFFF;
}

.tab-panel { display: none; }
.tab-panel.activo { display: block; animation: fadeInUp 0.4s ease-out; }

/* Bloques de recursos */
.recurso-bloque {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #F1F5F9;
  align-items: flex-start;
}
.recurso-bloque:last-child { border-bottom: none; }

.recurso-numero {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.recurso-icono-legal {
  width: 44px;
  height: 44px;
  color: #0EA5E9;
  flex-shrink: 0;
  padding: 8px;
  background: #F0F9FF;
  border-radius: 10px;
}
.recurso-icono-legal svg { width: 100%; height: 100%; }
.recurso-icono-rojo {
  color: #EF4444;
  background: #FEF2F2;
}

.recurso-info { flex: 1; }
.recurso-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}
.recurso-info p {
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.recurso-info ul {
  margin: 8px 0 12px 20px;
}
.recurso-info ul li {
  margin-bottom: 6px;
  color: #475569;
  font-size: 14.5px;
}

.recurso-alerta {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #78350F;
  margin: 12px 0;
}

/* Glosario */
.glosario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.glosario-item {
  background: #F8FAFC;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #0EA5E9;
  transition: transform 0.2s, box-shadow 0.2s;
}
.glosario-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.glosario-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}
.glosario-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Tabla legal */
.tabla-legal {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
.tabla-legal thead {
  background: #0F172A;
  color: #FFFFFF;
}
.tabla-legal th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.tabla-legal td {
  padding: 12px 16px;
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
}
.tabla-legal tbody tr:nth-child(even) {
  background: #F8FAFC;
}
.tabla-legal tbody tr:hover {
  background: #F0F9FF;
}

/* Responsive */
@media (max-width: 900px) {
  .tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .glosario-grid { grid-template-columns: 1fr; }
  .recurso-bloque { flex-direction: column; gap: 12px; }
  .tabla-legal { font-size: 13px; }
  .tabla-legal th, .tabla-legal td { padding: 10px 12px; }
}

/* ============================================================
   BARRA DE ACEPTACION DE TERMINOS
   ============================================================ */
.barra-aceptacion {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s;
  animation: fadeInUp 0.5s ease-out;
}
.barra-aceptacion.aceptada {
  border-color: #22C55E;
  background: #F0FDF4;
}

.check-aceptacion {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  flex: 1;
  min-width: 0;
}

.check-aceptacion input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
}
.check-custom::after {
  content: "✓";
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}
.check-aceptacion input[type="checkbox"]:checked + .check-custom {
  background: #0EA5E9;
  border-color: #0EA5E9;
}
.check-aceptacion input[type="checkbox"]:checked + .check-custom::after {
  opacity: 1;
  transform: scale(1);
}
.check-aceptacion:hover .check-custom {
  border-color: #0EA5E9;
}

.check-texto {
  font-size: 14px;
  color: #334155;
  line-height: 1.4;
}
.check-texto .link-terminos {
  color: #0EA5E9;
  text-decoration: underline;
  font-weight: 600;
}

.btn-ver-terminos {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}
.btn-ver-terminos:hover {
  background: #F0F9FF;
  border-color: #0EA5E9;
  color: #0EA5E9;
}
.btn-ver-terminos .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.btn-ver-terminos.abierto .chevron {
  transform: rotate(180deg);
}

/* Contenido colapsable */
.terminos-colapsable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              margin 0.3s ease;
  opacity: 0;
  margin-bottom: 0;
}
.terminos-colapsable.abierto {
  max-height: 600px;
  overflow-y: auto;
  opacity: 1;
  margin-bottom: 20px;
}
.terminos-contenido {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px 28px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
}
.terminos-contenido h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 16px;
  margin-bottom: 8px;
}
.terminos-contenido h3:first-child { margin-top: 0; }
.terminos-contenido p { margin-bottom: 10px; }
.terminos-contenido strong { color: #0F172A; }
.terminos-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  text-align: center;
}
.terminos-footer a {
  color: #0EA5E9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.terminos-footer a:hover { text-decoration: underline; }

/* Drop zone bloqueada */
.pantalla-bloqueada {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.3s;
  filter: grayscale(0.4);
}
.pantalla-bloqueada.desbloqueada {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}
.pantalla-bloqueada .drop-zone {
  cursor: not-allowed;
}
.pantalla-bloqueada.desbloqueada .drop-zone {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
  .barra-aceptacion {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }
  .btn-ver-terminos {
    justify-content: center;
    width: 100%;
  }
  .terminos-contenido {
    padding: 18px 20px;
    font-size: 13px;
  }
}

/* Badge de actualización normativa */
.actualizado-badge {
  display: inline-block;
  background: #F0F9FF;
  color: #0EA5E9;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid #BAE6FD;
}

/* Badge de actualización normativa */
.actualizado-badge {
  display: inline-block;
  background: #F0F9FF;
  color: #0EA5E9;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid #BAE6FD;
}

/* Contenedor de artículos auto-generados */
.articulos-auto {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}
.articulos-auto h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0EA5E9;
}
.articulos-auto h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 24px;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 4px solid #0EA5E9;
}
.articulos-auto p {
  margin-bottom: 14px;
  text-align: justify;
}
.articulos-auto blockquote {
  background: #F8FAFC;
  border-left: 4px solid #F97316;
  padding: 12px 16px;
  margin: 16px 0;
  color: #475569;
  font-style: italic;
  border-radius: 6px;
}

/* ============================================================
   ARTICULOS DESPLEGABLES (Ley 21.442)
   ============================================================ */
.articulos-auto {
  margin-top: 20px;
}

.articulo-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.2s;
}
.articulo-item:hover {
  border-color: #0EA5E9;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}
.articulo-item[open] {
  border-color: #0EA5E9;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
}
.articulo-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s;
  gap: 16px;
}
.articulo-item summary::-webkit-details-marker { display: none; }
.articulo-item summary:hover { background: #F0F9FF; }
.articulo-item[open] summary {
  background: #F0F9FF;
  border-bottom: 1px solid #E2E8F0;
}
.articulo-titulo { flex: 1; text-align: left; }
.articulo-toggle {
  font-size: 22px;
  font-weight: 300;
  color: #0EA5E9;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  transition: all 0.3s;
}
.articulo-item[open] .articulo-toggle {
  transform: rotate(45deg);
  background: #0EA5E9;
  color: #FFFFFF;
}
.articulo-contenido {
  padding: 18px 20px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}
.articulo-contenido p {
  margin-bottom: 12px;
  text-align: justify;
}
.articulo-contenido p:last-child { margin-bottom: 0; }
.articulo-link {
  margin-top: 16px !important;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  font-size: 13px !important;
  text-align: right !important;
}
.articulo-link a {
  color: #0EA5E9;
  text-decoration: none;
  font-weight: 600;
}
.articulo-link a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .articulo-item summary { padding: 14px 16px; font-size: 14px; }
  .articulo-contenido { padding: 14px 16px 16px; font-size: 13.5px; }
}


/* Titulo grande de la seccion Ley 21.442 */
.titulo-seccion-legal {
  font-size: 32px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.8px;
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.15;
}
.subtitulo-seccion-legal {
  color: #64748B;
  font-size: 15px;
  margin-bottom: 24px;
}

/* Los h2 internos de cada seccion como titulo principal */
.tab-panel > .legal-contenido > h2:first-child,
.tab-panel > article > h2:first-child {
  font-size: 32px;
  letter-spacing: -0.8px;
  padding-bottom: 12px;
  border-bottom: none;
  border-top: none;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Separador visual mas suave */
.tab-panel > .legal-contenido > h2:first-child::after,
.tab-panel > article > h2:first-child::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #0EA5E9;
  margin-top: 14px;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 600px) {
  .tab-panel {
    margin-bottom: 48px;
    padding-bottom: 32px;
  }
  .titulo-seccion-legal,
  .tab-panel > .legal-contenido > h2:first-child,
  .tab-panel > article > h2:first-child {
    font-size: 22px;
    letter-spacing: -0.4px;
  }
}


/* ============================================================
   HERO DE RECURSOS
   ============================================================ */
.hero-recursos {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 56px 40px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.hero-recursos::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%);
  border-radius: 50%;
}
.hero-recursos > * { position: relative; z-index: 1; }
.hero-recursos-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.2);
  color: #0EA5E9;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(14, 165, 233, 0.4);
}
.hero-recursos-titulo {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  max-width: 720px;
}
.hero-recursos-subtitulo {
  font-size: 16px;
  color: #CBD5E1;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-recursos-acciones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-recursos-btn-primario {
  display: inline-flex;
  align-items: center;
  background: #0EA5E9;
  color: #FFFFFF;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.hero-recursos-btn-primario:hover {
  background: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}
.hero-recursos-btn-secundario {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #FFFFFF;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(203, 213, 225, 0.3);
  transition: all 0.2s;
}
.hero-recursos-btn-secundario:hover {
  border-color: #0EA5E9;
  color: #0EA5E9;
}

/* ============================================================
   TITULOS DESCRIPTIVOS EN ARTICULOS
   ============================================================ */
.articulo-summary-contenido {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: left;
  min-width: 0;
}
.articulo-titulo {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}
.articulo-resumen {
  font-size: 13px;
  font-weight: 400;
  color: #64748B;
  line-height: 1.4;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.articulo-item[open] .articulo-resumen {
  display: none;
}

/* Responsive */
@media (max-width: 700px) {
  .hero-recursos {
    padding: 40px 24px;
    border-radius: 12px;
  }
  .hero-recursos-titulo { font-size: 28px; letter-spacing: -0.6px; }
  .hero-recursos-subtitulo { font-size: 14px; }
  .hero-recursos-acciones { flex-direction: column; }
  .hero-recursos-btn-primario,
  .hero-recursos-btn-secundario {
    justify-content: center;
    width: 100%;
  }
  .articulo-titulo { font-size: 14px; }
  .articulo-resumen { font-size: 12px; }
}

/* ============================================================
   RECURSOS - CON TABS
   ============================================================ */

/* Barra de tabs visible */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  margin-top: 8px;
  padding-bottom: 20px;
  border-bottom: 2px solid #E2E8F0;
}

/* Paneles: solo el activo se muestra */
.tab-panel { display: none; }
.tab-panel.activo {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

/* Cuando el panel esta activo, se ve como una seccion */
.tab-panel.activo .legal-contenido {
  padding-top: 8px;
}

/* ============================================================
   MONITOR DE ACTUALIZACIONES (dentro de tab Que dice la Ley)
   ============================================================ */
.monitor-actualizaciones {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #E2E8F0;
}
.monitor-header {
  margin-bottom: 24px;
}
.monitor-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DCFCE7;
  color: #166534;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.monitor-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
.monitor-titulo {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.monitor-subtitulo {
  color: #64748B;
  font-size: 14px;
  margin: 0;
}
.monitor-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
  font-size: 13px;
  color: #64748B;
  text-align: center;
}
.monitor-footer a {
  color: #0EA5E9;
  text-decoration: none;
  font-weight: 600;
}
.monitor-footer a:hover { text-decoration: underline; }

/* ============================================================
   PAGINA DE VERIFICACION
   ============================================================ */
.verificar-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0;
}
.verificar-hero {
  text-align: center;
  margin-bottom: 40px;
}
.verificar-icono {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: #DCFCE7;
  color: #22C55E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.verificar-icono svg {
  width: 100%;
  height: 100%;
}
.verificar-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.verificar-subtitulo {
  font-size: 15px;
  color: #64748B;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

.verificar-error {
  background: #FEF2F2;
  border-left: 4px solid #EF4444;
  color: #991B1B;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}

.verificar-form {
  background: #FFFFFF;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid #E2E8F0;
  margin-bottom: 32px;
}
.verificar-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 18px;
}
.verificar-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-size: 17px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.2s;
  background: #F8FAFC;
}
.verificar-input:focus {
  outline: none;
  border-color: #0EA5E9;
  background: #FFFFFF;
}
.verificar-input::placeholder {
  color: #94A3B8;
  letter-spacing: 0.5px;
}

.verificar-info {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}
.verificar-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}
.verificar-info p {
  margin-bottom: 12px;
}
.verificar-info p:last-child { margin-bottom: 0; }
.verificar-info strong { color: #0F172A; }

@media (max-width: 600px) {
  .verificar-hero h1 { font-size: 26px; }
  .verificar-form { padding: 22px 18px; }
  .verificar-input { font-size: 15px; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: #F0F9FF;
  border-bottom: 1px solid #BAE6FD;
  padding: 10px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #0369A1;
  font-weight: 600;
}
.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.trust-bar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #0EA5E9;
}

/* ============================================================
   POR QUE CONFIAR
   ============================================================ */
.seccion-confianza {
  background: #FFFFFF;
  padding: 100px 40px;
}
.confianza-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.confianza-item {
  text-align: center;
  padding: 24px 12px;
  border-radius: 12px;
  transition: all 0.25s;
}
.confianza-item:hover {
  background: #F0F9FF;
  transform: translateY(-3px);
}
.confianza-icono {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  background: #DCFCE7;
  color: #22C55E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.confianza-icono svg { width: 100%; height: 100%; }
.confianza-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
}
.confianza-item p {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

/* ============================================================
   SELLO BADGE (cerca del CTA)
   ============================================================ */
.sello-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 2px solid #22C55E;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}
.sello-badge svg {
  width: 16px;
  height: 16px;
  color: #22C55E;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner p {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner p a {
  color: #0EA5E9;
  text-decoration: none;
}
.cookie-banner p a:hover { text-decoration: underline; }
.cookie-banner-acciones {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-btn-aceptar {
  background: #0EA5E9;
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.cookie-btn-aceptar:hover { background: #0284C7; }

/* ============================================================
   EXIT POPUP
   ============================================================ */
.exit-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.exit-popup.visible {
  display: flex;
  opacity: 1;
}
.exit-popup-contenido {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 440px;
  text-align: center;
  animation: zoomIn 0.35s ease-out;
  position: relative;
}
.exit-popup-cerrar {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.exit-popup-cerrar:hover { color: #0F172A; }
.exit-popup-icono {
  font-size: 44px;
  margin-bottom: 12px;
}
.exit-popup h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}
.exit-popup p {
  font-size: 15px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 22px;
}
.exit-popup-acciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: #FFFFFF;
  border-left: 4px solid #0EA5E9;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  padding: 14px 20px;
  font-size: 14px;
  color: #0F172A;
  min-width: 260px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out;
}
.toast.ok { border-left-color: #22C55E; }
.toast.error { border-left-color: #EF4444; }
.toast.warn { border-left-color: #F59E0B; }
.toast-icono {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.toast.ok .toast-icono { color: #22C55E; }
.toast.error .toast-icono { color: #EF4444; }
.toast.warn .toast-icono { color: #F59E0B; }
.toast.info .toast-icono { color: #0EA5E9; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast.saliendo {
  animation: slideOutRight 0.3s ease-in forwards;
}
@keyframes slideOutRight {
  to { opacity: 0; transform: translateX(20px); }
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
  border-radius: 6px;
  height: 16px;
}
.skeleton.titulo { height: 28px; width: 60%; margin-bottom: 12px; }
.skeleton.texto { height: 14px; margin-bottom: 8px; }
.skeleton.texto.corto { width: 70%; }
.skeleton.texto.mediano { width: 85%; }
.skeleton-card {
  background: #FFFFFF;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   ANIMACION HERO TITULO POR PALABRAS
   ============================================================ */
.hero-landing h1 .palabra {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: palabraIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes palabraIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-landing h1 .palabra:nth-child(1) { animation-delay: 0.15s; }
.hero-landing h1 .palabra:nth-child(2) { animation-delay: 0.25s; }
.hero-landing h1 .palabra:nth-child(3) { animation-delay: 0.35s; }
.hero-landing h1 .palabra:nth-child(4) { animation-delay: 0.45s; }
.hero-landing h1 .palabra:nth-child(5) { animation-delay: 0.55s; }
.hero-landing h1 .palabra:nth-child(6) { animation-delay: 0.65s; }
.hero-landing h1 .palabra:nth-child(7) { animation-delay: 0.75s; }
.hero-landing h1 .palabra:nth-child(8) { animation-delay: 0.85s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .trust-bar {
    padding: 10px 20px;
    gap: 16px;
    font-size: 11.5px;
  }
  .trust-bar-item:nth-child(n+4) { display: none; }
  .confianza-grid { grid-template-columns: repeat(2, 1fr); }
  .seccion-confianza { padding: 60px 24px; }
}
@media (max-width: 600px) {
  .confianza-grid { grid-template-columns: 1fr; gap: 12px; }
  .trust-bar { font-size: 11px; gap: 12px; }
  .trust-bar-item:nth-child(n+3) { display: none; }
  .cookie-banner { bottom: 10px; left: 10px; right: 10px; padding: 14px 16px; }
  .toast-container { bottom: 10px; right: 10px; left: 10px; }
  .toast { min-width: auto; }
}

/* ============================================================ */
/* ANALISIS MULTIPLE                                            */
/* ============================================================ */

.container-multiple {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.pantalla-multi {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-multi {
  text-align: center;
  margin-bottom: 40px;
}
.hero-multi h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.subtitulo-multi {
  color: #64748B;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Drop zone */
.drop-zone-multi {
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #F8FAFC;
}
.drop-zone-multi:hover,
.drop-zone-multi.dragover {
  border-color: #0EA5E9;
  background: #F0F9FF;
}
.drop-icono {
  font-size: 3rem;
  margin-bottom: 16px;
}
.drop-titulo {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 6px;
}
.drop-sub {
  color: #64748B;
  margin-bottom: 12px;
}
.drop-link {
  color: #0EA5E9;
  font-weight: 600;
  text-decoration: underline;
}
.drop-hint {
  color: #94A3B8;
  font-size: 0.85rem;
}

/* Lista de archivos */
.lista-archivos {
  margin-top: 24px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
}
.lista-titulo {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#lista-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.item-archivo {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.92rem;
}
.item-archivo:last-child { border-bottom: none; }
.item-nombre {
  flex: 1;
  color: #0F172A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-tamano {
  color: #94A3B8;
  font-size: 0.82rem;
  margin: 0 12px;
}
.item-quitar {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}

/* Acciones */
.acciones-multi {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.btn-primario-multi {
  background: #0EA5E9;
  color: #FFFFFF;
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}
.btn-primario-multi:hover:not(:disabled) {
  background: #0284C7;
  transform: translateY(-1px);
}
.btn-primario-multi:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-secundario-multi {
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

/* Periodos detectados */
.titulo-pantalla {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #0F172A;
}
.periodos-lista {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.periodo-card {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 10px;
  padding: 16px 20px;
}
.periodo-mes {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0284C7;
  margin-bottom: 4px;
}
.periodo-archivos {
  color: #475569;
  font-size: 0.88rem;
}

/* Rechazados */
.rechazados {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.rechazados-titulo {
  color: #92400E;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
#rechazados-items {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #78350F;
  font-size: 0.88rem;
}
#rechazados-items li {
  padding: 4px 0;
}

/* Precio */
.precio-card {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}
.precio-numero {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.precio-detalle {
  font-size: 0.92rem;
  opacity: 0.95;
  line-height: 1.6;
}
.precio-desglose {
  font-size: 0.82rem;
  opacity: 0.8;
}

/* Form */
.form-multi {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px;
}
.form-titulo {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #0F172A;
}
.campo-multi {
  margin-bottom: 18px;
}
.campo-multi label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
}
.campo-multi input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  transition: border 0.2s;
}
.campo-multi input:focus {
  outline: none;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Progreso */
.progreso-sub {
  color: #64748B;
  margin-bottom: 24px;
}
.progreso-barra {
  width: 100%;
  height: 12px;
  background: #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, #0EA5E9 0%, #0284C7 100%);
  width: 0%;
  transition: width 0.4s ease;
}
.progreso-paso {
  text-align: center;
  color: #0F172A;
  font-weight: 500;
  margin-bottom: 6px;
}
.progreso-contador {
  text-align: center;
  color: #94A3B8;
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.log-box {
  background: #1E293B;
  border-radius: 10px;
  padding: 14px;
  color: #94A3B8;
  font-size: 0.82rem;
}
.log-box summary {
  cursor: pointer;
  color: #CBD5E1;
  font-weight: 500;
}
.log-box pre {
  margin-top: 12px;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #E2E8F0;
}

/* Progreso: pct grande + tiempo (bloque multiple) */
.progreso-pct {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: #2b8ad6;
  margin: 6px 0 10px;
  letter-spacing: -1px;
}
.progreso-tiempo {
  text-align: center;
  color: #64748B;
  font-size: 0.86rem;
  margin-bottom: 24px;
}

/* Tabla comparativa */
.tabla-comparativa {
  overflow-x: auto;
  margin-bottom: 32px;
}
.tabla-comp {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.tabla-comp th {
  background: #e8f4fd;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.82rem;
  color: #2b8ad6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E2E8F0;
}
.tabla-comp td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: #0F172A;
  font-size: 0.92rem;
}
.tabla-comp tr:last-child td {
  border-bottom: none;
}
.tabla-comp tbody tr:nth-child(even) {
  background: #F4FAFF;
}
.tabla-comp tbody tr:hover {
  background: #e8f4fd;
  transition: background 0.15s ease;
}
.tabla-comp td strong {
  color: #0F172A;
}
.badge-nota {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
}
.badge-nota.alta { background: #DCFCE7; color: #15803D; }
.badge-nota.media { background: #FEF3C7; color: #B45309; }
.badge-nota.baja { background: #FEE2E2; color: #B91C1C; }
.tabla-comp .ahorro-pos { color: #15803D; font-weight: 700; }

/* Badge detectado */
.badge-detectado {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}


/* ===== ASISTENTE VIRTUAL (CHAT) ===== */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  font-family: inherit;
}

#chat-burbuja {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #2b8ad6;
  color: #fff;
  box-shadow: 0 6px 20px rgba(15,23,42,.30);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease;
}

#chat-burbuja:hover {
  transform: scale(1.06);
  background: #1f6fb0;
}

#chat-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

#chat-panel.chat-oculto {
  display: none;
}

#chat-header {
  background: #0F172A;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

#chat-cerrar {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

#chat-mensajes {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.chat-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-msg-bot {
  background: #e8f4fd;
  color: #0F172A;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-msg-user {
  background: #2b8ad6;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

#chat-form {
  display: flex;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

#chat-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
}

#chat-enviar {
  background: none;
  border: none;
  padding: 0 16px;
  color: #2b8ad6;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#chat-enviar:hover {
  color: #1f6fb0;
}

@media (max-width: 480px) {
  #chat-panel {
    width: calc(100vw - 24px);
    height: 70vh;
    right: -12px;
  }
}
