:root {
    /* Colores base - ajusta según tu tema */

    --surface: #0f3460;
    --surface-light: #1a2a4a;
    --primary-color: #e94560;
    --text-title: #ffffff;
    --text-secondary: #b8c2d9;
    --border-color: rgba(255, 255, 255, 0.1);
}


/* === ESTILOS GENERALES === */


h1,
h2,
h3,
h4,
h5 {
    color: var(--text-title);
    margin-top: 0;
}

/* === SECCIÓN: TEATRO FANTASIA === */
.section-teatro-fantasia {
    padding: 2rem 1rem;
}

.section-teatro-fantasia h1 {
    font-size: 3rem;
    color: var(--text-title);
    margin-bottom: 1.5rem;

    position: relative;
}

/* === SECCIÓN: ESPIRAL DEL ABISMO === */

/* === GRID DE PERSONAJES GENERALES === */
.grid-personajes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-content: center;

}

.card-personaje {
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    overflow: hidden;

    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid var(--border-color);
}



.card-personaje img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.card-personaje .nombre {
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-title);
    padding: 0 0.5rem;
}

.card-personaje .elemento {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.5rem;
}

.card-personaje .elemento img,
.card-personaje .elemento svg {
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
}

/* === ELEMENTOS DESTACADOS === */
.elementos-destacados {
    margin-top: 2rem;
}

.grid-elementos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.elemento-card {

    text-align: center;
    padding: 1rem;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}



.elemento-card img,
.elemento-card svg {
    width: 36px;
    height: 36px;
    margin-bottom: 0.25rem;
}

.elemento-card span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-title);
}

.invitados-especiales {
    margin-top: 2rem;
}

/* === JEFES PRINCIPALES === */
.jefes-principales {
    position: relative;
    margin-top: 2rem;
    transform: scale(0.8);
    /* Escala al 80% */
    transform-origin: top left;
    /* Ajusta el punto de transformación */
}

.img-arriba {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    /* fondo por detrás */
}

.img-arriba img {
    width: 100%;
    height: auto;
}

.imagenes-abajo {
    position: absolute;
    /* para que se superponga */
    top: 100px;
    /* ajusta según dónde quieras empezar a superponer */
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 2;
    margin-top: 2rem;
    /* por encima */
}

.jefe {
    position: absolute;
    width: 60px;
    height: auto;
    border-radius: 50%;
    z-index: 2;
    /* asegura que esté encima de la imagen de arriba */
}

/* Posiciones horizontales */
.jefe-1 {
    left: 300px;
    top: -95px;
}

.jefe-2 {
    left: 565px;
    top: -70px;
}

.jefe-3 {
    left: 750px;
    top: -90px;
}

.jefe-4 {
    left: 920px;
    top: -90px;
}





#info-title {
    font-size: 13px;
    /* Tamaño del título */
    font-weight: bold;

    margin-bottom: 8px;
}

#info-desc {
    font-size: 11px;
    /* Tamaño del texto descriptivo */

    white-space: pre-line;
    /* Para que respete saltos de línea \n o texto multilínea */
}

/* Estilo unificado para todos los selectores */
.selector-versiones {
    display: flex;
    justify-content: center;
    background-color: #1F2937;
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.selector-versiones button {
    flex: 1;
    background-color: transparent;
    color: #9CA3AF;
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.selector-versiones button:hover {
    background-color: #374151;
    color: #E5E7EB;
}

.selector-versiones button.activo {
    background-color: #4F46E5;
    color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 640px) {

    .selector-versiones {
        flex-direction: column;
        gap: 0.25rem;
    }

    .selector-versiones button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}



.esc {
    position: relative;
    width: 1000px;
    /* tamaño base */
    max-width: 100%;
    aspect-ratio: 1000 / 400;
    /* ajusta según la relación ancho/alto de tu imagen */
}

.img-arriba img {
    width: 100%;
    height: 100%;
    display: block;

}

.imagenes-abajo {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.jefe {
    position: absolute;
    width: 6%;
    /* tamaño relativo al contenedor */
    height: auto;
    border-radius: 50%;
    background-color: black;
}

/* Posiciones relativas en porcentaje */
.jefe-1 {
    left: 30%;
    top: 25%;
}

.jefe-2 {
    left: 57%;
    top: 30%;
}

.jefe-3 {
    left: 76%;
    top: 25%;
}

.jefe-4 {
    left: 92%;
    top: 25%;
}

.render {
    width: 100vw;
    display: flex;
    justify-content: center;
    scale: 1.2;
}

a {
    color: inherit;
    /* hereda el color del contenedor (blanco, en tu caso) */
    text-decoration: none;
    /* quita el subrayado */
}

a:hover {
    text-decoration: none;
    /* evita subrayado al pasar el mouse */
}

.card-link {
    display: block;
    /* hace clickeable todo el bloque */
    color: inherit;
}

.card-link:hover .card-personaje {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}