/* ============================================================
   HOME – Estilos específicos de index.php
   ============================================================ */

/* ── YouTube iframe (tráiler) ── */
.yt-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #0a0a0a;
}

.yt-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Galería ticker (scroll infinito) ── */
.gallery-ticker-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.gallery-ticker-wrap::before,
.gallery-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.gallery-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--col), transparent);
}

.gallery-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--col), transparent);
}

.gallery-ticker {
    display: flex;
    gap: 6px;
    will-change: transform;
}

.gallery-ticker img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border-radius: 2px;
    background: linear-gradient(110deg, #1a1a2e 0%, #16213e 40%, #0f3460 60%, #1a1a2e 100%);
    background-size: 300% 100%;
    animation: ticker-ph 2s linear infinite;
}

.gallery-ticker img.loaded {
    animation: none;
    background: none;
}

@keyframes ticker-ph {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* ── Accesos rápidos (Explore the project) ── */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.quick-access-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.quick-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.quick-card h3 {
    color: var(--h1);
}

.quick-card p {
    flex: 1;
}

.quick-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: center;
}

/* ── Bloque Lumicles 1.0 (Slideshow + texto) ── */
.lumicles1-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2rem;
}

.slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /*aspect-ratio: 1/1;*/
    background: #1a1a1a;
}

.slideshow-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.slideshow-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center center;
    background: #222;
}

/* ── Banner de Video ── */
.video-banner {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-banner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.video-banner-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem;
}

.video-banner-overlay h2 {
    color: var(--h1);
    margin-bottom: 0.75rem;
}

/* ── Bloque Autor ── */
.author-block {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.author-photo {
    width: auto;
    height: 400px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
    background: #2a2a2a;
    display: block;
}

.author-info h3 {
    color: var(--h1);
    margin-bottom: 0.5rem;
}

.author-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.author-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100px;
    padding: 1rem 0.5rem 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #aaa;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color var(--transition),
        color var(--transition),
        background var(--transition);
}

.author-links a svg {
    width: 50px;
    height: 50px;
    fill: currentColor;
    flex-shrink: 0;
}

.author-links a:hover {
    border-color: #666;
    color: #fff;
    background: #222;
    opacity: 1;
}

/* ============================================================
   RESPONSIVE – Home
   ============================================================ */
@media (max-width: 1000px) {
    .quick-access-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .lumicles1-block {
        grid-template-columns: 1fr;
    }

    .author-block {
        flex-direction: column;
    }

    .author-photo {
        width: 100%;
        height: 260px;
    }

    .author-links a {
        width: 80px;
    }

    .author-links a svg {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .quick-access-grid--4 {
        grid-template-columns: 1fr;
    }
}