/* Variables */
:root {
    --primary-color: #FF6B6B; /* Coral Vibrante (Acento/Fuego) */
    --secondary-color: #1D2B53; /* Azul Profundo (Espacio/Texto Principal) */
    --background-page: #EAE6E1;
    --hero-bg-dark: #1F2E49; /* Fondo de la Hero Section */
    --background-light: #F4F4F9; 
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #777777;
    --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.05);
    --section-padding-y: 60px;
}

/* Base y Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-page);
    padding-top: 0; 
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

h1, h2, h3 {
    line-height: 1.1;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

/* --- Componentes --- */
.btn {
    display: inline-block;
    padding: 12px 30px; 
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Botón general - Ahora usa primary-color */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #e85a5a;
    border-color: #e85a5a;
    transform: translateY(-1px);
}

/* --- HEADER Y NAVEGACIÓN --- */

.header {
    background-color: var(--background-page);
    padding-top: 40px; 
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; 
    padding-bottom: 30px;
}

.logo {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 20;
}
.logo span {
    font-size: 0.8em;
}

nav {
    margin-left: auto; 
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    z-index: 10;
}
.nav-menu a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 20;
    color: var(--secondary-color);
    font-size: 24px;
}

/* --- SECCIÓN HERO (Cohete) --- */
.hero {
    background-color: var(--hero-bg-dark);
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 0; 
}

.hero-content-wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 0 50px 0; 
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem; 
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0 auto 20px auto;
    max-width: 700px;
    line-height: 1.1;
    color: var(--white);
}

.hero-title span { 
     color: var(--primary-color);
     font-weight: 300;
}
.hero-title strong {
    font-weight: 700; 
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.hero .btn-hero {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
}
.hero .btn-hero:hover {
    background-color: #e85a5a;
    border-color: #e85a5a;
}

/* --- Estructura y Estilos del Cohete (Se mantiene) --- */
.rocket-container {
    position: relative;
    width: 100%;
    height: 400px; 
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
}
.rocket-shape {
    position: absolute;
    bottom: 0; 
    width: 150px; 
    height: 350px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
.rocket-cone {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid var(--primary-color);
    margin-bottom: -1px;
}
.rocket-body {
    width: 80px;
    height: 200px;
    background-color: var(--white);
    border-radius: 5px;
    position: relative;
}
.rocket-window {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}
.rocket-fin-left, .rocket-fin-right {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 100px solid transparent;
    border-bottom: 50px solid transparent;
    bottom: 0;
}
.rocket-fin-left {
    border-right: 70px solid var(--primary-color);
    left: -70px;
}
.rocket-fin-right {
    border-left: 70px solid var(--primary-color);
    right: -70px;
}
.rocket-flame-smoke {
    position: absolute;
    bottom: -50px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    z-index: 5;
}
.flame {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50% 50% 10% 10%;
    box-shadow: 0 0 15px var(--primary-color);
    transform: scaleY(0.8);
    animation: pulse-flame 0.4s infinite alternate;
}
.smoke-puff-base {
    width: 100%;
    height: 200px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.1;
    box-shadow: 0 0 50px 30px var(--white);
    animation: pulse-smoke 2s infinite alternate;
    margin-top: -30px;
}
@keyframes pulse-flame {
    0% { transform: scale(1, 0.8); opacity: 1; }
    100% { transform: scale(1.1, 1.2); opacity: 0.9; }
}
@keyframes pulse-smoke {
    0% { transform: scale(0.95); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.2; }
}

/* --- ESTILOS GENERALES Y TEMÁTICOS DE SECCIONES --- */
.section-secondary {
    background-color: var(--white);
    padding: var(--section-padding-y) 0;
    text-align: center;
    border-radius: 30px;
    margin: 40px auto;
    max-width: 1100px;
    box-shadow: var(--shadow-subtle);
}

.section-secondary h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* --- SECCIÓN DE SERVICIOS: ETAPAS DE LANZAMIENTO (TABS) --- */
.launch-stages {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.stage-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    position: relative;
    margin-bottom: 30px;
}
.stage-nav::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: var(--text-light);
    z-index: 1;
}
.stage-step {
    position: relative;
    z-index: 2;
    cursor: pointer;
    text-align: center;
    flex: 1;
}
.stage-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--background-page);
    border: 3px solid var(--text-light);
    color: var(--text-dark);
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 5px var(--white);
    animation: none;
}
.stage-step.active .stage-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 5px var(--white), 0 0 10px var(--primary-color);
    transform: scale(1.1);
}

