/* --- RESET Y ESTILOS BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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 DESTACADAS GLASSMORPHISM (Carrusel, Descargas y CADA Pregunta FAQ) --- */
.hero-carousel, 
.download-section, 
.faq-item {
    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 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

/* --- SECCIÓN HERO & CARRUSEL --- */
.hero-carousel {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 50px 6%;
    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 { font-size: 1.1rem; margin-bottom: 25px; color: #94a3b8; }

.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;
}

/* --- TÍTULOS Y COLORES CORPORATIVOS --- */
.carousel-slide h1, 
.content-card h1, 
.text-section h2, 
.coming-soon-box h2, 
.download-info h3, 
.faq-item h3,
.re-green,
.how-it-works-section h2{
    
    color: #4ade80;
}

#hero-main {
    text-align: center;
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 20px;
}

#hero-dynamic {
    transition: opacity 0.3s ease-in-out;
    display: inline-block;
}

/* --- SECCIONES FLUIDAS CON FONDO A TODO EL ANCHO --- */
.text-section, 
.content-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 8%;
    margin: 40px 0;
}

.text-section h2 { font-size: 1.8rem; margin-bottom: 20px; }
.text-section p, .text-section ul, .content-card > p, .faq-item p, .requirements-list, .coming-soon-box p { color: #94a3b8; }
.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 h1 { font-size: 2.2rem; margin-bottom: 15px; }
.content-card > p { font-size: 1.1rem; margin-bottom: 30px; }

/* --- SECCIÓN "CÓMO LO LOGRAMOS" --- */
.how-it-works-section {
    width: 100%;
    text-align: center;
    padding: 50px 8%;
    background: rgba(255, 255, 255, 0.03);
    margin: 40px 0;
}

.section-intro {
    font-size: 1.1em;
    color: #94a3b8;
    max-width: 800px;
    margin: 10px auto 35px auto;
    line-height: 1.6;
}

.tech-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.3);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tech-icon { font-size: 1.8em; }
.tech-card h3 { margin: 0; font-size: 1.25em; color: #4ade80; }
.tech-card p { color: #94a3b8; font-size: 0.95em; line-height: 1.5; margin: 0; }

/* --- SECCIÓN DE AYUDA / FAQ (Preguntas Individuales) --- */
.faq-container { 
    display: flex; 
    flex-direction: column; 
    gap: 18px; /* Espacio entre cada tarjeta de pregunta */
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.faq-item { 
    padding: 24px;
    border-left: 5px solid #4ade80; /* Mantiene la barra verde al costado */
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px); /* Pequeño efecto al pasar el cursor */
}

.faq-item h3 { 
    font-size: 1.2rem; 
    margin-bottom: 8px; 
    color: #4ade80;
}

.faq-item p { 
    font-size: 1rem; 
    color: #94a3b8;
    margin: 0;
}

/* --- SECCIÓN DE DESCARGA (CON TARJETA) --- */
.download-section { 
    max-width: 900px; 
    margin: 50px auto;
    padding: 40px;
}

.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;
}

/* --- 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 { opacity: 0.85; }

/* --- SECCIÓN COMING SOON Y AVISO IMPORTANTE (SIN FONDO EXTENDIDO) --- */
.coming-soon-box {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    padding: 40px;
    text-align: center;
    border-radius: 16px;
    max-width: 900px;
    margin: 40px auto;
}

.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 ANIMADO --- */
.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);
}

/* --- ANIMACIONES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatArrow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* --- 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; }
    .download-section, .faq-card-container { padding: 25px 20px; }
}

/* --- ESTILOS DEL FORMULARIO DE SUGERENCIAS Y REPORTES --- */
.feedback-card {
    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 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 30px;
}

.feedback-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.feedback-form label {
    color: #4ade80;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form select option {
    background-color: #0f172a;
    color: #f8fafc;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

/* --- CONTROL DE ENLACES Y VISITADOS --- */
a, a:visited {
    color: inherit; /* Mantiene el color original definido en el elemento */
}

/* Estilo para los enlaces de redes sociales en el footer y tarjeta */
.social-buttons a, 
.social-buttons a:visited {
    color: #f8fafc;
    text-decoration: none;
}

.social-buttons a:hover {
    border-color: #4ade80;
    color: #4ade80;
}

.footer-socials a, 
.footer-socials a:visited {
    color: #94a3b8;
    text-decoration: none;
}

.footer-socials a:hover {
    color: #4ade80;
}