/* ============================================
   Catzia - Estilos CSS
   Paleta de colores y diseño según especificación
   ============================================ */

/* Variables CSS */
:root {
    /* Colores principales */
    --color-primary: #9469a2;
    /* Púrpura suave */
    --color-secondary: #6a9393;
    /* Teal grisáceo */
    --color-accent: #b2d1d1;
    /* Teal claro */
    --color-bg-base: #fdfaf5;
    /* Off-white cálido */
    --color-bg-alt: #f0f7f7;
    /* Teal ultra claro */
    --color-text: #2d3436;
    /* Texto principal */

    /* Gradiente maestro */
    --gradient-master: linear-gradient(135deg, #9469a2, #6a9393);

    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Sombras */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(148, 105, 162, 0.4);

    /* Bordes orgánicos */
    --border-organic: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* Mobile-only: oculto en desktop, visible en móvil */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
}

/* Focus visible (accesibilidad teclado) */
.btn-primary:focus-visible,
.modal-close:focus-visible,
.carousel-nav:focus-visible,
.scroll-top-float:focus-visible,
.whatsapp-float:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.dot:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Urgency Bar */
.urgency-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #2d3436;
    color: white;
    z-index: 2000;
    padding: 0.5rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.urgency-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.countdown-timer {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1rem;
}

.urgency-bar .btn-mini {
    background: white;
    color: #ff4757;
    border: none;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.urgency-bar .btn-mini:hover {
    transform: scale(1.05);
    background: #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Course Preview Video (hero area) */
.course-preview-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(42, 31, 45, 0.97) 0%, #1a2525 100%);
    position: relative;
}
#course-preview .container {
    max-width: 880px !important;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.course-preview-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    text-align: center;
    color: #fff;
    margin-bottom: 0.5rem;
}
.course-preview-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
#course-preview .course-preview-video-wrapper {
    max-width: 880px !important;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 105, 162, 0.3);
    aspect-ratio: 16 / 9;
    max-height: 495px !important;
}
#course-preview .course-preview-video,
#catzia-preview-video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 495px !important;
    display: block;
    background: #000;
    object-fit: contain;
    vertical-align: middle;
}

/* Course preview: pantallas grandes (más ancho) */
@media (min-width: 1024px) {
    #course-preview .container {
        max-width: 960px !important;
    }
    #course-preview .course-preview-video-wrapper {
        max-width: 960px !important;
        max-height: 540px !important;
    }
    #course-preview .course-preview-video,
    #catzia-preview-video {
        max-height: 540px !important;
    }
}

/* Course preview: tablets y móviles */
@media (max-width: 768px) {
    .course-preview-section {
        padding: 2rem 0;
    }
    #course-preview .container {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    #course-preview .course-preview-video-wrapper {
        max-width: 100% !important;
        max-height: min(60vh, 360px) !important;
        border-radius: 12px;
    }
    #course-preview .course-preview-video,
    #catzia-preview-video {
        max-height: min(60vh, 360px) !important;
    }
    .course-preview-title {
        font-size: 1.35rem;
    }
    .course-preview-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Course preview: móviles pequeños */
@media (max-width: 480px) {
    .course-preview-section {
        padding: 1.5rem 0;
    }
    #course-preview .container {
        padding: 0 0.75rem !important;
    }
    #course-preview .course-preview-video-wrapper {
        max-height: min(55vh, 280px) !important;
    }
    #course-preview .course-preview-video,
    #catzia-preview-video {
        max-height: min(55vh, 280px) !important;
    }
}

