/* Variables corporativas Elysium Soluciones */
:root {
    --primary: #1BA098;      /* Cyan/Turquesa del logo */
    --primary-dark: #0B5D69; /* Tono oscuro del logo */
    --bg-dark: #151617;      /* Fondo principal */
    --bg-card: #1E2022;      /* Fondo de tarjetas */
    --text-main: #E2E8F0;    /* Texto claro legible */
    --text-muted: #94A3B8;
    --wa-green: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* Tipografía y Textos */
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: #FFFFFF; font-weight: 800; }
.highlight { color: var(--primary); text-shadow: 0 0 15px rgba(27, 160, 152, 0.4); }
.section-title { font-size: 2.5rem; margin-bottom: 20px; }
.section-title.center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Botones */
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #FFF; padding: 12px 30px; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-block; box-shadow: 0 4px 15px rgba(27, 160, 152, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(27, 160, 152, 0.5); }
.btn-primary-large { background: var(--primary); color: #FFF; padding: 15px 40px; border-radius: 8px; font-weight: 700; font-size: 1.1rem; border: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(27, 160, 152, 0.3); }
.btn-primary-large:hover { transform: scale(1.05); background: var(--primary-dark); }
.btn-primary-outline { border: 2px solid var(--primary); color: var(--primary); padding: 8px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-primary-outline:hover { background: var(--primary); color: #FFF; box-shadow: 0 0 15px rgba(27, 160, 152, 0.4); }

/* Navegación */
nav { position: fixed; width: 100%; top: 0; background: var(--bg-dark); z-index: 1000; transition: all 0.3s ease; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; max-width: 1300px; margin: 0 auto; }
.logo img { height: 60px; mix-blend-mode: lighten; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 35px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hero Slider */
.hero-section { position: relative; height: 100vh; overflow: hidden; display: flex; align-items: center; background-color: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; padding: 0 10%; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.35; filter: grayscale(50%) contrast(120%); transition: transform 6s ease-out; }
.slide.active .slide-bg { transform: scale(1.05); }
.slide-content { max-width: 700px; transform: translateY(30px); transition: transform 1s; position: relative; z-index: 2; }
.slide.active .slide-content { transform: translateY(0); }
.tech-badge { background: rgba(27, 160, 152, 0.1); color: var(--primary); padding: 6px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(27, 160, 152, 0.3); display: inline-block; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.slide-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.slide-content p { font-size: 1.25rem; color: #E2E8F0; margin-bottom: 35px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Controles de Slider */
.slider-controls { position: absolute; bottom: 40px; left: 10%; z-index: 10; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.2); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.dot.active { background: var(--primary); width: 30px; border-radius: 10px; box-shadow: 0 0 10px var(--primary); }

/* Sobre Nosotros */
.about-section { padding: 120px 0; background: var(--bg-card); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-image img { width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); object-fit: cover; }
.lead-text { font-size: 1.2rem; color: #FFF; margin-bottom: 15px; font-weight: 300; }
.mission-vision { display: flex; gap: 20px; margin-top: 40px; }
.mv-box { background: rgba(255,255,255,0.03); padding: 25px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.mv-box i { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.mv-box h4 { margin-bottom: 10px; }
.mv-box p { font-size: 0.9rem; color: var(--text-muted); }

.pillars-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.pillar-card { background: rgba(255,255,255,0.02); padding: 30px; border-radius: 15px; border: 1px solid rgba(27, 160, 152, 0.1); transition: all 0.3s; }
.pillar-card:hover { transform: translateY(-5px); background: rgba(27, 160, 152, 0.05); border-color: var(--primary); }
.pillar-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }
.pillar-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pillar-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Servicios (Lo que hacemos) */
.services-section { padding: 120px 0; background: var(--bg-dark); text-align: center; }
.services-header p { max-width: 600px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }
.services-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }
.srv-card { background: var(--bg-card); padding: 40px 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); text-align: left; transition: all 0.3s; position: relative; overflow: hidden; }
.srv-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(27, 160, 152, 0.15); border-color: rgba(27, 160, 152, 0.3); }
.srv-icon { width: 60px; height: 60px; background: rgba(27, 160, 152, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }
.srv-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.srv-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Portafolio Grid */
.portfolio-section { padding: 100px 0; background: var(--bg-card); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.port-card { background: var(--bg-dark); border-radius: 16px; padding: 0; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; position: relative; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.port-card:hover { border-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.5); transform: translateY(-5px); }
.highlight-card { border: 1px solid rgba(27, 160, 152, 0.4); background: linear-gradient(180deg, rgba(27,160,152,0.05) 0%, var(--bg-dark) 100%); }
.port-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.05); transition: transform 0.4s ease; }
.port-card:hover .port-img { transform: scale(1.05); }
.port-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; z-index: 2; background: var(--bg-dark); }
.port-content h3 { font-size: 1.4rem; margin-bottom: 10px; color: #FFF; }
.port-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.port-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.port-tech span { background: rgba(255,255,255,0.05); color: #cbd5e1; font-size: 0.75rem; padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.port-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.port-link:hover { color: #FFF; }

/* Testimonios */
.testimonials-section { padding: 120px 0; background: var(--bg-dark); }
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.test-card { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); position: relative; }
.quote-icon { font-size: 2rem; color: var(--primary); opacity: 0.3; margin-bottom: 20px; display: block; }
.test-text { font-size: 1rem; color: var(--text-main); font-style: italic; margin-bottom: 25px; line-height: 1.6; }
.test-card h4 { color: #FFF; margin-bottom: 5px; }
.test-role { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

/* CTA Section */
.cta-section { padding: 100px 0; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-card) 100%); border-top: 1px solid rgba(27, 160, 152, 0.3); border-bottom: 1px solid rgba(27, 160, 152, 0.3); }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-section p { font-size: 1.2rem; color: #e2e8f0; max-width: 600px; margin: 0 auto; }

/* Footer */
.main-footer { 
    background: var(--bg-dark); /* Esto asegura que use el tono exacto del logo */
    padding: 80px 0 20px; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { max-width: 220px; margin-bottom: 20px; mix-blend-mode: lighten; } 
.brand-col p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 25px; position: relative; display: inline-block; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--primary); }
.links-col ul { list-style: none; }
.links-col li { margin-bottom: 12px; }
.links-col a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.links-col a:hover { color: var(--primary); }
.contact-col p { color: var(--text-muted); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.contact-col i { color: var(--primary); }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; color: #FFF; margin-right: 10px; transition: all 0.3s; text-decoration: none; }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.startup-logos { display: flex; flex-direction: column; gap: 15px; }
.startup-logos img { max-height: 40px; width: auto; object-fit: contain; filter: grayscale(100%) opacity(0.7); transition: all 0.3s; background: rgba(255,255,255,0.9); padding: 5px 10px; border-radius: 6px; }
.startup-logos a:hover img { filter: grayscale(0%) opacity(1); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; color: var(--text-muted); font-size: 0.85rem; }

/* Botón Flotante WhatsApp */
.wa-float-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: var(--wa-green); color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); cursor: pointer; z-index: 1000; transition: transform 0.3s ease; }
.wa-float-btn:hover { transform: scale(1.1); }

/* Modal WhatsApp y Dropdown */
.wa-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.wa-modal-box { background: var(--bg-card); width: 90%; max-width: 450px; border-radius: 16px; padding: 30px; position: relative; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: modalPop 0.3s ease-out; }
@keyframes modalPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-modal { position: absolute; top: 15px; right: 20px; color: var(--text-muted); font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: #FFF; }
.modal-header { text-align: center; margin-bottom: 25px; }
.modal-header i { font-size: 2.5rem; color: var(--wa-green); margin-bottom: 10px; }
.modal-header h3 { font-size: 1.4rem; color: #FFF; margin-bottom: 5px; }
.modal-header p { font-size: 0.85rem; color: var(--text-muted); }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
#wa-contact-form input, #wa-contact-form textarea { width: 100%; padding: 12px 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #FFF; font-family: 'Inter', sans-serif; outline: none; margin-bottom: 15px; transition: border 0.3s; }
#wa-contact-form input:focus, #wa-contact-form textarea:focus { border-color: var(--primary); }
.btn-wa-submit { width: 100%; background: var(--wa-green); color: #FFF; padding: 14px; border: none; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.3s; }
.btn-wa-submit:hover { background: #1da851; }

.custom-dropdown-container { position: relative; width: 100%; margin-bottom: 15px; }
.custom-dropdown-header { width: 100%; padding: 12px 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #FFF; font-family: 'Inter', sans-serif; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: border 0.3s; }
.custom-dropdown-header:hover { border-color: var(--primary); }
.custom-dropdown-body { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; margin-top: 5px; z-index: 10; box-shadow: 0 10px 25px rgba(0,0,0,0.8); overflow: hidden; }
.custom-dropdown-body.show { display: block; animation: modalPop 0.2s ease-out; }

#dropdown-search { width: 100%; border: none; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 0; margin-bottom: 0; background: rgba(255,255,255,0.02); }
#dropdown-list { list-style: none; max-height: 180px; overflow-y: auto; margin: 0; padding: 0; }
#dropdown-list::-webkit-scrollbar { width: 6px; }
#dropdown-list::-webkit-scrollbar-thumb { background: rgba(27, 160, 152, 0.5); border-radius: 10px; }
#dropdown-list li { padding: 10px 15px; cursor: pointer; display: flex; align-items: center; gap: 10px; color: #E2E8F0; transition: background 0.2s; font-size: 0.95rem; }
#dropdown-list li:hover { background: rgba(27, 160, 152, 0.2); color: var(--primary); }

.form-error-msg { color: #ff4d4f; font-size: 0.85rem; margin-bottom: 15px; display: none; text-align: center; font-weight: 600; background: rgba(255, 77, 79, 0.1); padding: 10px; border-radius: 8px; border: 1px solid rgba(255, 77, 79, 0.3); }




/* =========================================
   DISEÑO RESPONSIVE Y OPTIMIZACIÓN MÓVIL
   ========================================= */

/* Menú Móvil Toggle (Oculto en Escritorio) */
.menu-toggle { display: none; color: #FFF; font-size: 1.8rem; cursor: pointer; }

@media (max-width: 900px) {
    /* Activar Menú Hamburguesa */
    .menu-toggle { display: block; }
    
    /* Configuración del Menú Desplegable */
    .nav-links { 
        position: absolute; 
        top: 100%; 
        left: -100%; /* Oculto fuera de pantalla por defecto */
        width: 100%; 
        background: var(--bg-dark); 
        flex-direction: column; 
        padding: 30px 0; 
        transition: left 0.3s ease; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.5); 
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.active { left: 0; } /* Clase que añade JavaScript al hacer clic */
    
    .slide-content h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .mission-vision { flex-direction: column; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .startup-logos { align-items: center; }
    
    /* Reducción de espaciados masivos para tablets/móviles */
    .about-section, .services-section, .portfolio-section, .testimonials-section, .cta-section { padding: 80px 0; }
}

@media (max-width: 600px) {
    /* Ajuste de tipografía general móvil */
    .section-title { font-size: 2rem; }
    .slide-content h1 { font-size: 1.8rem; }
    
    /* Evitar desbordamiento en teléfonos pequeños: Forzar 1 columna */
    .portfolio-grid, .services-bento, .test-grid, .pillars-grid { grid-template-columns: 1fr; }
    
    /* Ajuste de Formularios Modal en Móvil */
    .form-row { flex-direction: column; gap: 0; }
    
    /* Espaciados aún más reducidos para pantallas pequeñas */
    .about-section, .services-section, .portfolio-section, .testimonials-section, .cta-section { padding: 60px 0; }
    
    /* Ajuste de Logo para dar más espacio al botón del menú */
    .logo img { height: 45px; }
}


