/* ====== PANTALLA DE CRÉDITOS PROFESIONALES ====== */

#credits-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: creditsFadeIn 1.8s ease-out forwards;
}

@keyframes creditsFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ======== IMÁGENES DE FONDO LATERALES ======== */

.credits-bg-images {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.credits-bg-img {
    position: absolute;
    width: 520px;
    max-width: 25vw;
    opacity: 0;
    filter: blur(3px) brightness(0.4);
    transition: opacity 1.8s ease-in-out;
    object-fit: cover;
    border-radius: 12px;
}

.credits-bg-img.visible {
    opacity: 0.8;
}

.credits-bg-img.left {
    left: 2%;
}

.credits-bg-img.right {
    right: 2%;
}

/* ======== CONTENEDOR PRINCIPAL ======== */

.credits-container {
    width: 100%;
    max-width: 700px;
    height: 100%;
    position: relative;
    text-align: center;
    z-index: 1;
}

/* ======== SCROLL DE CRÉDITOS ======== */

.credits-content {
    position: absolute;
    bottom: -100%;
    width: 100%;
    animation: creditsScroll 150s linear forwards;
    padding: 0 20px 200px 20px;
}

@keyframes creditsScroll {
    0% {
        bottom: -460%;
        opacity: 0;
    }
    2% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* ======== TÍTULO PRINCIPAL ======== */

.credits-main-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 170, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    line-height: 1;
    letter-spacing: 0.05em;
}

.credits-main-subtitle {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 180px;
}

/* ======== SECCIONES ======== */

.credit-section {
    margin-bottom: 120px;
    padding: 0 10px;
}

/* Título de sección — fuente decorativa */
.credit-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.credit-section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 12px auto 0;
}

/* ======== ENTRADAS DE CRÉDITO ======== */

.credit-entry {
    margin-bottom: 35px;
}

/* Rol — sans-serif, sutil */
.credit-role {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 0 6px 0;
}

/* Nombre — fuente decorativa, destacado */
.credit-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #eee;
    margin: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

/* ======== IMAGEN DE PERFIL ======== */

.credit-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 18px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    object-fit: cover;
}

/* ======== SEPARADORES ======== */

.credit-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 50px auto;
}

.credit-divider.large {
    width: 100px;
    margin: 80px auto;
}

/* ======== SECCIÓN DE AGRADECIMIENTOS ======== */

.credit-thanks-section {
    margin-bottom: 120px;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.credit-thanks-section .credit-section-title::after {
    display: none;
}

.credit-thanks-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ddd;
    margin: 0 0 5px 0;
}

.credit-thanks-reason {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #666;
    margin: 0 0 30px 0;
    font-style: italic;
}

/* ======== MENSAJE FINAL ======== */

.credit-final-msg {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    margin-top: 400px;
    margin-bottom: 60px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    opacity: 0;
    animation: fadeInFinal 4s ease-in-out 130s forwards;
}

.credit-final-submsg {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fadeInFinal 3s ease-in-out 132s forwards;
}

@keyframes fadeInFinal {
    to { opacity: 1; }
}

/* ======== BOTÓN VOLVER ======== */

.credits-back-btn {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    padding: 12px 40px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    transition: all 0.4s ease;
    animation: fadeInBtn 2s ease-in-out 135s forwards;
    z-index: 10000;
    border-radius: 4px;
}

.credits-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

@keyframes fadeInBtn {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ======== PARTÍCULAS / ESTRELLAS DE FONDO ======== */

.credits-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 30%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 15% 70%, rgba(255, 255, 255, 0.18), transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.22), transparent),
        radial-gradient(1.5px 1.5px at 40% 90%, rgba(255, 215, 0, 0.15), transparent),
        radial-gradient(1.5px 1.5px at 60% 10%, rgba(255, 215, 0, 0.12), transparent);
    animation: starsFloat 30s ease-in-out infinite;
}

@keyframes starsFloat {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ======== RESPONSIVE ======== */

@media (max-width: 768px) {
    .credits-bg-img {
        max-width: 30vw;
        width: 200px;
    }
    
    .credits-main-title {
        font-size: 2.5rem;
    }
    
    .credit-section-title {
        font-size: 0.85rem;
    }
    
    .credit-name {
        font-size: 1.2rem;
    }
    
    .credit-final-msg {
        font-size: 2rem;
    }
}