/* Trust Bar */
.trust-bar {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.trust-item:hover {
    opacity: 1;
}

.trust-item img {
    height: 30px;
    width: auto;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.trust-item:hover img {
    filter: grayscale(0);
}

.trust-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.trust-icon {
    font-size: 1.5rem;
}

/* Header */
.main-header {
    position: absolute;
    top: 3.5rem;
    /* Ajustado para que no tape la barra de urgencia */
    left: 0;
    width: 100%;
    z-index: 1001;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

/* Botón Login en header (siempre visible) */
.btn-login-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    background: var(--color-primary);
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
    margin-left: auto;
}
.btn-login-header:hover {
    opacity: 0.95;
    transform: scale(1.02);
    color: white;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav menu (drawer) */
.nav-menu {
    display: none;
}
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0.5rem;
        background: white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: 12px;
        padding: 1rem;
        flex-direction: column;
        gap: 0.25rem;
        z-index: 1002;
    }
    .nav-menu a {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: var(--color-text);
        text-decoration: none;
        font-weight: 500;
        border-radius: 8px;
        min-height: 44px;
    }
    .nav-menu a:hover {
        background: var(--color-bg-alt);
        color: var(--color-primary);
    }
    body.nav-open .nav-menu {
        display: flex;
    }
}

.logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.btn-nav {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg-base);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 5;
    /* Asegura que el contenido esté por encima de las decoraciones */
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Gradiente de texto */
.gradient-text {
    background: var(--gradient-master);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botones */
.btn-primary {
    background: var(--gradient-master);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    font-family: var(--font-body);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Ajustado para dar más aire al contenido */
    align-items: center;
    gap: var(--spacing-md);
    padding: 2rem 5% 2rem 8%;
    /* Aumentado el margen izquierdo para centrar más el texto */
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, #2a1f2d 0%, #141e1e 100%);
    z-index: -1;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.deco {
    position: absolute;
    width: 160px;
    /* Aún más grande */
    height: auto;
    opacity: 0.5;
    /* Más visible */
    filter: drop-shadow(0 0 10px rgba(148, 105, 162, 0.3));
    pointer-events: none;
    z-index: 0;
}

.section-deco {
    position: absolute;
    width: 280px;
    height: auto;
    opacity: 0.45;
    filter: brightness(0.7) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    pointer-events: none;
    z-index: 1;
    /* Bajo el contenido (.container tiene z-index: 5) */
}

.hero-section .section-deco,
.hero-section .deco {
    filter: brightness(1.5) drop-shadow(0 0 15px rgba(148, 105, 162, 0.4));
    /* Brillantes para fondo oscuro */
    opacity: 0.6;
}

.deco-1 {
    top: 15%;
    left: 10%;
    animation: floatSlow 8s infinite ease-in-out;
}

.deco-2 {
    top: 60%;
    left: 5%;
    animation: floatSlow 10s infinite ease-in-out -2s;
    width: 80px;
}

.deco-3 {
    top: 20%;
    left: 45%;
    animation: floatSlow 12s infinite ease-in-out -4s;
    width: 40px;
}

.deco-4 {
    top: 70%;
    left: 40%;
    animation: floatSlow 9s infinite ease-in-out -1s;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(15px, -15px) rotate(5deg);
    }

    66% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    height: 80px;
    /* Logo más grande */
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-content {
    z-index: 1;
    padding-right: 5%;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    margin-bottom: var(--spacing-sm);
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-title-accent {
    display: block;
    font-size: 0.75em;
    /* Un 25% más pequeño que la frase principal */
    font-weight: 700;
    margin-top: 0.5rem;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.promo-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(148, 105, 162, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px dashed var(--color-accent);
}

.discount-label {
    background: #ff4757;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.price-container {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.cta-subtext {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-xs);
}

.price-anchor {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    font-style: italic;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.image-wrapper {
    position: relative;
    width: 100%;
}

.cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cambiado a cover para que el redondeo se note mejor en el bloque */
    border-radius: 40px;
    /* Bordes redondeados */
    /* Sombras más suaves */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Carousel Nav */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 6px;
}

.carousel-nav.next {
    right: 6px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Base Styles */
.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(148, 105, 162, 0.3) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(20px);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Problem Section */
.problem-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    opacity: 0.7;
    margin-bottom: var(--spacing-lg);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.insight-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.insight-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.insight-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* Modules Section */
.modules-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: #ffffff;
    /* White to contrast with previous alt bg */
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.module-card {
    background: var(--color-bg-base);
    /* Slight off-white card on white bg */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.module-number {
    position: absolute;
    top: -10px;
    right: var(--spacing-md);
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--color-accent);
    opacity: 0.3;
}

.module-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* Features Section */
.features-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-bg-alt);
    /* Teal light */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Pricing Section */
.pricing-section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-lg);
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    text-align: center;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-master);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.pricing-title {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.pricing-price {
    margin-bottom: var(--spacing-sm);
}

.price-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-old {
    font-size: 1.8rem;
    /* Más grande para que sea evidente el ahorro */
    color: #a4b0be;
    text-decoration: line-through;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.price-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    /* Evita desbordamiento en pantallas muy angostas */
}

.price-amount {
    font-size: 6rem;
    /* Aumentado de 5rem */
    font-weight: 950;
    font-family: var(--font-heading);
    background: var(--gradient-master);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.price-badge-promo {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.pricing-subtitle {
    opacity: 0.7;
    margin-bottom: var(--spacing-xs);
}

.pricing-anchor {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: var(--spacing-md) 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-bg-alt);
}

.pricing-guarantee {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: var(--spacing-sm);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.faq-item summary {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    user-select: none;
}

.faq-item summary:hover {
    background: var(--color-bg-alt);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer h3,
.footer h4 {
    margin-bottom: var(--spacing-sm);
}

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

.footer a:hover {
    text-decoration: underline;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.footer-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-lang .lang-label {
    opacity: 0.9;
}

.footer-lang .lang-link {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-lang .lang-link:hover {
    text-decoration: underline;
}

.footer-lang .lang-link.active {
    font-weight: 600;
    color: #fff;
}

.footer-lang .lang-sep {
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.footer .social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: transform 0.35s ease, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.footer .social-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.35s ease;
}

.footer .social-btn:hover {
    transform: translateY(-6px) scale(1.08) rotate(5deg);
    border-color: var(--color-accent);
    box-shadow: 0 12px 24px rgba(148, 105, 162, 0.4);
}

.footer .social-btn:hover svg {
    transform: scale(1.1);
}

.footer .social-btn.face:hover {
    background: #1877f2;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.45);
}

.footer .social-btn.insta:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(220, 39, 67, 0.4);
}

.footer .social-btn.tiktok:hover {
    background: #000;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.footer .social-btn.youtube:hover {
    background: #ff0000;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(255, 0, 0, 0.45);
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 100px;
    /* Subido para no tapar WhatsApp */
    right: 2rem;
    z-index: 1000;
}

.chatbot-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient-master);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(148, 105, 162, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bounceChat 3s infinite;
}

.chatbot-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.5;
    z-index: -1;
    animation: pulseChat 2s infinite;
}

.chatbot-button::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.chatbot-button:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(148, 105, 162, 0.7);
}

@keyframes pulseChat {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes bounceChat {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.hidden {
    display: none;
}

.chatbot-header {
    background: var(--gradient-master);
    color: white;
    padding: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 1rem;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: var(--spacing-sm);
    overflow-y: auto;
}

.chatbot-input {
    display: flex;
    padding: var(--spacing-sm);
    border-top: 1px solid var(--color-bg-alt);
}

#chatbot-input-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--color-bg-alt);
    border-radius: 20px;
    font-family: var(--font-body);
}

#chatbot-send {
    margin-left: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-master);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Hero Mobile */
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 5rem max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
        min-height: auto;
        gap: 2rem;
    }

    .hero-content {
        padding-right: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-logo img {
        height: 56px;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.15;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4);
    }

    .hero-title-accent {
        text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
        text-shadow: 0 1px 4px rgba(0,0,0,0.6);
        color: rgba(255, 255, 255, 0.95);
    }

    .hero-section .vignette {
        background: radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.7) 100%);
    }

    .hero-badge {
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }

    .hero-cta {
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .promo-box {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .price-tag {
        font-size: 1.35rem;
    }

    .cta-subtext,
    .price-anchor {
        font-size: 0.8rem;
    }

    .btn-primary {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }

    .carousel-container {
        height: 320px;
        max-width: 100%;
    }

    .cat-image {
        max-width: 260px;
        height: auto;
    }

    .carousel-nav.prev {
        left: 4px;
    }

    .carousel-nav.next {
        right: 4px;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.2);
    }

    .scroll-indicator {
        bottom: 1rem;
        opacity: 0.5;
    }

    /* Barra de urgencia móvil: compacta + safe-area */
    .urgency-bar {
        padding: 0.4rem max(0.75rem, env(safe-area-inset-left)) 0.4rem max(0.75rem, env(safe-area-inset-right));
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .urgency-content {
        gap: 0.35rem;
    }

    .urgency-content span:last-child {
        display: none;
    }

    .urgency-content::after {
        content: "OFERTA:";
        font-size: 0.7rem;
        font-weight: 700;
    }

    .countdown-timer {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }

    .urgency-bar .btn-mini {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
        white-space: nowrap;
        min-height: 40px;
    }

    /* Header móvil: debajo de la barra fija */
    .main-header {
        top: 2.75rem;
        padding: 0.5rem var(--spacing-sm);
        padding-left: max(var(--spacing-sm), env(safe-area-inset-left));
        padding-right: max(var(--spacing-sm), env(safe-area-inset-right));
    }

    .carousel-dots {
        gap: 0.5rem;
        bottom: 12px;
    }

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
        padding: 12px;
        margin: 0;
        box-sizing: content-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-dots .dot.active {
        transform: scale(1.2);
    }

    /* Pricing Mobile */
    .price-amount {
        font-size: 4rem;
        /* Reducido para evitar desbordamiento */
    }

    .pricing-card {
        padding: 2.5rem 1.5rem;
    }

    /* Grids Mobile */
    .modules-grid,
    .insights-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .insight-card,
    .module-card,
    .feature-card {
        padding: 1.5rem;
    }

    /* FAQ Mobile */
    .faq-item summary {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    /* Footers & Others */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 2rem;
    }

    .chatbot-window {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 90px;
        height: 70vh;
    }

    .sticky-cta {
        left: calc(20px + env(safe-area-inset-left, 0));
        right: calc(20px + env(safe-area-inset-right, 0));
        bottom: calc(15px + env(safe-area-inset-bottom, 0));
        max-width: none;
    }

    .sticky-cta button {
        width: 100%;
        min-width: unset;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        box-shadow: 0 8px 20px rgba(148, 105, 162, 0.4);
    }

    /* Trust bar móvil */
    .trust-bar {
        padding: 1rem 0;
    }

    .trust-container {
        gap: 1rem;
        padding: 0 var(--spacing-xs);
    }

    .trust-item {
        font-size: 0.8rem;
    }

    .trust-item img {
        height: 26px;
    }

    /* Secciones: padding con safe-area */
    .problem-section,
    .modules-section,
    .features-section,
    .faq-section {
        padding-left: max(var(--spacing-sm), env(safe-area-inset-left));
        padding-right: max(var(--spacing-sm), env(safe-area-inset-right));
    }

    .pricing-section .container {
        padding-left: max(var(--spacing-sm), env(safe-area-inset-left));
        padding-right: max(var(--spacing-sm), env(safe-area-inset-right));
    }

    .pricing-card {
        padding: 1.75rem 1.25rem;
    }

    .pricing-anchor {
        font-size: 0.8rem;
    }

    .faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .faq-item p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9rem;
    }

    .footer {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
        padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 4.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
        word-break: break-word;
        overflow-wrap: break-word;
        text-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.5);
    }

    .hero-subtitle {
        text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    }

    .carousel-container {
        height: 280px;
    }

    .cat-image {
        max-width: 220px;
    }

    .scroll-indicator {
        display: none;
    }

    .price-amount {
        font-size: 3.5rem;
    }

    .urgency-bar span {
        font-size: 0.7rem;
    }

    .urgency-content span:last-child {
        display: none;
    }

    .urgency-content::after {
        content: "FIN:";
    }

    .section-title {
        font-size: 1.75rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .section-deco {
        width: 150px;
        opacity: 0.2;
    }
}

/* Line-height lectura móvil en cards */
@media (max-width: 768px) {
    .insight-content p,
    .module-card p,
    .testimonial-quote,
    .faq-item p {
        line-height: 1.5;
    }
}

/* =========================================
   Nuevos Componentes (Implementación Step 2)
   ========================================= */

/* 1. Urgency Bar */
/* Eliminada definición duplicada de .urgency-bar */

.urgency-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.urgency-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-grow: 1;
}

.urgency-actions {
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.4rem 1rem !important;
    font-size: 0.8rem !important;
}

.countdown {
    font-family: monospace;
    font-weight: bold;
    color: #ffcc00;
    font-size: 1rem;
}

/* 2. Social Proof Toasts */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-toast {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
    border-left: 4px solid var(--color-primary);
}

.toast-img {
    background: var(--color-bg-alt);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.toast-body {
    font-size: 0.85rem;
    line-height: 1.3;
}

.toast-time {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-top: 2px;
}

/* 3. Lead Capture Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: white;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.modal-header h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.modal-body {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Touch targets mínimos 44px en móvil */
@media (max-width: 768px) {
    .form-input {
        min-height: 44px;
        box-sizing: border-box;
    }
}

.form-input:focus {
    border-color: var(--color-secondary);
    outline: none;
}
.form-input:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.phone-input-wrapper:focus-within {
    border-color: var(--color-secondary);
}
.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
}
.phone-country-select {
    min-width: 5rem;
    padding: 0 0.75rem;
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.5rem;
}
.phone-country-select:focus {
    outline: none;
}
.phone-flag {
    font-size: 1.25rem;
    line-height: 1;
}
.phone-input-wrapper .form-input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
}

