/* --- RESET Y ESTILOS BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- HEADER Y LOGO --- */
header {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    padding: 5px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 4px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #4ade80;
    white-space: nowrap;
    line-height: 1;
}

/* --- NAVEGACIÓN Y SUBRAYADO ANIMADO --- */
nav {
    display: flex;
    align-items: center;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #94a3b8;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #4ade80;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

nav a:hover::after, 
nav a.active::after {
    width: 100%;
}

nav a:hover, 
nav a.active {
    color: #4ade80;
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #4ade80;
    border-radius: 3px;
}

/* --- TARJETAS GLASSMORPHISM --- */
.hero-carousel, .text-section, .content-card, .coming-soon-box, .download-box {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Títulos principales en verde brillante */
.carousel-slide h1, 
.content-card h1, 
.text-section h2, 
.coming-soon-box h2, 
.download-info h3, 
.faq-item h3 {
    color: #4ade80;
}

/* --- SECCIÓN HERO & CARRUSEL --- */
.hero-carousel {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 50px 6%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.carousel-container {
    flex: 1;
    min-width: 280px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.4s ease-in-out;
}

.carousel-slide.active { display: flex; }
.carousel-slide h1 { font-size: 2.3rem; margin-bottom: 15px; }
.carousel-slide p, .text-section p, .text-section ul, .content-card > p, .faq-item p, .requirements-list, .coming-soon-box p { color: #94a3b8; }
.carousel-slide p { font-size: 1.1rem; margin-bottom: 25px; }

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #4ade80;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.carousel-btn:hover { background: #4ade80; color: #0f172a; }
.carousel-dots, .download-action { display: flex; align-items: center; }
.carousel-dots { gap: 8px; }

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active, .badge-soon { background: #4ade80; }

.hero-image {
    flex: 0 0 380px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-mockup {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease-in-out;
}

/* --- BOTONES Y COMPONENTES --- */
.btn-primary, .badge-soon {
    color: #0f172a;
    font-weight: bold;
    text-decoration: none;
}

.btn-primary {
    display: inline-block;
    background: #4ade80;
    padding: 12px 25px;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.btn-primary:hover, .download-btn:hover { opacity: 0.85; }

/* --- SECCIONES DE TEXTO Y CONTENIDO --- */
.text-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    border-radius: 16px;
}

.text-section h2 { font-size: 1.8rem; margin-bottom: 20px; }
.text-section p { font-size: 1.05rem; margin-bottom: 20px; }

.text-section ul, .requirements-list {
    list-style: disc;
    margin-left: 25px;
    font-size: 1.05rem;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.content-card {
    margin: 40px 8%;
    padding: 50px;
    border-radius: 16px;
}

.content-card h1 { font-size: 2.2rem; margin-bottom: 15px; }
.content-card > p { font-size: 1.1rem; margin-bottom: 40px; }

/* --- SECCIÓN DE AYUDA / FAQ --- */
.faq-container { display: flex; flex-direction: column; gap: 25px; }
.faq-item { border-left: 4px solid #4ade80; padding-left: 20px; }
.faq-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.faq-item p, .requirements-list { font-size: 1rem; }

/* --- SECCIÓN DE DESCARGA CON DOS COLUMNAS --- */
.download-section { max-width: 900px; }

.download-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
}

.download-box-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-info h3 { font-size: 1.3rem; margin-bottom: 5px; }

.version-tag {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.download-action-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.file-size { font-size: 0.85rem; color: #64748b; }

.download-illustration {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-arrow-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    animation: floatArrow 3s ease-in-out infinite alternate;
}

@keyframes floatArrow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* --- SECCIÓN COMING SOON --- */
.coming-soon-box {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 40px;
    text-align: center;
    border-radius: 16px;
}

.badge-soon {
    display: inline-block;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coming-soon-box h2 { font-size: 1.5rem; margin-bottom: 10px; }
.coming-soon-box p { font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* --- CONTENEDOR ORIGAMI --- */
.origami-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.origami-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(5, 150, 105, 0.25));
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    opacity: 0.7;
}

/* --- FOOTER --- */
footer {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: rgba(15, 23, 42, 0.9);
    color: #64748b;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MEDIA QUERIES RESPONSIVAS --- */
@media (max-width: 900px) {
    .download-container-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .download-action-area {
        justify-content: center;
        flex-wrap: wrap;
    }

    .download-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: right 0.4s ease-in-out;
    }
    
    nav.active { right: 0; }
    nav a { margin: 0; font-size: 1.3rem; }
    
    .hero-carousel { width: 95%; margin: 20px auto; padding: 30px 20px; text-align: center; }
    .hero-image { display: none; }
    .content-card { margin: 20px 4%; padding: 25px; }
}