/* ========= VARIABLES & RESET ========= */
:root {
    --bg-dark: #101010;
    --bg-light: #181818;
    --text-primary: #F0F0F0;
    --text-secondary: #A0A0A0;
    --accent-color: #00A9FF; /* Azul Eléctrico */
    --accent-glow: rgba(0, 169, 255, 0.4);
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-primary); font-family: var(--font-body); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }

.logo img {
    height: 50px;
}
    
/* ========= HEADER & NAV ========= */
.main-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    
    background-color: #060608; 
    border-bottom: 1px solid #2a2a2a;
    
    z-index: 100;
    transition: background-color 0.3s;
}
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: var(--text-primary); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

/* Language Switcher */
.lang-switcher button { background: none; border: none; color: var(--text-secondary); font-size: 1rem; cursor: pointer; padding: 5px; font-weight: 600; }
.lang-switcher button.active { color: var(--accent-color); }
.lang-switcher span { color: var(--text-secondary); margin: 0 5px; }

/* ========= HERO SECTION ========= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    background-image: url('img/hero.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ahora sí funcionará. Ajusta este valor si quieres más o menos oscuridad. */
    background-color: rgba(16, 16, 16, 0.80); 
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 800px; 
}

.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.hero .accent-text { color: var(--accent-color); }
.hero p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; }
.cta-button { background-color: var(--accent-color); color: #fff; padding: 15px 30px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; box-shadow: 0 0 15px var(--accent-glow); border: none; cursor: pointer; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 0 25px var(--accent-glow); }

/* ========= SERVICES SECTION ========= */
.services-section, .how-section, .contact-section { padding: 100px 0; }
.services-section h2, .how-section h2, .contact-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-card { 
    background-color: var(--bg-light); 
    border-radius: 10px; 
    border: 1px solid #2a2a2a; 
    transition: all 0.3s ease; 
    text-align: center; 
    overflow: hidden; 
}
.service-card:hover { transform: translateY(-10px); border-color: var(--accent-color); }

.service-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.service-card-content { padding: 30px; }
.service-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.service-card p { color: var(--text-secondary); }


/* ========= HOW IT WORKS (TIMELINE) ========= */
.timeline { position: relative; max-width: 600px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background-color: #2a2a2a; top: 0; bottom: 0; left: 40px; }
.timeline-item { padding: 10px 40px 10px 80px; position: relative; margin-bottom: 50px; }
.timeline-number { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background-color: var(--bg-light); border: 2px solid var(--accent-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; z-index: 1; }
.timeline-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.timeline-content p { color: var(--text-secondary); }

/* ========= CONTACT SECTION ========= */
.contact-form { max-width: 500px; margin: 0 auto; display: flex; gap: 15px; }
.contact-form input { flex-grow: 1; padding: 15px; border-radius: 5px; border: 1px solid #333; background-color: var(--bg-light); color: var(--text-primary); font-size: 1rem; }
.contact-form input:focus { outline: 1px solid var(--accent-color); }

/* ========= STRATEGY SECTION STYLES ========= */
.strategy-section {
    background-color: var(--bg-light);
    padding: 100px 0;
    text-align: center;
}

.strategy-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.strategy-card {
    background-color: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.strategy-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.strategy-card-content {
    padding: 30px;
    flex-grow: 1;
}

.strategy-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.strategy-cta {
    margin-top: 60px;
}

/* ========= FOOTER ========= */
.main-footer { background-color: var(--bg-light); text-align: center; padding: 20px 0; margin-top: 60px; color: var(--text-secondary); }

/* ========= RESPONSIVE DESIGN ========= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .contact-form { flex-direction: column; }
}
/* ========= PRICING PAGE STYLES ========= */
.pricing-section, .faq-section {
    padding: 100px 0;
}

/* Interruptor Mensual/Anual */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
    font-weight: 600;
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--accent-color);
}
input:checked + .slider:before {
    transform: translateX(26px);
}

/* Cuadrícula de Precios */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background-color: var(--bg-light);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-10px);
}
.pricing-card.highlighted {
    border-color: var(--accent-color);
    border-width: 2px;
    transform: scale(1.05);
}
.popular-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}
.plan-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
}
.price-tag {
    margin-bottom: 30px;
}
.price {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.period {
    color: var(--text-secondary);
    font-size: 1rem;
}
.features-list li {
    margin-bottom: 15px;
    font-size: 0.9rem; /* Un poco más pequeño que el texto normal */
    color: var(--text-secondary); /* Un tono más suave para mejor jerarquía */
}
.features-list li {
    margin-bottom: 15px;
}

/* Sección de FAQ */
.faq-section {
    background-color: var(--bg-light);
}
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-grid details {
    background-color: var(--bg-dark);
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 20px;
}
.faq-grid summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 1.2rem;
}
.faq-grid p {
    margin-top: 15px;
    color: var(--text-secondary);
}
/* ========= PRICING PAGE STYLES (CORREGIDO Y MEJORADO) ========= */
.pricing-section, .faq-section {
    padding: 100px 0;
}
.pricing-section .section-subtitle {
    margin-bottom: 40px;
}

