/* ═══════════════════════════════════════════════
   ESTILOS DE BOTONES CON ICONOS
   ═══════════════════════════════════════════════ */
.btn-primary {
  flex-wrap: wrap;
  gap: 8px;
}

.btn-primary > span {
  flex: 0 1 auto;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(2px);
}

/* Estilos especiales para el nav CTA con precio promocional */
.nav-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-cta > span {
  display: block;
  font-size: 1rem;
}

.nav-cta > small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.95;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   MENSAJES DE URGENCIA - RESPONSIVE
   ═══════════════════════════════════════════════ */
.urgency-text-desktop {
  display: inline;
}

.urgency-text-mobile {
  display: none;
}

@media (max-width: 768px) {
  .urgency-text-desktop {
    display: none;
  }

  .urgency-text-mobile {
    display: inline;
  }
}

/* ═══════════════════════════════════════════════
   AJUSTES SUTILES PARA NOTEBOOKS (1280px)
   ═══════════════════════════════════════════════ */
.menu-toggle {
  display: none;
}

.hero-author-name {
  display: none;
}

@media (max-width: 1400px) {
  .logo {
    max-width: 65px;
  }
}

@media (max-width: 1280px) {

  /* Reducción sutil de títulos para que respiren mejor en 13" y 14" */
  .hero-h1 {
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    margin-bottom: 16px;
  }

  .video-title,
  .para-quien-h2,
  .llevas-h2,
  .programa-h2,
  .precio-h2,
  .cierre-h2 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    margin-bottom: 20px;
  }

  .faq-h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    margin-bottom: 32px;
  }

  /* Ajuste leve de espaciados en secciones para compensar */
  .seccion-video,
  .seccion-para-quien,
  .seccion-llevas,
  .seccion-programa,
  .seccion-precio,
  .seccion-faq,
  .seccion-cierre {
    padding: 80px 0;
  }
}

@media (max-width: 1150px) {
  .hero {
    background-position: left center, 250px center;
  }
}

@media (max-width: 1080px) {

  /* ACTIVACIÓN MENÚ MOBILE - COMPACT DROPDOWN */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px; /* Área de toque interna */
    z-index: 120;
    position: relative;
    align-items: center; /* Centrar líneas si varían */
    margin-right: -4px; /* Compensar padding interno para que se pegue al borde derecho visualmente */
  }

  .menu-toggle span {
    width: 100%;
    height: 1.5px;
    background-color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* EL PANEL / DROPDOWN */
  .nav-links {
    position: absolute;
    top: calc(100% + 15px);
    /* Despegado del nav */
    right: 20px;
    width: 280px;
    height: auto;
    max-height: 0;
    /* Cerrado por defecto */
    opacity: 0;
    visibility: hidden;
    background: #18181b;
    /* Zinc 900 premium */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0 !important;
    padding: 20px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
    overflow: hidden;
    transform: translateY(-10px);
  }

  .nav-links.active {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* LINKS DEL LISTADO */
  .nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
    padding: 14px 24px;
    color: var(--text-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    text-align: left;
  }

  .nav-links a:hover,
  .nav-links a:active {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.02);
    padding-left: 28px;
    /* Micro-animación */
  }

  /* BOTÓN CTA DENTRO DEL MENÚ */
  .nav-links .nav-cta.mobile-only {
    margin: 20px 20px 10px;
    padding: 14px;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
    border: none !important;
    color: #111212;
        margin: 15px auto 0 auto;
        max-width: 90%;
      width: 90%;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex !important;
  }
}

/* ═══════════════════════════════════════════════
   URGENCY BAR - UNA SOLA LÍNEA SIEMPRE
   ═══════════════════════════════════════════════ */
.urgency-bar-inner {
  white-space: nowrap;
  flex-wrap: nowrap !important;
}

@media (max-width: 950px) {
  .urgency-bar-inner {
    font-size: 0.75rem;
    gap: 4px;
  }

  .urgency-bar-inner strong {
    font-size: 0.75rem;
  }

  .hero {
    background-position: left center, 160px center;
  }
}

/* =========================================================
   NUEVO SISTEMA RESPONSIVE HERO (TABLET Y MOBILE)
   ========================================================= */