.form-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}

/* 4. Comparison Table */
.comparison-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: white;
}

.comparison-table-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid rgba(148, 105, 162, 0.1);
}

/* Permitir scroll horizontal en móviles + hint visual */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        position: relative;
    }
    .comparison-table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
    }
}

@media (max-width: 520px) {
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
    }
    .comparison-table {
        min-width: 520px;
    }
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
    /* Asegura legibilidad en móvil al scrollear */
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 800;
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Estilo para la columna CARACTERÍSTICA */
.comparison-table td:first-child,
.comparison-table th:first-child {
    width: 40%;
    font-weight: 600;
    color: #444;
}

/* RESALTAR COLUMNA CATZIA */
.comparison-table td:nth-child(2),
.comparison-table th:nth-child(2) {
    background: rgba(148, 105, 162, 0.03);
    text-align: center;
    border-left: 1px solid rgba(148, 105, 162, 0.1);
    border-right: 1px solid rgba(148, 105, 162, 0.1);
    width: 30%;
}

.comparison-table th:nth-child(2) {
    background: var(--color-primary);
    color: white;
    border: none;
}

.comparison-table td:nth-child(2) {
    font-weight: 700;
    color: var(--color-primary);
}

/* COLUMNA COMPETENCIA */
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(3) {
    text-align: center;
    width: 30%;
    color: #888;
}

