/* Layout & Grid System */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.section-padding {
    padding: 6rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header Grid */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.backdrop-blur {
    backdrop-filter: var(--glass-blur);
    background-color: rgba(7, 10, 18, 0.8);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

/* Hero Layout */
.hero-section {
    min-height: 120vh;
    /* Aumentar altura para dejar ver el flujo de la imagen de fondo */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alinear contenido más arriba */
    align-items: center;
    position: relative;
    padding-top: 180px;
    /* Bajar el texto un poco del header */
    padding-bottom: 100px;
    overflow: hidden;
}

/* Máscara inferior para transición suave a la sección de tarjetas */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
    z-index: -1;
}

.hero-bg-custom {
    background-image: url('../assets/fenix_hero_bg_clean.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente sutil para acentuar el centro oscuro */
    background: radial-gradient(circle at center, rgba(7, 10, 18, 0.2) 0%, rgba(7, 10, 18, 0.8) 100%);
    z-index: -1;
}

.hero-title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

/* Timeline Layout */
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
    position: relative;
    flex-wrap: wrap;
    gap: 2rem;
}

.timeline-step {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.timeline-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    margin-top: 2rem;
    display: none;
    /* Mobile hidden */
}

@media (min-width: 768px) {
    .timeline-line {
        display: block;
    }
}

/* Footer Layout */
.footer {
    border-top: 1px solid var(--border-light);
    background-color: #05070D;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}