/* ================================
   1. RESETEO Y VARIABLES BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-dark: #0f0b1a; 
    --bg-darker: #0b0812;
    --card-bg: #1a132f;
    --text-light: #ffffff;
    --primary-purple: #5c32b8;
    --primary-orange: #ff5722;
    --accent-blue: #00d2ff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    scroll-behavior: smooth;
}

/* ================================
   2. CABECERA (HEADER & NAV) - PREMIUM
   ================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(15, 11, 26, 0.7); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); 
}

.logo {
    height: 60px; 
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px; 
    align-items: center;
}

.nav-links a:not(.btn-contacto) {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    position: relative; 
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-contacto):hover {
    color: var(--accent-blue);
}

.nav-links a:not(.btn-contacto)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.nav-links a:not(.btn-contacto):hover::after {
    width: 100%; 
    box-shadow: 0 0 8px var(--accent-blue); 
}

.btn-contacto {
    background: linear-gradient(45deg, var(--primary-orange), #ff2a00); 
    padding: 10px 24px;
    border-radius: 30px; 
    font-weight: bold;
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contacto:hover {
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6); 
}

/* ================================
   SELECTOR DE IDIOMAS (DROPDOWN)
   ================================ */
.lang-menu {
    position: relative;
    cursor: pointer;
    color: var(--text-light);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 0;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.current-lang:hover {
    color: var(--accent-blue);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    list-style: none;
    display: none; 
    flex-direction: column;
    min-width: 130px;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.lang-menu:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown li a {
    padding: 10px 20px;
    display: block !important;
    text-transform: none !important; 
    letter-spacing: normal !important;
    font-size: 0.95rem;
    border-radius: 0;
}

.lang-dropdown li a::after {
    display: none; 
}

.lang-dropdown li a:hover {
    background-color: rgba(92, 50, 184, 0.3); 
    color: white !important;
}

/* ================================
   3. SECCIÓN INICIO (HERO)
   ================================ */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 50px; 
    background: radial-gradient(circle at center, #2a1a4a 0%, var(--bg-dark) 70%);
}

.hero-logo {
    max-width: 300px; 
    width: 100%;
    margin-bottom: 20px;
    filter: drop-shadow(0px 10px 20px rgba(0, 210, 255, 0.3)); 
    animation: float 4s ease-in-out infinite; 
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.highlight-purple { color: #8e62f0; }
.highlight-orange { color: var(--primary-orange); }

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: #cccccc;
    line-height: 1.6;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px;
    transition: transform 0.2s ease, background 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: scale(1.05);
}

/* ================================
   4. TÍTULOS DE SECCIÓN
   ================================ */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-light);
    text-align: center;
}

/* ================================
   5. PRODUCTOS (PRECIOS)
   ================================ */
.pricing-section {
    padding: 100px 20px;
    background-color: var(--bg-darker); 
}

.single-plan-container {
    background-color: var(--card-bg);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(92, 50, 184, 0.2);
}

.plan-header {
    text-align: center;
    border-bottom: 1px solid #2a1a4a;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.plan-header h3 {
    color: var(--accent-blue);
    font-size: 2rem;
    letter-spacing: 1px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
}

.plan-features li {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    color: #cccccc;
}

.plan-features li:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.plan-features li span:last-child {
    font-weight: bold;
    color: var(--text-light);
}

.plan-features li.addon {
    color: #888;
    font-style: italic;
}

.plan-features li.addon span:last-child {
    color: var(--primary-orange);
}

.price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.price-box {
    background-color: var(--bg-darker);
    border: 1px solid #2a1a4a;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    width: calc(20% - 15px);
    min-width: 120px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
}

.price-box h4 {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.price-box p {
    color: var(--text-light);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.featured-price {
    border: 2px solid var(--primary-orange);
    transform: scale(1.05);
}

.featured-price:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--primary-orange);
}

.badge-ahorro {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-orange);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-buy {
    background-color: var(--primary-purple);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-buy:hover {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
}

/* ================================
   6. DISPOSITIVOS
   ================================ */
.devices-section {
    padding: 100px 20px;
    background-color: var(--bg-dark);
}

.devices-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.device-card {
    background-color: var(--card-bg);
    padding: 25px 20px;
    border-radius: 10px;
    border: 1px solid #2a1a4a;
    text-align: center;
    width: 280px;
    transition: transform 0.3s ease;
}

.device-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.device-card h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.device-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* ================================
   7. PREGUNTAS FRECUENTES (FAQ)
   ================================ */
.faq-section {
    padding: 100px 20px;
    background-color: var(--bg-darker);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #2a1a4a;
    overflow: hidden;
    transition: all 0.3s ease;
}

details:hover {
    border-color: var(--primary-purple);
}

summary {
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--accent-blue);
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none; 
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-orange);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

details p {
    padding: 0 20px 20px 20px;
    color: #cccccc;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5px;
    padding-top: 15px;
}

/* ================================
   8. SECCIÓN CONTACTO
   ================================ */
.contact-section {
    padding: 100px 20px;
    background-color: var(--bg-dark);
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px;
}

.contact-form input, 
.contact-form textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #2a1a4a;
    background-color: var(--card-bg);
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.btn-submit {
    padding: 15px;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: #4a2896;
}

.contact-info {
    max-width: 400px;
}

.contact-info h3 {
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-info p {
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-whatsapp {
    display: inline-block;
    padding: 15px 25px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

/* ================================
   9. FOOTER
   ================================ */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #050308;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #1a132f;
}

/* ================================
   10. DISEÑO RESPONSIVO (MÓVILES)
   ================================ */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
        backdrop-filter: blur(15px); 
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .lang-dropdown {
        position: relative;
        box-shadow: none;
        border: none;
        background-color: transparent;
        display: flex; 
        align-items: center;
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        max-width: 220px;
    }
    
    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .price-box {
        width: calc(50% - 15px);
    }
    
    .single-plan-container {
        padding: 20px;
    }
    
    .featured-price {
        transform: scale(1);
    }
    
    .featured-price:hover {
        transform: translateY(-5px);
    }
}