/* Fila de precio final */
.comparison-table tr:last-child td {
    border-bottom: none;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.comparison-table tr:last-child td:nth-child(2) {
    background: rgba(148, 105, 162, 0.08);
    font-size: 1.1rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e6f4ea;
    color: #1e8e3e;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 8px;
}

.cross-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #fce8e6;
    color: #d93025;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-right: 8px;
}

/* Hover effect */
.comparison-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.01);
}

.comparison-table tr:hover td:nth-child(2) {
    background-color: rgba(148, 105, 162, 0.05);
}

/* 5. Sticky CTA Mobile */
.sticky-cta {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0));
    left: calc(20px + env(safe-area-inset-left, 0));
    /* Movido a la izquierda */
    transform: translateY(150%);
    /* Hidden by default */
    width: auto;
    max-width: 300px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

.sticky-cta button {
    box-shadow: 0 10px 25px rgba(148, 105, 162, 0.4);
    pointer-events: auto;
    width: auto;
    min-width: 250px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    background: var(--gradient-master);
    border: 2px solid white;
    /* Contrast border */
}

.sticky-cta.visible {
    transform: translateY(0);
}

/* 6. Testimonials Section */
.testimonials-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-bg-base);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--color-primary);
}

.author-stars {
    color: #ffcc00;
    font-size: 0.9rem;
}

