/* ==========================================================================
   PLANTILLA: NEON AGENCY - HIGH PERFORMANCE THEME
   VERSIÓN: 1.1 (Con Portafolio)
   ========================================================================== */

/* --- 1. CONFIGURACIÓN GLOBAL (EDITA AQUÍ TUS COLORES) --- */
:root {
    /* Color Principal (Fondo Oscuro) */
    --bg-dark: #0a192f;        
    /* Color Secundario (Tarjetas) */
    --bg-secondary: #112240;   
    
    /* ¡CAMBIA ESTE COLOR PARA CAMBIAR TODO EL TEMA! */
    --primary-color: #64ffda;  /* Turquesa Neón */
    
    /* Gradiente Automático */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, #48c6ef 100%);
    
    /* Textos */
    --text-light: #e6f1ff;     
    --text-muted: #8892b0;     
    --white: #ffffff;
    
    /* Animaciones */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- 2. ESTILOS BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark); 
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* Fondo Partículas */
#particles-js {
    position: fixed; width: 100%; height: 100%; top: 0; left: 0;
    z-index: -1; background-color: transparent; 
}
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; pointer-events: none;
}
.text-center { text-align: center; }

/* --- 3. HEADER & NAVEGACIÓN --- */
.main-header {
    background: rgba(10, 25, 47, 0.85); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); padding: 0.8rem 0;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; font-size: 0; }
.logo img { height: 45px; width: auto; display: block; transition: 0.3s; }
.logo:hover img { transform: scale(1.1); filter: drop-shadow(0 0 5px rgba(255,255,255,0.3)); }

.nav-list { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-list a { color: var(--text-light); font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.nav-list a:hover { color: var(--primary-color); }

.btn-nav {
    border: 1px solid var(--primary-color); color: var(--primary-color) !important;
    padding: 8px 22px; border-radius: 4px; transition: 0.3s;
}
.btn-nav:hover { background: rgba(100, 255, 218, 0.1); }
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary-color); transition: 0.3s; }

/* --- 4. HERO SECTION --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-content { max-width: 800px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.3; margin-bottom: 25px; font-weight: 800; }
.text-highlight {
    color: var(--primary-color); text-shadow: 0 0 15px rgba(100, 255, 218, 0.25);
    display: block; margin-top: 5px;
}
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; }
.buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 35px; border-radius: 4px; font-weight: 600; transition: 0.3s; }
.btn-primary { background: var(--primary-gradient); color: var(--bg-dark); border: none; box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.5); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px -10px rgba(100, 255, 218, 0.7); }
.btn-outline { border: 2px solid var(--text-muted); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* --- 5. SERVICIOS --- */
.section-padding { padding: 100px 0; }
.section-header { margin-bottom: 60px; text-align: center; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background-color: var(--bg-secondary); padding: 40px 30px;
    border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s, box-shadow 0.4s, background-color 0.3s; will-change: transform;
}
.service-card:hover {
    transform: translateY(-10px) translateZ(0); border-color: var(--primary-color);
    background-color: #172a45; box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}
.service-card .icon {
    font-size: 3.5rem; margin-bottom: 25px; color: var(--primary-color);
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.4); transition: 0.3s;
}
.service-card:hover .icon { transform: scale(1.1) translateY(-5px); color: #fff; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); }

/* --- 6. NUEVA SECCIÓN: PORTAFOLIO --- */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.project-card {
    position: relative; border-radius: 8px; overflow: hidden; height: 300px; display: block;
    border: 1px solid rgba(255,255,255,0.05);
}
.project-image {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    transition: transform 0.5s ease;
}
.project-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
    opacity: 0; transition: all 0.3s ease;
}
.project-card:hover .project-image { transform: scale(1.1); }
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay h3 {
    color: var(--text-light); font-size: 1.5rem; margin-bottom: 5px;
    transform: translateY(20px); transition: transform 0.3s ease;
}
.project-overlay span {
    color: var(--primary-color); font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 1px; transform: translateY(20px); transition: transform 0.3s ease 0.1s;
}
.project-card:hover h3, .project-card:hover span { transform: translateY(0); }

