/* style.css - Estilos para "Al Volante con RPP" - Edición Cómic */

/* --- VARIABLES Y RESET --- */
:root {
    --background-cyan: #00D4FF;
    --rays-cyan: #69E7FF;
    --accent-yellow: #FFE000;
    --outline-black: #000000;
    --whatsapp-green: #25D366;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.hero-eyebrow.animate-on-scroll { transition-delay: 0s; }
.hero-text h1.animate-on-scroll { transition-delay: 0.1s; }
.hero-logo.animate-on-scroll { transition-delay: 0.1s; }
.hero-text p.animate-on-scroll { transition-delay: 0.2s; }
.hero-cta-group.animate-on-scroll { transition-delay: 0.3s; }
.section-title.animate-on-scroll { transition-delay: 0.1s; }
.benefits-grid.animate-on-scroll { transition-delay: 0.2s; }
.rules-grid.animate-on-scroll { transition-delay: 0.2s; }
.final-cta-text h2.animate-on-scroll { transition-delay: 0.1s; }
.final-cta-text p.animate-on-scroll { transition-delay: 0.2s; }
.cta-button.animate-on-scroll { transition-delay: 0.3s; }
.benefit-card.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.benefit-card.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.benefit-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.benefit-card.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.rule-item.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.rule-item.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.rule-item.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

body { font-family: 'Montserrat', sans-serif; background-color: var(--background-cyan); color: var(--outline-black); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- HEADER --- */
.main-header { padding: 20px 0; border-bottom: 4px solid var(--outline-black); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.main-header nav { margin-right: 20px; }
.header-h1 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; color: var(--outline-black); margin: 0; line-height: 1; }
@media (max-width: 768px) { .header-h1 { font-size: 1.2rem; } }
.logo { width: 100px; } /* Ya no necesita filtro invertido */
.main-header nav a { color: var(--outline-black); text-decoration: none; font-weight: 900; margin-left: 32px; transition: color 0.3s; }
.main-header nav a:hover { color: var(--white); }

/* --- BOTONES CTA --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--outline-black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    padding: 16px 28px;
    border-radius: 50px;
    border: 4px solid var(--outline-black);
    box-shadow: 8px 8px 0 var(--outline-black);
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover { transform: translate(4px, 4px); box-shadow: 4px 4px 0 var(--outline-black); }
.cta-button:active { transform: scale(0.95); }
.header-cta { background-color: var(--white); }

.hamburger-menu { display: none; flex-direction: column; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger-menu span { width: 25px; height: 3px; background: var(--outline-black); margin: 3px 0; transition: 0.3s; }
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-content { position: absolute; top: 0; right: 0; width: 250px; height: 100%; background: var(--white); padding: 20px; box-shadow: -2px 0 5px rgba(0,0,0,0.5); transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-menu.open .mobile-menu-content { transform: translateX(0); }
.close-menu { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 36px; font-weight: bold; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 20px; margin-top: 50px; }
.mobile-nav a { color: var(--outline-black); text-decoration: none; font-size: 18px; font-weight: 700; }
.mobile-nav button { margin-top: 20px; }

/* --- HERO SECTION --- */
.hero-section {
    padding: 20px 0;
    background: radial-gradient(circle at 25% 50%, var(--background-cyan) 0%, rgba(0, 212, 255, 0.8) 15%, rgba(0, 212, 255, 0.4) 25%, rgba(0, 212, 255, 0.2) 30%, transparent 35%),
                repeating-conic-gradient(from 0deg at 25% 50%, var(--background-cyan) 0% 7.5deg, var(--rays-cyan) 7.5deg 15deg);
    background-size: 100% 100%, auto;
    animation: fadeIn 0.6s ease-out;
}
.hero-container { display: flex; align-items: center; gap: 40px; position: relative; width: 100%; padding-left: 2.5%; }
.hero-text { flex: 1.2; padding: 20px;}
.hero-text h1 {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
    text-shadow: -2px 0 #000000, 0 5px #000000, 2px 0 #000000, 0 11px #000000,  1px 1px 20px #00000050;
    margin-bottom: 24px;
}
.hero-logo {
    height: 14rem;
    width: auto;
    margin-bottom: 24px;
}
.hero-eyebrow { font-size: 1.7rem !important; font-weight: 900; color: var(--accent-yellow); text-shadow: -2px 0 #000000, 0 4px #000000, 2px 0 #000000, 0 -1px #000000,  1px 1px 20px #00000050; margin-bottom: 5px; text-align: left; }
.hero-text p { font-size: 1.1rem; max-width: 450px; line-height: 1.7; font-weight: 700; padding-bottom: 20px;}
.hero-cta-group { display: flex; align-items: center; gap: 40px; }

.cta-whatsapp {
    background-color: var(--whatsapp-green); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 18px 36px; font-size: 1.2rem;
}
.icon-whatsapp { width: 28px; height: 28px; fill: currentColor; }

.hero-image-wrapper { position: absolute; right: 0px; bottom: -24px; width: 700px; }
.hero-image-wrapper img { width: 100%; max-width: 700px; object-fit: contain; }

/* --- TRUST BANNER SECTION --- */
.trust-banner-section { background-color: var(--white); padding: 20px 0; color: var(--dark-text); }
.trust-banner-section .trust-signals { list-style: none; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 24px; text-align: center; margin-left: 20px; }
.marquee-wrapper { display: flex; position: relative; }

/* --- BENEFITS SECTION --- */
.benefits-section { background-color: var(--accent-yellow); color: var(--outline-black); padding: 100px 0; text-align: center; border-top: 4px solid var(--outline-black); animation: fadeIn 0.6s ease-out 0.2s both; }
.section-title { font-size: 5rem; font-weight: 900; line-height: 1.2; margin-bottom: 60px; color: var(--white); text-shadow: -2px 0 #000000, 0 5px #000000, 2px 0 #000000, 0 11px #000000,  1px 1px 20px #00000050; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: left; }
.benefit-card { background: var(--white); padding: 32px; border-radius: 20px; border: 4px solid var(--outline-black); box-shadow: 8px 8px 0 var(--outline-black); text-align: center; }
.benefit-icon { width: 48px; height: 48px; margin-bottom: 16px; color: var(--accent-yellow); }
.benefit-card h3 { font-size: 1.5rem; font-weight: 900; color: var(--outline-black); margin-bottom: 12px; }
.benefit-card p { font-weight: 700; }

/* --- RULES SECTION --- */
.rules-section { background-color: var(--background-cyan); color: var(--outline-black); padding: 100px 0; border-top: 4px solid var(--outline-black); text-align: center; }
.rules-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 800px; margin: 0 auto; }
.rule-item { background: var(--white); border: 4px solid var(--outline-black); border-radius: 20px; display: flex; align-items: center; padding: 24px; gap: 24px; box-shadow: 8px 8px 0 var(--outline-black); }
.rule-number { font-size: 3rem; font-weight: 900; color: var(--accent-yellow); text-shadow: -2px -2px 0 var(--outline-black), 2px -2px 0 var(--outline-black), -2px 2px 0 var(--outline-black), 2px 2px 0 var(--outline-black); }
.rule-text h3 { font-size: 1.5rem; font-weight: 900; color: var(--outline-black); margin-bottom: 8px; }

/* --- FINAL CTA SECTION --- */
.final-cta-section { background-color: var(--accent-yellow); padding: 100px 0; text-align: center; border-top: 4px solid var(--outline-black);}
.final-cta-text h2 { font-size: 6rem; font-weight: 900; line-height: 1; color: var(--white); text-shadow: -2px 0 #000000, 0 5px #000000, 2px 0 #000000, 0 11px #000000,  1px 1px 20px #00000050; margin-bottom: 24px; }
.final-cta-text p { font-size: 1.1rem; max-width: 550px; margin: 0 auto 40px auto; line-height: 1.7; font-weight: 700; }

/* --- FOOTER --- */
.main-footer { padding: 40px 0; text-align: center; background: var(--background-cyan); color: var(--outline-black); font-weight: 700; border-top: 4px solid var(--outline-black); }
.social-title { font-weight: 700; color: var(--outline-black); margin-bottom: 10px; text-align: center; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-direction: row; align-items: center; }
.social-links a { color: var(--outline-black); text-decoration: none; font-weight: 700; transition: color 0.3s; display: flex; align-items: center; gap: 8px; }
.social-links a:hover { color: var(--white); }
.footer-help-section { margin: 20px 0; }
.footer-help-section p { margin-bottom: 8px; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; margin-bottom: 20px; }
    .hero-cta-group { justify-content: center; }
    .hero-image-wrapper { margin-bottom: 0; }
    .hero-section {
        background: radial-gradient(circle at 50% 75%, var(--background-cyan) 0%, rgba(0, 212, 255, 0.8) 15%, rgba(0, 212, 255, 0.4) 25%, rgba(0, 212, 255, 0.2) 30%, transparent 35%),
                    repeating-conic-gradient(from 0deg at 50% 75%, var(--background-cyan) 0% 7.5deg, var(--rays-cyan) 7.5deg 15deg);
    }
    .hero-text h1, .section-title, .final-cta-text h2, .social-proof-text blockquote, .hero-logo { height: clamp(2.5rem, calc(2.5rem + 5vw), 6rem); text-shadow: 4px 3px 0px #000000, 0px -3px 0px #000000, 6px 6px 0px #000000; }
}
@media (max-width: 768px) {
    .main-header nav { display: none; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-logo { height: 8rem; }
    .section-title { font-size: 2rem; }
    .final-cta-text h2 { font-size: 2rem; }
    .hero-section { padding: 40px 0 0 0; }
    .container { padding: 0 16px; }
    .hero-cta-group { flex-direction: column; gap: 16px; }
    .hero-text p { font-size: 1rem; }
    .benefits-section, .rules-section, .final-cta-section { padding: 60px 0; }
    .benefit-card, .rule-item { padding: 20px; }
    .benefit-card h3 { font-size: 1.2rem; }
    .rule-text h3 { font-size: 1.2rem; }
    .final-cta-text p { font-size: 1rem; }
    .hero-image-wrapper { position: static; width: auto; margin-bottom: -4px; text-align: center; }
    .hero-image-wrapper img { max-width: 100vw; }
    .hero-container { gap: 20px; }
    .hero-text { margin-bottom: 20px; padding: 20px; }
    .hero-eyebrow { font-size: 2rem; text-align: center; }
    .social-proof-image-wrapper img { max-width: 100%; }
    .final-cta-image-wrapper img { max-width: 80vw; }
    .hamburger-menu { display: flex; }
    #whatsapp-link-header { display: none; }
    .cta-button { font-size: 0.9rem; padding: 12px 20px; }
    .rule-number { font-size: 2rem; }
    .privacy-box { padding: 20px; }
    .icon-lock { width: 32px; height: 32px; }
    .trust-banner-section { overflow: hidden; }
    .trust-signals { display: flex; flex-direction: row; white-space: nowrap; flex-wrap: nowrap; gap: 16px; }
    .trust-signals li { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; }
    .social-links { flex-direction: column; }
    }