/* Scroll to Top Floating Button */
.scroll-top-float {
    position: fixed;
    bottom: calc(100px + env(safe-area-inset-bottom, 0));
    right: calc(30px + env(safe-area-inset-right, 0));
    width: 56px;
    height: 56px;
    background: var(--gradient-master);
    background-color: #9469a2;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.scroll-top-float.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-top-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.3);
}
.scroll-top-float svg {
    color: #fff;
    stroke: #fff;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: calc(30px + env(safe-area-inset-bottom, 0));
    right: calc(30px + env(safe-area-inset-right, 0));
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    /* Above sticky CTA */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

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

/* Contact Section adjustments */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: calc(24px + env(safe-area-inset-bottom, 0));
        right: max(16px, env(safe-area-inset-right));
    }
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0.6;
    pointer-events: none;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrows span {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    margin: -3px;
    animation: scrollArrows 2s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes scrollArrows {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* =========================================
   Métodos de Pago - Paso 2 Modal (México)
   ========================================= */

/* Modal mejorado para paso de pagos */
.modal-content:has(.payment-methods-container) {
    max-width: 480px;
}

.modal-content:has(.payment-methods-container) .modal-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.modal-content:has(.payment-methods-container) .modal-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.modal-content:has(.payment-methods-container) .modal-header p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.payment-methods-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.payment-method-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-card:hover {
    border-color: var(--color-secondary);
    background: #fafafa;
    transform: translateX(4px);
}

.payment-method-card.selected {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(148, 105, 162, 0.08), rgba(106, 147, 147, 0.05));
    box-shadow: 0 4px 20px rgba(148, 105, 162, 0.15);
}

.payment-method-card.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-master);
    border-radius: 14px 0 0 14px;
}