/* --- 7. VISIÓN --- */
.premium-vision { position: relative; padding: 120px 0; overflow: hidden; }
.ambient-light {
    position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15) 0%, rgba(10, 25, 47, 0) 70%);
    border-radius: 50%; z-index: 1; pointer-events: none; animation: pulseLight 8s infinite alternate ease-in-out;
}
@keyframes pulseLight { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 0.8; } }
.vision-container { position: relative; z-index: 2; display: flex; justify-content: center; }
.glass-panel {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 60px;
    max-width: 800px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.badge {
    display: inline-block; padding: 5px 15px; border: 1px solid var(--primary-color);
    border-radius: 50px; font-size: 0.8rem; color: var(--primary-color);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px;
}
.glass-panel h2 { font-size: 3rem; line-height: 1.2; margin-bottom: 25px; }
.gradient-text {
    background: var(--primary-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; font-weight: 800;
}
.stats-row { display: flex; justify-content: center; gap: 50px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; flex-wrap: wrap; }
.stat .number { font-size: 2.5rem; font-weight: 700; color: var(--white); display: block; }
.stat .label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; }

/* --- 8. FOOTER --- */
.footer-corporate { background-color: #020c1b; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-desc { color: var(--text-muted); margin: 20px 0; max-width: 300px; line-height: 1.6; }
.footer-col h4 { margin-bottom: 25px; font-weight: 600; }
.footer-menu li { margin-bottom: 12px; list-style: none; }
.footer-menu a { color: var(--text-muted); transition: 0.3s; }
.footer-menu a:hover { color: var(--primary-color); padding-left: 5px; }
.contact-list li { margin-bottom: 15px; display: flex; gap: 10px; color: var(--text-muted); list-style: none; }
.social-links { display: flex; gap: 15px; }
.social-icon {
    display: flex; justify-content: center; align-items: center; width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: var(--text-light); transition: 0.3s;
}
.social-icon:hover { border-color: var(--primary-color); color: var(--primary-color); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; color: #555; }
.legal-links a { color: #555; margin-left: 20px; transition: 0.3s; }
.legal-links a:hover { color: var(--primary-color); }

/* --- 9. EXTRAS --- */
.hidden { opacity: 0; transform: translate3d(0, 40px, 0); }
.show { opacity: 1; transform: translate3d(0, 0, 0); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-card:nth-child(2) { transition-delay: 150ms; }
.service-card:nth-child(3) { transition-delay: 300ms; }

.cookie-container {
    position: fixed; bottom: 30px; left: 30px; width: 350px; background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(10px); border: 1px solid var(--primary-color); padding: 20px; border-radius: 10px;
    z-index: 9999; opacity: 0; transform: translateY(50px); pointer-events: none; transition: 0.5s;
}
.cookie-container.active { opacity: 1; transform: translateY(0); pointer-events: all; }
.cookie-content { display: flex; gap: 15px; align-items: start; margin-bottom: 15px; }
.cookie-icon { font-size: 2rem; color: var(--primary-color); }
.btn-cookie { width: 100%; padding: 10px; background: var(--primary-gradient); border: none; border-radius: 5px; color: var(--bg-dark); font-weight: 700; cursor: pointer; transition: 0.2s; }

/* Contact Page Styles Included */
.contact-page { min-height: 90vh; display: flex; align-items: center; justify-content: center; position: relative; padding-top: 80px; }
.contact-card { max-width: 500px; margin: 0 auto; text-align: center; padding: 50px 30px; }
.icon-header i { font-size: 4rem; color: var(--primary-color); margin-bottom: 20px; text-shadow: 0 0 20px rgba(100, 255, 218, 0.5); animation: floatIcon 3s infinite ease-in-out; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: #fff;
    padding: 15px 40px; border-radius: 50px; font-size: 1.2rem; font-weight: 700; transition: 0.3s; width: 100%;
}
.btn-whatsapp:hover { background: #20bd5a; transform: scale(1.05); }
.legal-header { padding: 150px 0 50px; text-align: center; }
.legal-header h1 { font-size: 3rem; color: var(--white); }
.legal-content { background: rgba(17,34,64,0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 60px; margin-bottom: 100px; }
.legal-content h2 { color: var(--primary-color); margin: 40px 0 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.legal-content p, .legal-content li { color: #a8b2d1; margin-bottom: 15px; }

/* --- 10. MOBILE --- */
@media (max-width: 768px) {
    .logo img { height: 35px; }
    .menu-toggle { display: block; z-index: 200; margin-left: auto; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-list {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(15px); flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-list.active { right: 0; }
    .nav-list li { margin: 20px 0; opacity: 0; transform: translateX(50px); }
    .nav-list.active li { opacity: 1; transform: translateX(0); transition: all 0.5s ease 0.2s; }
    nav { width: 0; }
    .hero { padding-top: 120px; text-align: center; }
    .hero h1 { font-size: 2.2rem; line-height: 1.4; }
    .hero p { margin: 0 auto; }
    .buttons { justify-content: center; }
    .glass-panel { padding: 30px 20px; }
    .glass-panel h2 { font-size: 2rem; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .social-links, .contact-list li { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cookie-container { left: 20px; right: 20px; bottom: 20px; width: auto; }
}