/* Contenido de la Card (Modernizado) */
.stage-content {
    background: linear-gradient(45deg, var(--hero-bg-dark), var(--secondary-color)); 
    color: var(--white);
    padding: 40px; 
    border-radius: 15px;
    text-align: left;
    margin-top: 20px;
    min-height: 250px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.stage-content h4 {
    color: var(--primary-color);
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    text-transform: uppercase;
    font-weight: 800;
}
.stage-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px; 
}

/* --- Estilos para listas dentro de STAGE-CONTENT --- */
.stage-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stage-content li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--white);
    display: flex;
    align-items: flex-start;
}

.stage-content li i {
    color: var(--primary-color); 
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}
/* ------------------------------------------------------------- */


.content-item { display: none; }
.content-item.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ESTILOS PARA LA SECCIÓN DE BENEFICIOS (Características) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
    text-align: left;
}

.benefit-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.benefit-card h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* --- ESTILOS PARA FAQ (Sección SEO/Objeciones) --- */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.faq-item {
    border: 1px solid var(--text-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--background-light);
}

.faq-question {
    background-color: var(--white);
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.faq-question:hover {
    background-color: var(--background-page);
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.faq-answer.open {
    max-height: 200px; 
    padding: 15px 25px 20px 25px;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}


/* --- SECCIÓN CONTACTO (EL CONTEO FINAL) --- */
.contacto {
    background-color: var(--secondary-color); 
    padding: 80px 0; 
    text-align: center;
    color: var(--white);
}

.contacto h3 {
    color: var(--primary-color); 
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.contact-content {
    background: none; 
    padding: 0;
    max-width: 700px;
    margin: 30px auto;
    box-shadow: none;
}

.contact-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-content .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--hero-bg-dark); 
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0; 
    text-align: center;
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--primary-color); 
    transform: scale(1.1);
}

.footer-logo {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}


/* ... (El CSS anterior se mantiene igual hasta el responsive) ... */


/* --- RESPONSIVE / AJUSTES MÓVILES --- */
@media (max-width: 900px) {

    .menu-toggle { display: block; }
    
    /* MODIFICACIÓN CLAVE: CAMBIAR DE FIXED A ABSOLUTE Y USAR MAX-HEIGHT */
    .nav-menu { 
        display: flex; /* Mostrar siempre el flex, controlar visibilidad con open */
        flex-direction: column;
        
        /* Posicionamiento relativo al header.container */
        position: absolute; 
        top: 100%; /* Empieza justo debajo del header */
        right: 0; 
        width: 100%; /* Cubre el ancho del container */
        max-width: 300px;
        
        background-color: var(--secondary-color); 
        padding: 0; /* Padding se maneja en li/a */
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);
        z-index: 15;
        
        /* Controla la altura para el efecto de despliegue */
        max-height: 0; 
        overflow: hidden; /* Oculta el contenido cuando max-height es 0 */
        transition: max-height 0.5s ease-in-out; 
        
        border-radius: 0 0 8px 8px; /* Bordes redondeados inferiores */
    }

    .nav-menu.open {
        max-height: 300px; /* Suficiente altura para que se muestre */
        padding: 10px 0; /* Añadimos padding vertical solo al abrir */
    }
    
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        padding: 10px 20px;
        color: var(--white); /* Texto en blanco sobre fondo azul */
        display: block;
        text-align: left;
    }
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-color);
    }
    /* FIN MODIFICACIÓN CLAVE */

    .header .container { padding: 10px 0; position: relative; }

    /* Responsive de Etapas (Se mantienen) */
    .stage-nav {
        flex-direction: column;
        padding: 0;
    }
    /* ... (Resto del CSS responsive se mantiene igual) ... */
}