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

:root {
    --color-fondo: #0d0d0d;
    --color-texto: #fafafa;
    --color-texto-secundario: #aaaaaa;
    --color-borde: #333333;
    --color-hover: #2a2a2a;
    --color-acento: #ffffff;
    --transicion-rapida: all 0.3s ease;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.5;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER COMPACTO ===== */
.header-compact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-fondo);
    border-bottom: 1px solid var(--color-borde);
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-texto);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-texto-secundario);
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transicion-rapida);
    padding: 4px 0;
}

.nav-menu a:hover,
.nav-menu a.nav-active {
    color: var(--color-texto);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-texto);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}

/* ===== SECCIONES PRINCIPALES ===== */
.seccion-principal {
    width: 100%;
    padding: 80px 40px 60px;
    margin-top: 60px;
}

.seccion-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== PRÓXIMAMENTE ===== */
.proximamente-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.proyecto-card {
    text-decoration: none;
    color: var(--color-texto);
    transition: var(--transicion-rapida);
    display: block;
    width: 100%;
}

.proyecto-card:hover {
    transform: translateY(-5px);
}

.proyecto-imagen {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 133.33%; /* 3:4 ratio (800x600) */
    margin-bottom: 15px;
    overflow: hidden;
}

.proyecto-imagen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto-card:hover .proyecto-imagen img {
    transform: scale(1.05);
}

.proyecto-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 2;
}

.proyecto-info {
    padding: 0 5px;
    width: 100%;
}

.proyecto-titulo {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.proyecto-director {
    font-size: 0.85rem;
    color: var(--color-texto-secundario);
    margin-bottom: 4px;
}

.proyecto-descripcion {
    font-size: 0.8rem;
    color: var(--color-texto-secundario);
    line-height: 1.4;
}

/* ===== AVANCES ===== */
.avances-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.avance-card {
    background-color: transparent;
    transition: var(--transicion-rapida);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.avance-card:hover {
    transform: translateY(-5px);
}

.avance-imagen {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio (800x450) */
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.avance-imagen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avance-card:hover .avance-imagen img {
    transform: scale(1.05);
}

.avance-contenido {
    padding: 0 5px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.avance-fecha {
    display: block;
    font-size: 0.75rem;
    color: var(--color-texto-secundario);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.avance-titulo {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.avance-descripcion {
    font-size: 0.85rem;
    color: var(--color-texto-secundario);
    margin-bottom: 12px;
    line-height: 1.5;
    flex: 1;
}

.avance-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--color-borde);
    margin-top: auto;
}

.avance-proyecto {
    font-size: 0.75rem;
    color: var(--color-texto-secundario);
    font-weight: 500;
}

.avance-enlace {
    font-size: 0.85rem;
    color: var(--color-texto);
    text-decoration: none;
    font-weight: 500;
}

.avance-enlace:hover {
    text-decoration: underline;
}

/* ===== FOOTER COMPACTO ===== */
.footer-compact {
    background-color: #080808;
    padding: 60px 40px 30px;
    border-top: 1px solid var(--color-borde);
    width: 100%;
}

.footer-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-borde);
    width: 100%;
}

.footer-stat {
    text-align: center;
}

.footer-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.footer-stat-text {
    font-size: 0.8rem;
    color: var(--color-texto-secundario);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HERO EN FOOTER */
.hero-compact-footer {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-borde);
    width: 100%;
}

.hero-title-footer {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero-subtitle-footer {
    font-size: 0.95rem;
    color: var(--color-texto-secundario);
    margin-bottom: 30px;
}

.hero-stats-footer {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.stat-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number-footer {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-label-footer {
    font-size: 0.75rem;
    color: var(--color-texto-secundario);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.footer-descripcion {
    font-size: 0.85rem;
    color: var(--color-texto-secundario);
    margin-bottom: 18px;
    line-height: 1.5;
}

.contacto-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-texto-secundario);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transicion-rapida);
}

.contacto-link:hover {
    color: var(--color-texto);
}

.redes-titulo,
.links-titulo {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.redes-links {
    display: flex;
    gap: 12px;
}

.red-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transicion-rapida);
    font-size: 0.95rem;
}

.red-social:hover {
    background-color: var(--color-texto);
    color: var(--color-fondo);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--color-texto-secundario);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transicion-rapida);
}

.footer-links a:hover {
    color: var(--color-texto);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--color-borde);
    width: 100%;
}

.footer-bottom p {
    color: var(--color-texto-secundario);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-legal a {
    color: var(--color-texto-secundario);
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .proximamente-grid,
    .avances-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .seccion-principal {
        padding: 70px 20px 40px;
    }
    
    .proximamente-grid,
    .avances-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .proyecto-imagen {
        padding-bottom: 150%; /* Más alto en móvil */
    }
    
    .footer-compact {
        padding: 40px 20px 20px;
    }
    
    .hero-title-footer {
        font-size: 1.8rem;
    }
    
    .hero-stats-footer {
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-fondo);
        flex-direction: column;
        padding: 15px 20px;
        gap: 12px;
        border-top: 1px solid var(--color-borde);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero-title-footer {
        font-size: 1.5rem;
    }
    
    .hero-subtitle-footer {
        font-size: 0.85rem;
    }
    
    .stat-number-footer,
    .footer-stat-num {
        font-size: 1.3rem;
    }
    
    .stat-label-footer,
    .footer-stat-text {
        font-size: 0.7rem;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
    }
}