:root {
    --white-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --green-clear: #16a34a;
    --red-alert: #e11d48;
    --border-light: #e2e8f0;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-hover: rgba(255, 255, 255, 0.98);
}

body.dark-mode {
    --card-bg: rgba(30, 30, 50, 0.95);
    --card-bg-hover: rgba(40, 40, 60, 0.98);
    --text-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --border-light: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    background: #0a0a0a;
}

.bg-imagen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.3);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(5, 1, 2, 0.9) 100%);
    z-index: 1;
}

.theme-float-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-float-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-float-icon {
    font-size: 20px;
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon { opacity: 1; }
.moon-icon { opacity: 0; }

body.dark-mode .sun-icon { opacity: 0; }
body.dark-mode .moon-icon { opacity: 1; }

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.creditos-wrapper {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1100px;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.creditos-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.creditos-logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.titulo-creditos {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitulo-creditos {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}

.subtitulo-creditos strong {
    color: var(--green-clear);
}

.creditos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.columna-izquierda,
.columna-derecha {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seccion-titulo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.seccion-titulo i {
    color: var(--green-clear);
}

.autores-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.autor-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.autor-item:hover {
    transform: translateX(8px);
    border-color: var(--green-clear);
    background: var(--card-bg-hover);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.2);
}

.autor-numero {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    font-style: italic;
    color: var(--green-clear);
    opacity: 0.5;
    min-width: 30px;
    text-align: center;
}

.autor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.1);
    border: 2px solid rgba(22, 163, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--green-clear);
    transition: all 0.3s ease;
}

.autor-item:hover .autor-avatar {
    background: rgba(22, 163, 74, 0.2);
    border-color: var(--green-clear);
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.3);
}

.autor-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.autor-info h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.rol-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    flex-shrink: 0;
}

.rol-badge.autor {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.rol-badge.tutora {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #a78bfa;
}

.rol-badge.dev {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.tutora-card,
.dev-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tutora-card:hover {
    transform: translateY(-4px);
    border-color: #8b5cf6;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.dev-card:hover {
    transform: translateY(-4px);
    border-color: #f59e0b;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.tutora-avatar,
.dev-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
}

.tutora-avatar {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.dev-avatar {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.tutora-info,
.dev-info {
    flex: 1;
}

.tutora-info h3,
.dev-info h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.dev-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-left: 6px;
    font-family: 'Courier New', monospace;
}

.tutora-info p,
.dev-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-creditos {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-creditos p {
    font-size: 0.78rem;
    color: #94a3b8;
}

.footer-agradecimiento {
    margin-top: 4px;
    font-style: italic;
    font-size: 0.72rem !important;
    color: #64748b !important;
}

@media (max-width: 900px) {
    .creditos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .creditos-wrapper {
        padding: 90px 15px 30px;
    }

    .titulo-creditos {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .creditos-wrapper {
        width: 95%;
        padding: 80px 8px 25px;
    }

    .titulo-creditos {
        font-size: 1.5rem;
    }

    .autor-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .autor-info h3 {
        font-size: 0.8rem;
    }

    .autor-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .autor-numero {
        font-size: 0.9rem;
        min-width: 22px;
    }

    .tutora-card,
    .dev-card {
        padding: 18px;
        flex-direction: column;
        text-align: center;
    }

    .tutora-info,
    .dev-info {
        text-align: center;
    }

    .back-btn {
        top: 12px;
        left: 12px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .theme-float-btn {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .creditos-logo {
        width: 65px;
        height: 65px;
    }
}