/* ================================
   DAKAR STUDIOS — PAGE SYSTEM
   ================================ */

/* Generic page hero */
.page-hero {
    position: relative;
    isolation: isolate;
    min-height: 62vh;
    display: grid;
    align-items: end;
    padding: 150px 0 90px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 20%, rgba(249,115,22,0.13), transparent 30rem),
        linear-gradient(180deg, #050505 0%, #090909 100%);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 8%;
    z-index: -1;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(249,115,22,0.22);
    border-radius: 50%;
    box-shadow:
        0 0 80px rgba(249,115,22,0.08),
        inset 0 0 60px rgba(249,115,22,0.05);
    pointer-events: none;
}

.page-hero__content {
    max-width: 900px;
}

.page-hero__title {
    max-width: 850px;
    margin: 20px 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.page-hero__lead {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--dakar-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

/* Reveal animation hooks */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 700ms var(--ease),
        transform 700ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 80ms;
}

.reveal-delay-2 {
    transition-delay: 160ms;
}

.reveal-delay-3 {
    transition-delay: 240ms;
}

.reveal-delay-4 {
    transition-delay: 320ms;
}

/* Decorative grid */
.digital-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
    background-image:
        linear-gradient(rgba(249,115,22,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,115,22,0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 75% 35%, black, transparent 58%);
}

/* Stats */
.stat {
    padding: 24px;
}

.stat__value {
    margin-bottom: 5px;
    color: var(--dakar-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.stat__value span {
    color: var(--dakar-orange);
}

.stat__label {
    margin: 0;
    color: var(--dakar-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 680px) {
    .page-hero {
        min-height: 55vh;
        padding: 125px 0 70px;
    }

    .page-hero::after {
        width: 150px;
        height: 150px;
        right: -40px;
    }
}


/* --- RED DAKAR: VERSIÓN IMAGEN GRANDE Y ESTÁTICA --- */

.hero-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Le damos más espacio a la imagen (1.2fr) */
    gap: 60px;
    align-items: center;
    min-height: 70vh;
}

.image-container-static {
    position: relative;
    width: 100%;
}

.img-main {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px; /* Bordes redondeados modernos */
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); /* Sombra profunda para dar nivel */
    border: 1px solid rgba(255,255,255,0.1);
    /* Sin animaciones de movimiento, solo una carga suave al inicio */
    transition: transform 0.3s ease;
}

/* Decoración detrás de la foto (opcional, para que no se vea sola) */
.image-container-static::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-orange);
    border-radius: 40px;
    z-index: -1;
    opacity: 0.3;
}

.page-hero__title {
    font-size: clamp(3rem, 6vw, 4.5rem); /* Título más grande */
    line-height: 1;
    margin-bottom: 25px;
}

/* Responsive para celular */
@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .image-container-static::after {
        display: none; /* Quitamos el adorno en móvil para limpiar */
    }
}

/* Galería de Jóvenes */
.youth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.youth-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.youth-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.youth-card:hover img {
    transform: scale(1.1);
}

.youth-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(5,5,5,0.9), transparent);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .floating-container { order: -1; margin-bottom: 30px; }
    .img-floating { max-width: 300px; }
}