.payment-method-card.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: var(--gradient-master);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Icono/Logo del método */
.payment-method-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 0.5rem;
}

.payment-method-card.selected .payment-method-icon {
    background: white;
}

/* Contenido del método */
.payment-method-content {
    flex: 1;
    min-width: 0;
}

.payment-method-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-method-content p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
    line-height: 1.3;
}

.payment-method-content .payment-secure {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Logos de tarjetas */
.payment-logos {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.payment-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.payment-logo.mp-logo {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: cover;
}

/* SPEI Badge */
.spei-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    color: white;
    width: 100%;
    height: 100%;
}

.spei-icon {
    font-size: 1.1rem;
}

.spei-text {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Badge popular */
.payment-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.payment-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Botón de acción */
.payment-action {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.payment-action .btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.payment-action .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #ccc;
}

.payment-action .btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(148, 105, 162, 0.35);
}

.payment-guarantee {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.payment-guarantee span {
    color: #4caf50;
}

/* Botón Volver */
.btn-back {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: var(--font-body);
}

.btn-back:hover {
    color: var(--color-primary);
    background: rgba(148, 105, 162, 0.05);
    border-radius: 8px;
}

/* =========================================
   Responsive - Métodos de Pago
   ========================================= */

@media (max-width: 520px) {
    .modal-content:has(.payment-methods-container) {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-content:has(.payment-methods-container) .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .payment-methods-container {
        gap: 0.6rem;
    }
    
    .payment-method-card {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }
    
    .payment-method-icon {
        width: 44px;
        height: 44px;
    }
    
    .payment-logo {
        height: 20px;
    }
    
    .payment-logo.mp-logo {
        height: 34px;
        width: 34px;
    }
    
    .payment-method-content h4 {
        font-size: 0.9rem;
    }
    
    .payment-method-content p {
        font-size: 0.75rem;
    }
    
    .payment-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }
    
    .payment-method-card.selected::after {
        width: 22px;
        height: 22px;
        font-size: 12px;
        right: 0.75rem;
    }
    
    .spei-badge {
        padding: 0.5rem;
    }
    
    .spei-text {
        font-size: 0.75rem;
    }
    
    .payment-action .btn-primary {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* =========================================
   SPEI Instructions
   ========================================= */

/* =========================================
   Modal SPEI - Instrucciones de Transferencia
   ========================================= */

.spei-modal-container {
    text-align: center;
}

.spei-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.spei-header-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.spei-header h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 0 0 0.25rem 0;
}

.spei-header p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.spei-instructions {
    text-align: left;
}

.spei-amount {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 1.25rem;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(148, 105, 162, 0.3);
}

.spei-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spei-value {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.spei-data-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
}

.spei-field {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e8e8e8;
}

.spei-field:last-child {
    border-bottom: none;
}

.spei-field label {
    display: block;
    font-size: 0.65rem;
    color: #999;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.spei-field > span {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

.spei-copy-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.spei-copy-field span {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.btn-copy {
    background: var(--gradient-master);
    color: white;
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(148, 105, 162, 0.4);
}

.btn-copy.copied {
    background: #28a745;
}

.spei-steps {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.spei-steps h4 {
    font-size: 0.8rem;
    color: #856404;
    margin: 0 0 0.6rem 0;
    font-weight: 700;
}

.spei-steps ol {
    margin: 0;
    padding-left: 1.25rem;
}

.spei-steps li {
    font-size: 0.8rem;
    color: #6d5300;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.spei-steps li:last-child {
    margin-bottom: 0;
}

.spei-actions {
    text-align: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

.spei-note {
    margin-top: 0.85rem;
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

/* =========================================
   Responsive - Modal General y Pasos de Pago
   ========================================= */

/* Modal optimizado para móviles */
@media (max-width: 520px) {
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1.5rem;
        border-radius: 20px;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    
    .modal-close {
        top: 0.75rem;
        right: 1rem;
        font-size: 1.75rem;
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-header {
        padding-right: 2rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }
    
    .modal-header p {
        font-size: 0.85rem !important;
    }
}

/* =========================================
   Responsive - Modal SPEI
   ========================================= */

@media (max-width: 520px) {
    .spei-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .spei-header-icon {
        font-size: 2rem;
    }
    
    .spei-header h3 {
        font-size: 1.2rem;
    }
    
    .spei-header p {
        font-size: 0.8rem;
    }
    
    .spei-amount {
        padding: 0.9rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .spei-label {
        font-size: 0.7rem;
    }
    
    .spei-value {
        font-size: 1.75rem;
    }
    
    .spei-data-card {
        border-radius: 12px;
        margin-bottom: 0.85rem;
    }
    
    .spei-field {
        padding: 0.75rem 0.85rem;
    }
    
    .spei-field label {
        font-size: 0.6rem;
    }
    
    .spei-field > span {
        font-size: 0.85rem;
    }
    
    .spei-copy-field {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .spei-copy-field span {
        font-size: 0.85rem;
        word-break: break-all;
        text-align: center;
        padding: 0.25rem;
    }
    
    .btn-copy {
        width: 100%;
        padding: 0.55rem 1rem;
        font-size: 0.7rem;
    }
    
    .spei-steps {
        padding: 0.75rem 0.9rem;
        border-radius: 10px;
        margin-bottom: 0.85rem;
    }
    
    .spei-steps h4 {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .spei-steps ol {
        padding-left: 1.1rem;
    }
    
    .spei-steps li {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .btn-whatsapp {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
        gap: 0.5rem;
    }
    
    .btn-whatsapp svg {
        width: 20px;
        height: 20px;
    }
    
    .spei-note {
        margin-top: 0.75rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
    .hero-section {
        padding-top: 4rem;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .hero-logo img {
        height: 48px;
    }

    .promo-box {
        padding: 0.4rem 0.6rem;
    }

    .price-tag {
        font-size: 1.2rem;
    }

    .btn-primary {
        max-width: 100%;
    }

    .carousel-container {
        height: 260px;
    }

    .cat-image {
        max-width: 200px;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .modal-content {
        padding: 1.25rem;
    }

    .modal-header h3 {
        font-size: 1.1rem !important;
    }

    .spei-value {
        font-size: 1.35rem;
    }

    .spei-copy-field span {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .spei-steps li {
        font-size: 0.7rem;
    }

    .payment-method-card {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .payment-method-icon {
        width: 40px;
        height: 40px;
    }

    .payment-method-content h4 {
        font-size: 0.85rem;
    }

    .payment-method-content p {
        font-size: 0.7rem;
    }
}