/* ==================== RESET Y CONFIGURACIÓN GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== HEADER ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 90px;
}

/* ==================== LOGO - CENTRADO EN MOBILE ==================== */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 250px;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.logo img {
    height: 85px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo img:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Efecto de brillo sutil */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(30, 112, 30, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 15px;
}

.logo:hover::before {
    opacity: 1;
}

/* ==================== NAVEGACIÓN DESKTOP ==================== */
.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-desktop a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: #1e701e;
    background: rgba(30, 112, 30, 0.2);
}

/* Botón WhatsApp Desktop */
.whatsapp-desktop .whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.whatsapp-desktop .whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Espaciador para balance en móvil */
.header-spacer {
    width: 44px;
    flex-shrink: 0;
    visibility: hidden;
}

/* ==================== MENÚ HAMBURGUESA MOBILE ==================== */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger {
    width: 25px;
    height: 20px;
    position: relative;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* ==================== NAVEGACIÓN MOBILE ==================== */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 1001;
    transition: right 0.4s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.active {
    right: 0;
}

/* Cabecera menú mobile */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo img {
    height: 45px;
    width: auto;
}

.close-menu {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Lista de navegación mobile */
.mobile-nav-list {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    background: rgba(30, 112, 30, 0.2);
    color: #1e701e;
    padding-left: 25px;
}

.mobile-nav-list a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* WhatsApp mobile */
.mobile-whatsapp a {
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.1);
}

.mobile-whatsapp a:hover {
    background: rgba(37, 211, 102, 0.2) !important;
}

/* Información contacto mobile */
.mobile-contact-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #aaa;
}

.mobile-contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Overlay menú mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== MEDIA QUERIES PARA HEADER RESPONSIVO ==================== */

/* Desktop (más de 768px) */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .header-spacer {
        display: none;
    }
    
    /* En desktop, el logo vuelve a la izquierda */
    .logo {
        position: static;
        transform: none;
        left: auto;
        max-width: 300px;
        margin-right: auto;
    }
    
    .logo img {
        height: 100px;
    }
}

/* Mobile (hasta 768px) - HAMBURGUESA A LA DERECHA */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .header-container {
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        height: 85px;
        position: relative;
    }
    
    /* Logo centrado absolutamente en mobile */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: 220px;
        z-index: 1;
    }
    
    .logo img {
        height: 75px !important;
    }
    
    /* Espaciador a la izquierda para balance */
    .header-spacer {
        visibility: visible;
        width: 44px;
        order: 1;
        flex-shrink: 0;
    }
}

/* Móvil pequeño (hasta 576px) */
@media (max-width: 576px) {
    .header-container {
        padding: 10px 15px;
        height: 80px;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .logo img {
        height: 70px !important;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hamburger {
        width: 22px;
    }
    
    .header-spacer {
        width: 40px;
    }
}

/* ==================== ESTILOS ESPECÍFICOS PARA CÓDIGOS ==================== */

.codigos-container {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    min-height: 100vh;
}

.titulo-metodo {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #e50914 0%, #01b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitulo {
    text-align: center;
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.video-wrapper {
    position: relative;
    max-width: 250px;
    width: 90%;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* Botón mute mejorado */
.mute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.mute-btn:hover {
    background: rgba(30, 112, 30, 0.8);
    transform: scale(1.1);
}

/* Información de código */
.info-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-box h2 {
    color: #1e701e;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 15px;
}

.highlight {
    color: #25D366;
    font-weight: 600;
    background: rgba(37, 211, 102, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.netflix {
    color: #e50914;
}

.disney {
    color: #01b4ff;
}

/* Sección de pasos */
.pasos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 50px auto;
}

.paso {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.paso:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(30, 112, 30, 0.3);
}

.paso-numero {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e701e 0%, #145214 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    color: white;
}

.paso h3 {
    color: #1e701e;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.paso p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* WhatsApp directo */
.whatsapp-directo {
    text-align: center;
    margin: 50px auto;
    max-width: 600px;
}

.whatsapp-btn-large {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-wrapper, .info-box, .paso {
    animation: fadeIn 0.6s ease-out;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .codigos-container {
        padding: 120px 0 40px;
    }
    
    .titulo-metodo {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    .subtitulo {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .video-wrapper {
        max-width: 90%;
    }
    
    .info-box {
        margin: 30px 20px;
        padding: 20px;
    }
    
    .pasos-container {
        grid-template-columns: 1fr;
        margin: 40px 20px;
        gap: 20px;
    }
    
    .whatsapp-btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .titulo-metodo {
        font-size: 1.6rem;
    }
    
    .video-wrapper {
        max-width: 95%;
    }
    
    .mute-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
}

/* ==================== AJUSTES ADICIONALES ==================== */
/* Asegurar que el video se vea bien en todos los dispositivos */
.video {
    max-width: 100%;
    height: auto;
}

/* Mejorar la legibilidad del texto */
.info-box p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Estilo para los enlaces dentro de la info-box */
.info-box a {
    color: #25D366;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-box a:hover {
    color: #1e701e;
    text-decoration: underline;
}

/* Efecto hover para el botón de WhatsApp grande */
.whatsapp-btn-large:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Estilo para el texto dentro de subtitulo */
.subtitulo strong {
    color: #fff;
    font-weight: 700;
}

/* Contraste mejorado para el texto del paso */
.paso p {
    font-weight: 400;
    color: #ccc;
}

/* ==================== FOOTER - RESPONSIVO ==================== */
footer {
    background: #0c0c0c;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #1e701e;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: #1e701e;
}

/* Información de contacto */
.contact-info .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #25D366;
    margin-bottom: 15px;
    text-decoration: none;
}

.contact-info p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #1e701e;
    transform: translateY(-3px);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    font-size: 0.9rem;
}

/* Responsive para Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Pantallas grandes (más de 1600px) */
@media (min-width: 1600px) {
    .header-container,
    .codigos-container {
        max-width: 1600px;
    }
    
    /* Logo aún más grande en pantallas muy grandes */
    .logo {
        max-width: 350px;
    }
    
    .logo img {
        height: 120px;
    }
}