/* ---------------------------------------------------
   PALETA DE COLORES
------------------------------------------------------ */
:root {
    --bg-dark: #0c0c0c;
    --bg-card: #151515;
    --accent: #ff7a1a;
    --accent-soft: rgba(255, 122, 26, 0.35);
    --text-main: #e8e8e8;
    --text-muted: #bfbfbf;
    --border-soft: rgba(255, 122, 26, 0.18);
}

/* ---------------------------------------------------
   GLOBAL
------------------------------------------------------ */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; line-height: 1.6; }

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ---------------------------------------------------
   HEADER ORIGINAL + OPTIMIZADO
------------------------------------------------------ */
header {
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 122, 26, 0.15);
    position: sticky;
    top: 0;
    z-index: 700;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 42px;
    transition: 0.25s ease;
}

.logo img:hover { transform: scale(1.05); }

.nav a {
    color: var(--text-main);
    margin-left: 22px;
    text-decoration: none;
    font-weight: 400;
    transition: 0.25s ease;
}

.nav a:hover,
.nav .cta-nav { color: var(--accent); }

/* ---------------------------------------------------
   HERO
------------------------------------------------------ */
.hero {
    min-height: 88vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

/* VIDEO OPTIMIZADO PARA TODAS LAS PANTALLAS */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    background: black;
}

/* Red neuronal */
.network-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    filter: blur(4px);
    animation: networkFloat 8s ease-in-out infinite alternate;
    z-index: -2;
}

@keyframes networkFloat {
    0% { transform: scale(1) translateY(-6px); }
    100% { transform: scale(1.06) translateY(6px); }
}

/* HERO TEXT */
.hero h1 {
    font-size: 2.9rem;
    max-width: 820px;
    margin: auto;
    text-shadow: 0 0 20px rgba(255, 122, 26, 0.25);
    z-index: 2;
}

.hero p {
    max-width: 650px;
    margin: 20px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 2;
}

/* CTA */
.cta-button {
    display: inline-block;
    padding: 14px 36px;
    margin-top: 20px;
    background: rgba(255, 122, 26, 0.2);
    color: var(--text-main);
    border: 1px solid var(--accent);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 25px rgba(255, 122, 26, 0.25);
    z-index: 2;
    transition: 0.3s ease;
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-button:hover {
    transform: translateY(-6px) scale(1.07);
    box-shadow: 0 0 45px rgba(255, 122, 26, 0.55), 
                0 0 80px rgba(255, 122, 26, 0.35);
    animation: pulseGlow 0.6s ease-in-out alternate infinite;
}

@keyframes pulseGlow {
    0% {
        transform: translateY(-6px) scale(1.06);
        box-shadow: 0 0 38px rgba(255, 122, 26, 0.45),
                    0 0 65px rgba(255, 122, 26, 0.25);
    }
    100% {
        transform: translateY(-6px) scale(1.09);
        box-shadow: 0 0 60px rgba(255, 122, 26, 0.70),
                    0 0 110px rgba(255, 122, 26, 0.45);
    }
}

/* ---------------------------------------------------
   SECCIONES
------------------------------------------------------ */
#mision, #pilares, #ecosistema {
    padding: 90px 0;
}

#mision h2, #pilares h2, #ecosistema h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-align: center;
}

.mission-grid {
    display: grid;
    gap: 35px;
}

.vision-box {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
    transition: 0.25s;
}

.vision-box:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

/* PILARES */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
}

.pillar-item {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    transition: 0.3s ease;
}

.pillar-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.pillar-item i {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 18px;
}

/* ECOSISTEMA */
.tech-stack-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.tech-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    transition: 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.arrow { font-size: 2rem; opacity: 0.4; }

/* ---------------------------------------------------
   FOOTER
------------------------------------------------------ */
footer {
    padding: 50px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 122, 26, 0.25);
    background: #090909;
}

.footer-links {
    margin-top: 25px;
    text-align: center;
}

.social-links a {
    color: var(--text-muted);
    margin: 0 12px;
    font-size: 1.4rem;
    transition: 0.25s;
}

.social-links a:hover { color: var(--accent); }

/* ---------------------------------------------------
   MENÚ MÓVIL / RESPONSIVO
------------------------------------------------------ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
}

.hamburger span {
    height: 3px;
    width: 28px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* MENÚ LATERAL */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    padding-top: 90px;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: right 0.35s ease;
    z-index: 998;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.mobile-menu.open {
    right: 0;
}

/* ---------------------------------------------------
   BREAKPOINTS MÓVIL REALES
------------------------------------------------------ */
@media(max-width: 900px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }

    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1rem; }

    .hero { padding-top: 100px; padding-bottom: 80px; }
}

@media(max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tech-stack-grid .arrow { display: none; }
}

@media(max-width: 420px) {
    .logo img { height: 36px; }
    .cta-button { padding: 12px 28px; font-size: 0.9rem; }
}
