/* WC Promo Pack Module Styles - Landing Page Integration */
:root {
    --dark-bg: #0a0812;
    --card-bg: #151029;
    --card-gradient: linear-gradient(135deg, #1e1835, #2a1f4a);
    --accent-purple: #7b5ee6;
    --accent-pink: #c86dd7;
    --accent-blue: #5d8de0;
    --accent-green: #00d4aa;
    --text-light: #e8e6f2;
    --text-muted: #a09bb8;
    --gold: #d4af37;
}

.wc-promo-pack-module {
    font-family: 'Poppins', sans-serif!important;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
		overflow-y: hidden;
    min-height: 100vh;
}

.wc-promo-pack-module:not(.dark-mode) {
    background: var(--dark-bg);
    color: var(--text-light);
}

/* Banner especial de oferta */
.special-offer-banner {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.special-offer-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Contenedor principal */
.wc-promo-pack-module .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- ESTILOS DE CABECERA Y FOOTER --- */

.wc-promo-header {
    padding: 2rem 0 3rem;
    font-family: 'Marcellus',serif!important;
}

.wc-promo-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.wc-promo-header .lead {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.limited-offer-badge {
    position: relative;
    top: 0;
    right: 0;
    margin: 1.5rem auto 0;
    max-width: 300px;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: pulse 2s infinite;
    font-family: 'Marcellus',serif!important;
    transform: rotate(0deg); 
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.limited-offer-badge .badge-icon {
    margin-left: 0.5rem;
    color: var(--gold);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- ESTILOS DE TARJETAS --- */

/* Tarjetas de producto */
.product-card {
    background: var(--card-gradient);
    border: 1px solid rgba(123, 94, 230, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 1.5rem; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 2rem rgba(123, 94, 230, 0.3);
    border-color: rgba(123, 94, 230, 0.4);
}

.product-image-container {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(123, 94, 230, 0.3);
    position: relative;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    aspect-ratio: 11/10;
    object-fit: cover;
}
.product-image:hover {
    transform: scale(1.02);
}

/* Botón de Video sobre la Imagen */
.video-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(200, 109, 215, 0.9); 
    border: 3px solid white;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: pointer;
    text-decoration: none;
}

.product-image-container:hover .video-overlay-btn {
    opacity: 1;
}

.video-overlay-btn:hover {
    background: var(--accent-purple);
    transform: translate(-50%, -50%) scale(1.1);
}

.product-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: 'Marcellus',serif !important;
    padding: 0 1.5rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-green);
    text-align: center;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.5;
    padding: 0 1.5rem;
    flex-grow: 1; 
}

/* --- TARJETA PACK DESTACADA --- */
.highlight-card {
    background: linear-gradient(135deg, #2a1f4a, #3d2a6d);
    border: 2px solid var(--accent-pink);
    border-radius: 1rem;
    position: relative;
    box-shadow: 0 0 30px rgba(200, 109, 215, 0.3);
    isolation: isolate;
    transform: scale(1.02);
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 109, 215, 0.1) 0%, transparent 70%);
    animation: pulse-glow 4s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse-glow {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.star-badge {
    position: absolute;
    top: -1.5rem; 
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 0.66rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9442rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    z-index: 10;
    font-family: 'Marcellus',serif !important;
}

.pack-title {
    font-family: 'Marcellus',serif !important;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    z-index: 2;
}

.pack-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.pack-content img {
    max-width: 80px;
    border-radius: 0.5rem;
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.pack-content .product-list-item {
    font-size: 2rem;
    color: var(--accent-pink);
    font-weight: 300;
}

.price-comparison {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    z-index: 2;
}

.price-comparison .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price-comparison .save-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(0, 212, 170, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.final-price-large {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(0, 212, 170, 0.5);
    font-family: 'Marcellus',serif !important;
    margin-bottom: 1.5rem;
    line-height: 1;
    z-index: 2;
}

/* Botón de video destacado - Pack */
.video-highlight-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
    font-family: 'Marcellus',serif!important;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    width: 100%; 
    max-width: 350px;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
    cursor: pointer;
    text-decoration: none;
}

.video-highlight-btn:hover {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    transform: translateY(-2px);
    box-shadow: 0 0.35rem 0.7rem rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.video-highlight-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* --- BOTONES GENERALES --- */

/* Base de los botones del plugin */
.wc-promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    width: 95.3%;
    margin: 1rem 10px auto !important;
}

.wc-promo-btn-secondary {
    color: var(--accent-purple);
    background-color: transparent;
    border-color: var(--accent-purple);
}

.wc-promo-btn-secondary:hover {
    color: #fff;
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.wc-promo-btn-success {
    color: #fff;
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.wc-promo-btn-success:hover {
    color: #fff;
    background-color: #00b894;
    border-color: #00b894;
}

/* Botón de compra espectacular (Pack) */
.wc-promo-btn-spectacular {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    padding: 0.8rem 2rem !important;
    background: linear-gradient(0deg, var(--accent-green) 0%, #00b894 100%);
    border: none;
    color: #0a0812; 
    box-shadow: 0 4px 10px rgba(0, 212, 170, 0.4);
    transition: all 0.2s ease;
    width: 100%;
}

.wc-promo-btn-spectacular:hover {
    background: linear-gradient(0deg, #00b894 0%, #00a085 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 212, 170, 0.6);
    color: #0a0812;
}

/* Botón de video en modal de detalle */
.wc-promo-btn-video {
    color: var(--text-light);
    background-color: var(--card-bg);
    border-color: var(--accent-pink);
    border: 2px solid var(--accent-pink);
    max-width: 300px;
    margin: 0 auto;
}

.wc-promo-btn-video:hover {
    color: white;
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
}

/* --- CONTADOR REGRESIVO --- */
.countdown-timer {
    background: rgba(10, 8, 18, 0.7);
    padding: 2rem;
    border-radius: 1rem;
    margin: 3rem auto;
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(123, 94, 230, 0.3);
    box-shadow: 0 0 20px rgba(123, 94, 230, 0.2);
}

.timer-title {
    font-family: 'Marcellus',serif!important;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.timer-boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.timer-box {
    background: var(--card-bg);
    border: 2px solid var(--accent-purple);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 0 10px rgba(123, 94, 230, 0.3);
    flex-grow: 1;
    max-width: 120px;
}

.timer-box span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-green);
    font-family: 'Marcellus',serif !important;
    line-height: 1;
}

.timer-box small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.timer-separator {
    font-size: 2.5rem;
    color: var(--accent-pink);
    font-weight: 300;
    line-height: 1;
}

/* --- MODALES --- */

/* Estilos específicos para el modal de video */
.wc-promo-modal-video .wc-promo-modal-content {
    max-width: 900px;
    width: 95%;
}

.wc-promo-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 0.5rem;
}

.wc-promo-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wc-promo-detail-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    font-family: 'Marcellus',serif!important;
}

.wc-promo-detail-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

/* --- SISTEMA DE GRID Y UTILIDADES --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.justify-content-center {
    justify-content: center;
}

.g-4 {
    margin: -0.5rem;
}

.g-4 > * {
    padding: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Alertas del sistema */
#wc-promo-pack-alerts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

/* --- UTILIDADES DE TEXTO --- */
.text-muted {
    color: var(--text-muted) !important;
}

.text-info {
    color: var(--accent-blue) !important;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
}

.me-2 {
    margin-right: 0.5rem;
}


/* ---------------------------------------------------------------- */
/* --- OPTIMIZACIÓN RESPONSIVA (TABLETS Y MÓVILES) --- */
/* ---------------------------------------------------------------- */

/* --- Tabletas y Móviles Grandes (Hasta 768px) --- */
@media (max-width: 768px) {
    /* Layout de Tarjetas: 1 columna en móviles */
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    /* Contador: Ajustes intermedios */
    .countdown-timer {
        max-width: 450px; 
        padding: 1.5rem 1rem;
        margin: 2rem auto;
    }

    .timer-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .timer-boxes {
        gap: 0.5rem; 
    }

    .timer-box {
        min-width: 60px; 
        padding: 0.75rem 0.5rem; 
    }

    .timer-box span {
        font-size: 2.2rem; /* Números más pequeños */
    }

    .timer-box small {
        font-size: 0.75rem; 
    }
    
    .timer-separator {
        font-size: 1.8rem;
    }

    .wc-promo-header h1 {
        font-size: 2.5rem;
    }
    
    .limited-offer-badge {
        font-size: 1rem;
    }

    /* Modal de video responsivo */
    .wc-promo-modal-video .wc-promo-modal-content {
        max-width: 90%;
    }
}

/* --- Móviles Estándar (Hasta 576px) --- */
@media (max-width: 576px) {
    /* Contador: Ajustes específicos para móviles */
    .countdown-timer {
        padding: 1rem 0.5rem;
    }
    
    .timer-boxes {
        gap: 0.4rem;
    }

    .timer-box {
        min-width: 50px; 
        padding: 0.5rem 0.3rem;
    }
    
    .timer-box span {
        font-size: 1.8rem; 
    }
    
    .timer-box small {
        font-size: 0.65rem;
    }
    
    .timer-separator {
        font-size: 1.4rem;
    }
    
    .wc-promo-btn-spectacular {
        font-size: 1.1rem !important;
        padding: 0.7rem 1.5rem !important;
    }

    .pack-title {
        font-size: 1.5rem;
    }

    .final-price-large {
        font-size: 2.8rem;
    }
}

/* --- Móviles Pequeños (Hasta 420px) --- */
@media (max-width: 420px) {
    /* Máxima compactación para pantallas muy pequeñas */
    
    .countdown-timer {
        padding: 0.75rem 0.25rem;
    }
    
    .timer-boxes {
        gap: 0.1rem; /* Mínimo espaciado */
    }

    .timer-box {
        min-width: 40px; 
        padding: 0.3rem 0.1rem;
    }
    
    .timer-box span {
        font-size: 1.4rem; /* Máxima reducción de números */
    }
    
    .timer-box small {
        font-size: 0.5rem; /* Máxima reducción de etiquetas */
        margin-top: 0.3rem;
    }
    
    .timer-separator {
        font-size: 1rem;
        margin: 0 0.1rem;
    }
    
    .wc-promo-header h1 {
        font-size: 2rem;
    }

    .product-title {
        font-size: 1.1rem;
    }
}


/* --- DARK MODE (Para cuando se active la clase .dark-mode) --- */
.wc-promo-pack-module.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.wc-promo-pack-module.dark-mode .promo-product-card {
    background: var(--card-gradient);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.5) !important;
    border-color: #495057 !important;
}

.wc-promo-pack-module.dark-mode .wc-promo-btn-secondary {
    color: var(--accent-purple);
    background-color: transparent;
    border-color: var(--accent-purple);
}

.wc-promo-pack-module.dark-mode .wc-promo-btn-secondary:hover {
    color: var(--text-light);
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* --- OTRAS REGLAS DE RENDIMIENTO/ACCESIBILIDAD --- */

/* Deshabilitar animaciones en modo reducido (performance) */
@media (prefers-reduced-motion: reduce) {
.special-offer-banner:before,
.highlight-card::before,
.video-highlight-btn,
.limited-offer-badge {
    animation: none;
}

.product-card:hover,
.wc-promo-btn:hover,
.video-highlight-btn:hover,
.wc-promo-btn-spectacular:hover {
    transform: none;
}
}

/* Focus styles para accesibilidad */
.wc-promo-btn:focus,
.video-highlight-btn:focus,
.wc-promo-modal-close:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}