/* 1. TABLET (769px a 1080px) - COMPACT DESKTOP */
@media (max-width: 1080px) and (min-width: 769px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    /* Mover imagen a la derecha */
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero-left {
    max-width: 550px;
    /* Evitar que el texto choque con el sujeto */
  }

  .hero-h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 16px !important;
  }

  .hero-sub {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }

  .hero-micros {
    gap: 12px !important;
    margin-bottom: 30px !important;
  }

  .hero-btn {
    margin-bottom: 15px !important;
  }

  .hero-authority-bar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* 2. MOBILE (≤768px) - HERO Y VIDEO SEPARADOS */
  .hero {
    padding: 120px 0 80px !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95)), url('img/hero-mobile.webp') !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero-btn.cta-main {
    display: inline-flex !important;
    width: 100%;
    margin-top: 24px;
  }

  .hero-author-name {
    display: block !important;
    font-size: 0.7rem;
    color: var(--text-2);
    font-weight: 500;
    margin: 0 auto 15px auto; 
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
  }

  /* SECCIÓN VIDEO - RESTAURADA COMO EN DESKTOP */
  .seccion-video {
    padding: 80px 0 !important;
    background: #FAFAFA !important;
    border-top: 1px solid #eaeaea;
  }

  .video-header-wrap {
    display: block !important;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .video-subtitle {
     color: #3F3F46 !important;
  }

  /* ELEMENTOS QUE SIGUEN OCULTOS POR DISEÑO */
  .hero-micros,
  .hero-authority-bar,
  .hero-urgency {
    display: none !important;
  }

  /* ALINEAR Y CENTRAR HERO */
  .hero-left {
    align-items: center !important;
    text-align: center !important;
    max-width: 100%;
  }

  .hero-left>span {
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
  }

  .hero-h1 {
    font-size: clamp(2.1rem, 8.5vw, 2.7rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 20px !important;
    text-align: center;
    letter-spacing: -0.01em !important;
  }

  .hero-sub {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    text-align: center;
  }

}

/* =========================================================
   BULLETS VIDEOS MOBILE (AUTORIDAD ARRIBA DEL VIDEO)
   ========================================================= */
.video-mobile-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 24px;
  width: 100%;
}

.vm-bullet {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #404041;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.vm-icon {
  color: var(--brand);
  /* Dorado/Ámbar premium */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .urgency-bar {
    padding: 8px 12px;
  }

  .urgency-bar-inner {
    font-size: 0.65rem;
    gap: 3px;
  }

  .urgency-dot-bar {
    width: 6px;
    height: 6px;
  }
}

/* Helper para evitar scroll con menú abierto */
body.no-scroll {
  overflow: hidden;
}

/* Estilos de botones nav fallback */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-only {
  display: none;
}

/* ═══════════════════════════════════════════════
   MÓVILES PEQUEÑOS (≤400px) - OPTIMIZACIÓN FINAL
   ═══════════════════════════════════════════════ */
@media (max-width: 400px) {

  /* Maximizar espacio horizontal */
  .container {
    padding: 0 16px !important;
  }
  .nav-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* REPARACIÓN DE BOTONES (Causa principal del break) */
  .btn-primary,
  .btn-large,
  .btn-video-sec {
    white-space: normal !important;
    /* Permitir que el texto salte de línea */
    text-align: center;
    padding: 12px 18px !important;
    /* Padding más compacto */
    font-size: 0.9rem !important;
    /* Tipografía apenas más pequeña */
    width: 100%;
    /* Botones full-width en pantallas muy chicas */
    max-width: 100%;
    line-height: 1.3;
  }

  /* Ajustar Hero en resoluciones críticas */
  .hero-h1 {
    font-size: clamp(1.8rem, 9vw, 2.2rem) !important;
    letter-spacing: -0.02em !important;
  }

  .hero-sub {
    font-size: 0.95rem !important;
  }

  /* Escalar Precio (evitar overflow del número gigante) */
  .p-card-price {
    font-size: 3.5rem !important;
    /* De 5.5rem a 3.5rem */
    margin-bottom: 24px !important;
  }

  .pricing-pro-h2 {
    font-size: 2.2rem !important;
  }

  /* Ajustes de Secciones */
  .urgency-bar-inner {
    font-size: 0.62rem !important;
    gap: 4px !important;
  }

  .pq-remate-l2 {
    font-size: 1.4rem !important;
  }

  .pq-perfil {
    padding: 18px 16px !important;
  }

  .pq-perfil-titulo {
    font-size: 0.9rem !important;
  }

  /* Ajustar Béticos / Bento */
  .bento-card {
    padding: 24px 16px !important;
  }

  .bento-title {
    font-size: 1.3rem !important;
  }

  .clases-text {
    padding: 20px 16px !important;
  }

  /* Ajustar FAQ */
  .faq-q {
    font-size: 1rem !important;
    padding: 18px 0 !important;
  }

  /* Otros ajustes de desborde */
  .aut-nombre {
    font-size: 2.2rem !important;
  }

  .test-h2,
  .llevas-h2,
  .programa-h2,
  .precio-h2,
  .cierre-h2 {
    font-size: 1.8rem !important;
  }

  .p-card-urgency {
    display: block;
  }

  .p-card-urgency strong {
    margin: 0 5px;
  }
}

