/* ============================= */
/*          VARIABLES            */
/* ============================= */

:root {
    --primary: #1a237e;
    --primary-dark: #0d1440;
    --primary-light: #534bae;
    --gold: #d4a945;
    --gold-light: #eec56d;
    --text-dark: #1a1a1a;
    --text-light: #555;
    --bg-light: #f6f6f6;
    --bg-lighter: #f9f9f9;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================= */
/*             GLOBAL            */
/* ============================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: "Merriweather", serif;
    color: var(--primary);
    font-weight: 700;
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    color: var(--text-light);
}

#pageContent {
    display: none; /* Se muestra con JS cuando el video va en el minuto 3 */
}

/* ============================= */
/*              HERO             */
/* ============================= */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0,0 L100,0 L100,100 Z' fill='rgba(255,255,255,0.03)'/></svg>");
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 30px;
    background: linear-gradient(135deg, rgba(10, 16, 80, 0.9), rgba(11, 22, 90, 0.9));
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.logo-hero {
    width: 140px;
    margin: 20px auto;
}

.hero h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.hero h2 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Video Container */
.video-container {
    margin: 20px 0 10px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: #000;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

/* Overlay para activar sonido */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.3)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.video-overlay.hidden {
    display: none;
}

.btn-sound {
    background: var(--gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 6px 0 rgba(170, 140, 45, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-sound:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.overlay-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

.video-description {
    font-size: 1.05rem;
    margin: 18px auto 25px;
    max-width: 650px;
    color: var(--gold-light);
}

.hero-bullets {
    list-style: none;
    max-width: 650px;
    margin: 10px auto 25px;
    text-align: left;
    color: #f4f4f4;
}

.hero-bullets li {
    padding: 8px 0;
    font-size: 1rem;
}

.hero-cta {
    margin-top: 20px;
}

.cta-subtext {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #fff;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 6px 0 rgba(170, 140, 45, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(170, 140, 45, 0.8);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 0 rgba(170, 140, 45, 0.8);
}

.btn-primary.large {
    padding: 20px 50px;
    font-size: 1.3rem;
}

/* ============================= */
/*         PAIN & DESIRE         */
/* ============================= */

.pain-desire {
    background: var(--bg-lighter);
}

.pain-desire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.pain-block,
.desire-block {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pain-block {
    border-top: 4px solid #e53e3e;
}

.desire-block {
    border-top: 4px solid #38a169;
}

.pain-block h3,
.desire-block h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.pain-block ul,
.desire-block ul {
    list-style: none;
    margin: 20px 0;
}

.pain-block li,
.desire-block li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.pain-block li::before {
    content: "❌";
    position: absolute;
    left: 0;
}

.desire-block li::before {
    content: "✅";
    position: absolute;
    left: 0;
}

.desire-conclusion {
    margin-top: 20px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

/* Imagen de sección (mockup producto) */
.section-image {
    margin-top: 60px;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    margin-bottom: 15px;
}

.section-image p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-light);
}

/* ============================= */
/*           SOLUTION            */
/* ============================= */

.solution {
    background: var(--bg-lighter);
}

.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.pack-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.pack-card:hover {
    transform: translateY(-5px);
}

.pack-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.pack-card h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.bonus-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 50px;
    text-align: center;
    border: 2px dashed var(--gold);
}

.bonus-section h3 {
    margin-bottom: 30px;
    color: var(--primary);
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.bonus-item {
    padding: 20px;
    background: var(--bg-lighter);
    border-radius: var(--radius);
}

.bonus-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

/* ============================= */
/*         TESTIMONIALS          */
/* ============================= */

.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-lighter);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author strong {
    display: block;
    color: var(--primary);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================= */
/*            URGENCY            */
/* ============================= */

.urgency {
    background: var(--white);
}

.urgency-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid #e53e3e;
}

.urgency-badge {
    display: inline-block;
    background: #e53e3e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.urgency-section h3 {
    color: #e53e3e;
    margin-bottom: 15px;
}

.scarcity-indicator {
    margin: 30px 0;
}

.scarcity-bar {
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.scarcity-progress {
    height: 100%;
    background: linear-gradient(90deg, #e53e3e, #ed8936);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.countdown-timer {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
}

.countdown-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-dark);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 80px;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: -15px;
}

/* ============================= */
/*            OFFER              */
/* ============================= */

.offer {
    background: linear-gradient(135deg, #f9f5e9 0%, #f0e6cc 100%);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.offer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
}

.offer-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 50px 30px;
    position: relative;
    z-index: 2;
}

.offer-image {
    flex: 1 1 320px;
    text-align: center;
}

.offer-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    margin-bottom: 15px;
}

.offer-image p {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 360px;
    margin: 0 auto;
}

.offer-content {
    flex: 1 1 380px;
    text-align: left;
}

.offer-content h2 {
    color: var(--primary-dark);
    text-align: left;
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.offer-content .section-subtitle {
    text-align: left;
    margin-left: 0;
}

.package-includes {
    text-align: left;
    margin-bottom: 30px;
}

.package-includes h3 {
    text-align: left;
    margin-bottom: 15px;
    color: var(--primary);
}

.package-includes ul {
    list-style: none;
}

.package-includes li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
    font-size: 0.98rem;
}

.package-includes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.price-comparison {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 25px 0 15px;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    width: 100%;
}

.price-original,
.price-discounted {
    padding: 20px 22px;
    border-radius: 16px;
    text-align: center;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.price-original {
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
}

.price-original::before {
    content: "Precio Regular";
    position: absolute;
    top: -12px;
    background: #e53e3e;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-discounted {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(26, 35, 126, 0.25);
    position: relative;
    border: 2px solid var(--gold);
}

.price-discounted::before {
    content: "Oferta Especial";
    position: absolute;
    top: -12px;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-label {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin: 6px 0;
}

.price-original .price-amount {
    text-decoration: line-through;
    opacity: 0.7;
    color: #718096;
}

.price-save {
    margin-top: 8px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(212, 169, 69, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.price-arrow {
    font-size: 2rem;
    opacity: 0.7;
    animation: subtle-bounce 2s ease-in-out infinite;
}

@keyframes subtle-bounce {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.offer-cta {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.offer-cta .btn-primary.large {
    align-self: stretch;
    text-align: center;
}

.security-badges {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--white);
    padding: 10px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.security-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: var(--primary);
}

.offer-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================= */
/*        GUARANTEE & FAQ        */
/* ============================= */

.guarantee-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--gold);
    text-align: center;
    margin-bottom: 60px;
}

.guarantee-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.guarantee-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.guarantee-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.guarantee-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guarantee-cta {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 25px 0;
    color: var(--primary);
}

.faq-section h2 {
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: var(--bg-light);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-item.active .faq-question::after {
    content: "-";
    transform: translateY(-50%);
}

/* ============================= */
/*            FOOTER             */
/* ============================= */

footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

/* ============================= */
/*         RESPONSIVE            */
/* ============================= */

@media (max-width: 992px) {
    .hero-content {
        padding: 20px 16px 30px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .offer-layout {
        padding: 40px 24px;
    }

    .offer-content h2 {
        font-size: 1.9rem;
        text-align: center;
    }

    .offer-content .section-subtitle {
        text-align: center;
        margin: 0 auto 30px;
    }

    .offer-content {
        text-align: center;
    }

    .package-includes h3 {
        text-align: center;
    }

    .package-includes {
        text-align: left;
    }

    .offer-cta {
        align-items: center;
    }

    .security-badges {
        justify-content: center;
    }

    .price-comparison {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .section {
        padding: 60px 0;
    }

    .pain-desire-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .guarantee-features {
        grid-template-columns: 1fr;
    }

    .countdown-display {
        flex-direction: column;
        gap: 10px;
    }

    .countdown-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .pain-block,
    .desire-block,
    .urgency-section,
    .guarantee-section,
    .pack-card,
    .bonus-section {
        padding: 20px;
    }

    .btn-primary.large {
        padding: 16px 30px;
        font-size: 1.15rem;
    }

    .countdown-number {
        font-size: 2rem;
        min-width: 60px;
    }
}
