/* Variables para blanco y negro */
:root {
    --credits-white: #ffffff;
    --credits-light-gray: #f5f5f5;
    --credits-gray: #808080;
    --credits-dark-gray: #333333;
    --credits-black: #000000;
    --credits-primary: #3b82f6;
}

.credits-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--credits-white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.credits-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--credits-light-gray);
}

.credits-header h1 {
    font-size: 2.5rem;
    color: var(--credits-black);
    margin-bottom: 0.5rem;
}

.credits-header p {
    color: var(--credits-gray);
    font-size: 1.1rem;
}

.credits-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--credits-light-gray);
    border-radius: 0.8rem;
    border: 1px solid var(--credits-gray);
}

.credits-section h2 {
    color: var(--credits-black);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-section ul {
    list-style: none;
    padding: 0;
}

.credits-section li {
    margin-bottom: 1rem;
    color: var(--credits-dark-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.credits-section a {
    color: var(--credits-black);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--credits-gray);
}

.credits-section a:hover {
    color: var(--credits-gray);
    border-bottom-color: var(--credits-black);
}

.credits-section strong {
    color: var(--credits-black);
}

.credits-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--credits-light-gray);
    color: var(--credits-gray);
}

.credits-footer p {
    margin: 0.5rem 0;
}

/* Botón de retorno */
/* === BOTÓN MODERNO VOLVER AL MENÚ === */
.button-wrap {
    position: relative;
    z-index: 2;
    border-radius: 999vw;
    background: transparent;
    pointer-events: none;
    transition: all var(--anim--hover-time, 400ms) var(--anim--hover-ease, cubic-bezier(0.25, 1, 0.5, 1));
}

.button-shadow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.1);
    filter: blur(0.25em);
    opacity: 0;
    transition: opacity var(--anim--hover-time, 400ms) var(--anim--hover-ease, cubic-bezier(0.25, 1, 0.5, 1));
}

.button-shadow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(0.125em);
    opacity: 0;
    transition: opacity var(--anim--hover-time, 400ms) var(--anim--hover-ease, cubic-bezier(0.25, 1, 0.5, 1));
}

.button-wrap:has(button:hover) .button-shadow {
    filter: blur(clamp(2px, 0.0625em, 6px));
    transition: filter var(--anim--hover-time, 400ms) var(--anim--hover-ease, cubic-bezier(0.25, 1, 0.5, 1));
}

.button-wrap:has(button:hover) .button-shadow::after {
    top: calc(var(--shadow-cuttoff-fix) - 0.875em);
    opacity: 1;
}

.button-wrap:has(button:active) {
    /* Sin transformación */
}

/* Estilo específico para el botón volver-menu en estado activo */
.button-wrap.volver-menu:has(button:active) {
    /* Sin transformación */
}

.button-wrap.volver-menu {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    pointer-events: auto;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrap.volver-menu button {
    --border-width: clamp(1px, 0.0625em, 4px);
    all: unset;
    cursor: pointer;
    position: relative;
    z-index: 3;
    background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border-radius: 50%;
    box-shadow: inset 0 0.125em 0.125em rgba(0,0,0,0.05),
      inset 0 -0.125em 0.125em rgba(255,255,255,0.5),
      0 0.25em 0.125em -0.125em rgba(0,0,0,0.2),
      0 0 0.1em 0.25em inset rgba(255,255,255,0.2),
      0 4px 15px rgba(59, 130, 246, 0.3),
      0 0 20px rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrap.volver-menu button:hover {
    background: linear-gradient(-75deg, rgba(255,255,255,0.1), rgba(255,255,255,0.25), rgba(255,255,255,0.1));
}

.button-wrap.volver-menu button:active {
    background: linear-gradient(-75deg, rgba(255,255,255,0.15), rgba(255,255,255,0.3), rgba(255,255,255,0.15));
}

.button-wrap.volver-menu button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-wrap.volver-menu button:disabled:hover {
    background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}

.button-wrap.volver-menu button span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

/* Fondo de la página */
body.credits-page {
    background: var(--credits-light-gray);
    color: var(--credits-black);
}

/* Responsive */
@media (max-width: 768px) {
    .credits-container {
        margin: 1rem;
        padding: 1rem;
    }

    .credits-header h1 {
        font-size: 2rem;
    }

    .credits-section {
        padding: 1.5rem;
    }

    .credits-section h2 {
        font-size: 1.5rem;
    }

    .button-wrap.volver-menu {
        top: 1rem;
        left: 1rem;
        width: 60px;
        height: 60px;
    }
    
    .button-wrap.volver-menu button {
        width: 60px;
        height: 60px;
        box-shadow: inset 0 0.125em 0.125em rgba(0,0,0,0.05),
          inset 0 -0.125em 0.125em rgba(255,255,255,0.5),
          0 0.25em 0.125em -0.125em rgba(0,0,0,0.2),
          0 0 0.1em 0.25em inset rgba(255,255,255,0.2),
          0 6px 20px rgba(59, 130, 246, 0.35),
          0 0 25px rgba(59, 130, 246, 0.15);
    }
    
    .button-wrap.volver-menu button:hover {
        box-shadow: inset 0 0.125em 0.125em rgba(0,0,0,0.05),
          inset 0 -0.125em 0.125em rgba(255,255,255,0.5),
          0 0.15em 0.05em -0.1em rgba(0,0,0,0.25),
          0 0 0.05em 0.1em inset rgba(255,255,255,0.5),
          0 8px 25px rgba(59, 130, 246, 0.4),
          0 0 30px rgba(59, 130, 246, 0.2);
    }
    
    .button-wrap.volver-menu button svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .button-wrap.volver-menu {
        width: 50px;
        height: 50px;
    }
    
    .button-wrap.volver-menu button {
        width: 50px;
        height: 50px;
        box-shadow: inset 0 0.125em 0.125em rgba(0,0,0,0.05),
          inset 0 -0.125em 0.125em rgba(255,255,255,0.5),
          0 0.25em 0.125em -0.125em rgba(0,0,0,0.2),
          0 0 0.1em 0.25em inset rgba(255,255,255,0.2),
          0 4px 15px rgba(59, 130, 246, 0.3),
          0 0 20px rgba(59, 130, 246, 0.1);
    }
    
    .button-wrap.volver-menu button svg {
        width: 26px;
        height: 26px;
    }
}

/* Estilos para detalles de licencias */
.license-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--credits-white);
    border-radius: 12px;
    border: 2px solid var(--credits-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.license-details h3 {
    color: var(--credits-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.license-text {
    background: var(--credits-light-gray);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--credits-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--credits-dark-gray);
}

.license-text p {
    margin: 0.5rem 0;
    color: var(--credits-dark-gray);
}

.license-text strong {
    color: var(--credits-black);
    font-weight: bold;
}

/* Responsive para licencias */
@media (max-width: 768px) {
    .license-details {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .license-text {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .license-details {
        padding: 0.8rem;
        margin-top: 1rem;
    }
    
    .license-text {
        font-size: 0.75rem;
        padding: 0.6rem;
    }
} 