/* ═══════════════════════════════════════════════
   BENTO LIST STYLES
   ═══════════════════════════════════════════════ */
.bento-list {
  list-style: none;
  padding: 0;
  margin: 0px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-list li {
  font-size: 1rem;
  color: #4A4A52;
  /* Color original refinado */
  line-height: 1.5;
  position: relative;
  padding-left: 22px;
  text-align: left;
}

.bento-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   BENTO GRID SLIDER (MOBILE)
   ═══════════════════════════════════════════════ */
.swipe-indicator {
  display: none;
}

@media (max-width: 768px) {
  .swipe-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--brand);
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: bounceRight 2s infinite ease-in-out;
  }
        
    .llevas-header{
        margin-bottom: 22px;
    }

    .overlay-l2, .overlay-l1{
        font-size: .9em;
        font-weight: 900;
    }
    
    .overlay-l2{
        font-weight: 600;
    }
    

    
  @keyframes bounceRight {

    0%,
    100% {
      transform: translateX(0);
    }

    50% {
      transform: translateX(5px);
    }
  }

  /* Slider Horizontal for Bento Grid */
  section.seccion-llevas .bento-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 10px 20px 30px 20px !important;
    /* Extra bottom padding for shadows */
    margin: 0 -20px !important;
    /* Bleed to screen edges */
    width: calc(100% + 40px) !important;
    scrollbar-width: none;
  }

  section.seccion-llevas .bento-grid::-webkit-scrollbar {
    display: none;
  }

  /* Padding falsos para el scroll flex */
  section.seccion-llevas .bento-grid::after {
    content: '';
    flex: 0 0 4px;
  }

  /* Las tarjetas deben medir menos del 100% para mostrar que hay más */
  section.seccion-llevas .bento-card,
  section.seccion-llevas .card-bonus,
  section.seccion-llevas .card-clases {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center;
    margin: 0 !important;
  }
    
    .seccion-llevas .bento-card:nth-of-type(1){
        flex-direction: column-reverse!important;
    }
}

/* ═══════════════════════════════════════════════
   PRICING TRUST BADGES Y MICROCOPY
   ═══════════════════════════════════════════════ */
