/* Estilos Generales y Reseteo */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4; 
    scroll-behavior: smooth; 
}

/* ======================================= */
/* 1. BARRA DE NAVEGACIÓN (HEADER)         */
/* ======================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #333; 
    color: white;
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px; 
    width: 40px; 
    margin-right: 10px;
    border-radius: 50%; 
    object-fit: cover; 
}
.site-title {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.1em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4CAF50; 
}

.whatsapp-button {
    background-color: #25D366; 
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 50px; 
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-button i {
    margin-right: 8px; 
    font-size: 1.2em;
}

/* ======================================= */
/* 2. SECCIÓN BANNER / HÉROE 1 */
/* ======================================= */
.hero-banner {
    background-image: url('baner.png'); 
    background-size: cover; 
    background-position: center; 
    height: 1000px; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; 
}

.banner-overlay {
    background-color: rgba(0, 0, 0, 0.74); 
    padding: 20px 40px;
    border-radius: 10px;
    max-width: 90%;
}

.hero-banner h1 {
    font-size: 3.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-banner .subtitle {
    font-size: 1.8em;
    margin-top: 10px;
    font-weight: 300;
}

/* ======================================= */
/* 2. SECCIÓN BANNER2 / HÉROE 2 (MODIFICADA) */
/* ======================================= */
.hero-banner2 {
    background-image: url('baner2.png'); 
    background-size: cover; 
    background-position: center; 
    min-height: 550px; /* Aumentado para contener más info */
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; 
}

/* Overlay específico para hero-banner2 */
.banner-overlay2 {
    background-color: rgba(0, 0, 0, 0.85); /* Más oscuro para mejor legibilidad */
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-banner2 h2 {
    font-size: 2.5em;
    color: #ffd700; /* Oro */
    margin: 10px 0 25px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* Contenedor de Sorteo y Loterías */
.sorteo-info-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sorteo-details {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
}

.sorteo-details h3 {
    font-size: 1.5em;
    color: #25D366; /* Verde WhatsApp */
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.sorteo-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.sorteo-details ul li {
    font-size: 1.2em;
    margin: 5px 0;
}
.sorteo-details ul li i {
    margin-right: 10px;
    color: #ffd700;
}


/* Premio Principal */
.premio-principal {
    font-size: 3em;
    font-weight: bold;
    color: #ff4500; /* Naranja rojizo, llamativo */
    margin: 30px 0;
    padding: 10px;
    border: 3px solid #ff4500;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Premios Secundarios */
.premios-secundarios {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.premios-secundarios h3 {
    font-size: 1.6em;
    color: #ffffff;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.premios-secundarios ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.premios-secundarios ul li {
    font-size: 1.3em;
    margin: 10px 0;
    color: #e0e0e0;
}

.premios-secundarios ul li b {
    color: #ff9900; /* Naranja más suave */
}

.precio-numero {
    font-size: 1.8em;
    font-weight: bold;
    color: #25D366;
    background-color: #333;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.7);
}

/* Eliminar estilos redundantes del banner-overlay genérico */
.hero-banner2 .banner-overlay {
    background-color: initial;
    padding: initial;
    border-radius: initial;
}
.hero-banner2 h1.subtitle { 
    display: none; 
}


/* ======================================= */
/* 3. SECCIÓN CONTENIDO PRINCIPAL (MAIN) - Válido para Index */
/* ======================================= */
.content-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto; 
}

.info-box {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #ffffff; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-box h2 {
    font-size: 2em;
    color: #007bff; 
    margin-top: 0;
}

.info-box p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 15px auto 0;
}

/* Grid de Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3em;
    color: #25D366; 
    margin-bottom: 15px;
}

.feature-card strong {
    display: block;
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    color: #666;
}

/* ======================================= */
/* 4. SECCIÓN ¿CÓMO FUNCIONA? - Válido para Index */
/* ======================================= */
.how-it-works {
    background-color: #1e1e1e; 
    padding: 60px 20px;
    text-align: center;
}

.section-title-works {
    font-size: 2.5em;
    color: #ffd700; 
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.step-card {
    background-color: #2b2b2b; 
    color: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4); 
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.6);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: white;
    color: #1e1e1e;
    border-radius: 50%; 
    font-size: 2em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    margin-left: -5px; 
}

.step-card h3 {
    font-size: 1.5em;
    margin-top: 0;
    color: white;
}

.step-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #ccc;
}

.works-button {
    margin-top: 30px;
    font-size: 1.2em;
    padding: 12px 25px;
}

/* ======================================= */
/* 5. SECCIÓN PREGUNTAS FRECUENTES (FAQ) - Válido para Index */
/* ======================================= */
.faq-section {
    background-color: #1e1e1e; 
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.section-title-faq {
    font-size: 2.5em;
    color: #ffd700; 
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-question {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    padding: 20px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item.active .faq-question {
    color: #ffd700; 
}


.faq-item.active:nth-child() .faq-question {
    color: #ffd700; 
}

.faq-icon {
    font-size: 1.5em;
    font-weight: 300;
    padding-left: 20px;
}

.faq-answer {
    color: #ccc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding-top 0.3s ease-in-out;
    padding-top: 0;
}

.faq-answer p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ======================================= */
/* 5.1 ESTILOS ESPECÍFICOS PARA TÉRMINOS Y CONDICIONES */
/* ======================================= */

.terms-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff; 
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
    color: #333;
    margin-top: 40px;
    margin-bottom: 40px;
}

.terms-section h2 {
    font-size: 2.5em;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #25D366; /* Color de WhatsApp */
    padding-bottom: 10px;
}

.terms-section h3 {
    font-size: 1.8em;
    color: #007bff; /* Color de acento */
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-section p, .terms-section ul {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.terms-section ul {
    padding-left: 20px;
}

.terms-section ul li {
    margin-bottom: 10px;
}

.update-date {
    text-align: right;
    font-style: italic;
    margin-top: 40px;
    color: #666;
}


/* ======================================= */
/* 6. FOOTER COMPLETO                      */
/* ======================================= */
.main-footer {
    background-color: #1a1a1a; 
    color: #cccccc;
    padding: 40px 20px 20px 20px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.footer-logo-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-site-title {
    font-size: 2.2em;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    line-height: 1;
}

/* Contenedor de Íconos */
.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #4CAF50; 
}
.social-icon.whatsapp-footer:hover {
    background-color: #25D366; 
}
.social-icon.facebook:hover {
    background-color: #1877F2; 
}
.social-icon.tiktok:hover {
    background-color: #000000; 
}


/* Enlaces legales */
.footer-links {
    display: flex;
    gap: 30px;
    margin-top: 10px; 
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1em;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;
}

.footer-copy p {
    margin: 5px 0;
}

.website-link-bottom {
    font-size: 1em;
    margin-top: 10px !important;
}

.website-link-bottom a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}


/* ======================================= */
/* 7. MEDIA QUERIES (RESPONSIVE)           */
/* ======================================= */

/* --- Estilos para Tabletas (Max 992px) --- */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 20px;
    }
    
    .nav-links a {
        margin-left: 15px;
        font-size: 1em;
    }

    .hero-banner h1 {
        font-size: 3em;
    }

    /* Hero2 en Tablet */
    .hero-banner2 h2 {
        font-size: 2em;
    }
    .premio-principal {
        font-size: 2.5em;
    }
    .premios-secundarios ul li {
        font-size: 1.1em;
    }
    .precio-numero {
        font-size: 1.5em;
    }
}

/* --- Estilos para Móviles (Max 768px) --- */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-wrap: wrap; 
        padding: 10px;
        justify-content: center;
    }
    .logo-container {
        width: 100%; 
        justify-content: center;
        margin-bottom: 10px;
    }
    .site-title {
        font-size: 1.4em; 
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        flex-wrap: wrap; 
    }
    .nav-links a {
        margin: 5px 8px; 
        font-size: 0.9em;
    }
    .whatsapp-button {
        width: 90%; 
        justify-content: center;
        font-size: 1em;
    }

    /* Hero 1 */
    .hero-banner {
        height: 450px; 
    }
    .hero-banner h1 {
        font-size: 1.8em; 
    }
    .hero-banner .subtitle {
        font-size: 1.1em;
    }

    /* Hero 2 en Móvil */
    .hero-banner2 {
        min-height: 500px;
        padding: 30px 10px;
    }
    .banner-overlay2 {
        padding: 20px;
    }
    .hero-banner2 h2 {
        font-size: 1.6em; 
    }
    .sorteo-info-container {
        flex-direction: column;
        gap: 15px;
    }
    .sorteo-details {
        min-width: auto;
    }
    .sorteo-details h3 {
        font-size: 1.3em;
    }
    .sorteo-details ul li {
        font-size: 1.1em;
    }
    .premio-principal {
        font-size: 2em;
        margin: 20px 0;
    }
    .premios-secundarios h3 {
        font-size: 1.4em;
    }
    .premios-secundarios ul li {
        font-size: 1.1em;
    }
    .precio-numero {
        font-size: 1.3em;
        padding: 8px 15px;
    }

    /* Contenido */
    .content-section {
        padding: 30px 15px;
    }
    .info-box h2 {
        font-size: 1.8em;
    }
    .info-box p {
        font-size: 1em;
    }
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .step-number {
        margin: 0 auto 15px auto; 
    }
    .section-title-works {
        font-size: 2em;
    }
    
    /* FAQ */
    .faq-section {
        padding: 40px 15px;
    }
    .section-title-faq {
        font-size: 2em;
    }
    .faq-question {
        font-size: 1.1em;
        padding: 15px 0;
    }

    /* ESTILOS DE TÉRMINOS PARA MÓVIL */
    .terms-section {
        padding: 40px 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .terms-section h2 {
        font-size: 2em;
    }
    .terms-section h3 {
        font-size: 1.5em;
    }
    .terms-section p, .terms-section ul {
        font-size: 1em;
    }

    /* Footer */
    .main-footer {
        padding: 30px 15px 15px 15px;
    }
    .footer-content {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }
    .footer-logo-social {
        align-items: center;
        margin-bottom: 25px;
    }
    .footer-links {
        flex-direction: column; 
        gap: 10px;
        margin-bottom: 20px;
    }
    .footer-links a {
        font-size: 1em;
    }
}

.qr-section {
    margin-top: 50px;
    text-align: center;
    background-color: #2b2b2b;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.qr-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.codigoqr-img {
    width: 250px;
    max-width: 90%;
    border-radius: 15px;
    border: 3px solid #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s;
}

.codigoqr-img:hover {
    transform: scale(1.05);
}
/* --- RESPONSIVE PARA SECCIÓN QR --- */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .qr-section {
        padding: 25px 15px;
        margin-top: 40px;
    }

    .qr-section h3 {
        font-size: 1.3em;
    }

    .codigoqr-img {
        width: 220px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .qr-section {
        padding: 20px 10px;
        border-radius: 15px;
        margin-top: 30px;
    }

    .qr-section h3 {
        font-size: 1.2em;
        line-height: 1.4;
    }

    .codigoqr-img {
        width: 200px;
        max-width: 80%;
        border-width: 2px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
    }
}

/* Móviles muy pequeños (menos de 480px) */
@media (max-width: 480px) {
    .qr-section {
        padding: 15px 8px;
    }

    .qr-section h3 {
        font-size: 1.1em;
    }

    .codigoqr-img {
        width: 180px;
        max-width: 90%;
    }
}
