/* ===== VARIABLES ===== */
:root {
    --bg-dark: #0a0f1e;
    --primary: #00f0ff;
    --secondary: #ff2a6d;
    --accent: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #e0f2fe;
    --neon-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== FONDO DE PARTÍCULAS ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-shadow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* ===== HEADER ===== */
.header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(0,240,255,0.1) 0%, transparent 70%);
}

.glitch {
    font-size: 4rem;
    font-weight: 800;
    position: relative;
    text-shadow: 0.05em 0 0 var(--secondary), -0.05em -0.025em 0 var(--primary);
    animation: glitch 725ms infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch 675ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.75;
    color: var(--secondary);
}

.glitch::after {
    animation: glitch 725ms infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.75;
    color: var(--primary);
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--secondary), -0.05em -0.025em 0 var(--primary); }
    14% { text-shadow: 0.05em 0 0 var(--secondary), -0.05em -0.025em 0 var(--primary); }
    15% { text-shadow: -0.05em -0.025em 0 var(--secondary), 0.025em 0.025em 0 var(--primary); }
    49% { text-shadow: -0.05em -0.025em 0 var(--secondary), 0.025em 0.025em 0 var(--primary); }
    50% { text-shadow: 0.025em 0.05em 0 var(--secondary), 0.05em 0 0 var(--primary); }
    99% { text-shadow: 0.025em 0.05em 0 var(--secondary), 0.05em 0 0 var(--primary); }
    100% { text-shadow: 0.05em 0 0 var(--secondary), -0.05em -0.025em 0 var(--primary); }
}

.tagline {
    font-size: 1.5rem;
    margin-top: 1rem;
    letter-spacing: 2px;
    color: #ccc;
}

.header-scroll {
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== SECCIONES ===== */
.section-glass {
    margin: 6rem 0;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

/* ===== TARJETAS GLASS ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2), 0 0 30px var(--primary);
}

/* ===== MISION/VISION ===== */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ===== GRID 3 ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== GRID 2 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* ===== SERVICE CARDS ===== */
.service-icon, .team-img, .project-img {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: var(--neon-shadow);
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-card li::before {
    content: '▹';
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* ===== EQUIPO ===== */
.team-card {
    text-align: center;
}

.team-img i {
    font-size: 5rem;
}

.team-bio {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== PROYECTOS ===== */
.project-card {
    text-align: center;
}

/* ===== PDF SECTION ===== */
.pdf-viewer {
    text-align: center;
}

.pdf-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn-futuristic {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 10px rgba(0,240,255,0.3);
}

.btn-futuristic:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary);
    transform: scale(1.05);
}

.pdf-note {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===== COMPROMISO ===== */
.compromiso {
    text-align: center;
}

.compromiso p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 1.5rem auto;
}

/* ===== FRASE FINAL ===== */
.frase-final {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    padding: 2rem;
    text-align: center;
}

.frase-final span {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
}

.social-icons {
    margin: 1.5rem 0;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
    text-shadow: var(--neon-shadow);
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .glitch { font-size: 2.5rem; }
    .nav-links { display: none; } /* Simplificar para móvil */
    .mission-vision { grid-template-columns: 1fr; }
    .frase-final span { font-size: 1.2rem; white-space: normal; }
}
/* ===== HEADER CON VIDEO DE FONDO ===== */
.header {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Capa oscura para legibilidad */
    z-index: -1;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.glitch {
    font-size: 4rem;
    font-weight: 800;
    position: relative;
    text-shadow: 0.05em 0 0 var(--secondary), -0.05em -0.025em 0 var(--primary);
    animation: glitch 725ms infinite;
}

/* ... resto de estilos se mantienen igual ... */