.pricing-trust {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pt-micro {
  font-size: 0.85rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
}

.pt-micro strong {
  color: var(--text);
  font-weight: 600;
}

.pt-email {
  margin-top: 2px;
}

.pt-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.pt-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pt-badge svg {
  opacity: 0.8;
}

@media (max-width: 480px) {
  .pricing-trust {
    margin-top: 20px;
    padding-top: 20px;
  }

  .pt-micro {
    font-size: 0.78rem;
  }

  .pt-badges {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
    scrollbar-width: none;
    margin: 0 -10px;
    /* Bleed */
    padding: 0 10px 5px 10px;
  }

  .pt-badges::-webkit-scrollbar {
    display: none;
  }

  .pt-badge {
    flex: 0 0 auto;
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

/* ═══════════════════════════════════════════════
   PREMIUM PRICING CARD FIXES (UI HARMONY)
   ═══════════════════════════════════════════════ */
.pricing-pro-card {
  padding: 56px !important;
  background: #ffffff1f;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.p-card-tag {
  font-size: 0.78rem !important;
  letter-spacing: 0.18em !important;
  opacity: 0.9;
  margin-bottom: 24px !important;
}

.p-card-price {
  font-size: 4.8rem !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px !important;
}

.price-curr {
  font-size: 1.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  /* Align near baseline/top */
}

/* Enhancing CTA Button */
.pricing-pro-card .cta-main {
  font-size: 1.1rem !important;
  padding: 22px 32px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.2) !important;
  width: 100% !important;
  max-width: 380px !important;
  align-self: center;
}

.p-card-urgency {
  margin-bottom: 0 !important;
  font-size: 0.85rem !important;
  color: var(--text-2) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.p-card-urgency strong {
  color: var(--brand) !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

/* Adjustments for Trust Section inside card */
.pricing-trust {
  margin-top: 32px !important;
  padding-top: 32px !important;
}

@media (max-width: 768px) {
  .pricing-pro-card {
    padding: 40px 20px !important;
  }

  .p-card-price {
    font-size: 3.5rem !important;
    gap: 8px;
  }

  .price-curr {
    font-size: 1.4rem;
    margin-top: 6px;
  }

  .pricing-pro-card .cta-main {
    padding: 18px 24px !important;
    font-size: .9rem !important;
  }
}

/* ═══════════════════════════════════════════════
   CIRCULAR CHECKS EN PRICING FEATURES
   ═══════════════════════════════════════════════ */
.p-feat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-feat svg {
  background: rgba(245, 166, 35, 0.15);
  border-radius: 50%;
  padding: 4px;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
}

/* =========================================================
   OPTIMIZACIÓN BLOQUE DOLORES (PARA QUIÉN)
   ========================================================= */
.pq-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding: 24px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pq-item:last-child {
  border-bottom: none !important;
}

.pq-check {
  flex-shrink: 0 !important;
  margin-top: 4px !important; /* Alineación visual con la primera línea */
}

.pq-item-text {
  font-size: 1.05rem !important;
  color: var(--text) !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  max-width: 520px !important; /* Limita ancho de lectura para mejor escaneo */
}

@media (max-width: 768px) {
  .pq-item {
    gap: 16px !important;
    padding: 20px 0 !important;
  }
  
  .pq-item-text {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
}

/* =========================================================
   EFECTO HOVER Y ACTIVE EN MÓDULOS
   ========================================================= */
.mod-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease !important;
}

/* Efecto cuando está visible en viewport - DESKTOP */
@media (min-width: 769px) {
  .mod-card.in-view {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgb(223 152 35 / 8%), 0 0 0 1px rgba(245, 166, 35, 0.2) !important;
    border-color: rgb(245 166 35 / 25%) !important;
  }

  .mod-card.in-view .mod-num {
    color: var(--brand) !important;
    transform: scale(1.05);
  }
}

/* Efecto hover en desktop (se suma al in-view) */
@media (min-width: 769px) {
  .mod-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 28px rgb(223 152 35 / 12%), 0 0 0 1px rgba(245, 166, 35, 0.3) !important;
    border-color: rgb(245 166 35 / 35%) !important;
  }

  .mod-card:hover .mod-num {
    color: var(--brand) !important;
    transform: scale(1.1);
  }
}

/* Efecto active en mobile */
@media (max-width: 768px) {
  .mod-card.is-active {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgb(223 152 35 / 10%), 0 0 0 1px rgba(245, 166, 35, 0.25) !important;
    border-color: rgb(245 166 35 / 35%) !important;
    background: linear-gradient(145deg, #18191b, #14140e) !important;
  }

  .mod-card.is-active .mod-num {
    color: var(--brand) !important;
    transform: scale(1.1);
  }
}

/* ═══════════════════════════════════════════════
   LEGAL SYSTEM & MODALS
   ═══════════════════════════════════════════════ */

/* Overlay del Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Contenedor del Modal */
.modal-container {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--brand);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.is-open .modal-container {
  transform: translateY(0) scale(1);
}

/* Header del Modal */
.modal-header {
  padding: 24px 32px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

/* Cuerpo del Modal */
.modal-body {
  padding: 32px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.modal-body p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .modal-container {
    max-height: 90vh;
  }
  .modal-header {
    padding: 20px 24px 16px;
  }
  .modal-body {
    padding: 24px;
  }
}

/* Custom Footer Legal */
.footer-extended {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #111;
}

.footer-extended-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.footer-legal-links button,
.footer-legal-links a {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px; /* Touch area */
  margin: -8px; 
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-legal-links button:hover,
.footer-legal-links a:hover {
  color: var(--brand);
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.btn-arrepentimiento-inline {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-2);
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-arrepentimiento-inline:hover {
  color: #fff;
}