/* Interruptor Mensual/Anual */
.billing-toggle { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 60px; font-weight: 600; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(26px); }

/* Cuadrícula de Precios */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; }
.pricing-card { background-color: var(--bg-light); border: 1px solid #2a2a2a; border-radius: 10px; padding: 40px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; position: relative; display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.pricing-card.highlighted { border-color: var(--accent-color); border-width: 2px; transform: scale(1.05); }
.popular-badge { background-color: var(--accent-color); color: white; font-size: 0.8rem; font-weight: 700; padding: 5px 15px; border-radius: 20px; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); }
.plan-description { color: var(--text-secondary); margin-bottom: 25px; min-height: 40px; }
.price-tag { margin-bottom: 30px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.price-tag.custom-price { min-height: 108px; /* Altura fija para alinear el botón */ }
.price { font-size: 3.5rem; font-weight: 700; font-family: var(--font-heading); }
.period { color: var(--text-secondary); font-size: 1rem; }
.pricing-card .cta-button { width: 100%; text-decoration: none; display: block; } /* Botones arreglados */
.features-list { list-style: none; padding: 0; text-align: left; margin-top: 30px; }
.features-list li { margin-bottom: 15px; font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: center; }
.check-icon { color: var(--accent-color); margin-right: 10px; font-size: 1.1rem; }

/* Sección FAQ Mejorada */
.faq-section { background-color: var(--bg-dark); border-top: 1px solid #2a2a2a; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--bg-light); border-radius: 5px; margin-bottom: 10px; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 1.2rem; padding: 20px; position: relative; }
.faq-item summary::after { /* Flecha para indicar que se puede abrir */ content: '↓'; position: absolute; right: 20px; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin: 0 20px 20px; color: var(--text-secondary); border-top: 1px solid #2a2a2a; padding-top: 20px; }

.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* 2. Estilos para el botón de hamburguesa (el que se dibuja bien) */
.mobile-nav-toggle {
    display: none; /* Oculto en escritorio por defecto */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 0;
    padding: 0;
    z-index: 2000;
    cursor: pointer;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* 3. Animación de la hamburguesa a 'X' */
.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* 4. Estilos responsivos para móvil (usando la versión que sí funcionaba) */
@media (max-width: 768px) {
    /* Mostramos el botón de hamburguesa */
    .mobile-nav-toggle {
        display: flex;
    }

    /* Ocultamos el menú de escritorio */
    .nav-links {
        position: fixed;
        /* Usamos la versión de posicionamiento que funcionaba en Chrome */
        top: 0;
        bottom: 0;
        left: 30%;
        right: 0;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 4rem;

        background: rgba(16, 16, 16, 0.95);
        -webkit-backdrop-filter: blur(10px); /* Para efecto en Safari */
        backdrop-filter: blur(10px);
        
        /* Ocultamos con transform y opacity para la mejor compatibilidad */
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease-out, opacity 0.4s ease-out;
        z-index: 1000;
    }

    /* La regla que hace visible el menú al hacer clic */
    .nav-links[data-visible="true"] {
        transform: translateX(0%);
        opacity: 1;
        visibility: visible;
    }

    .contact-form {
        flex-direction: column;
    }
}