/* RÓTULO INDIVIDUAL - Carpeta 3 */


:root {
    --noche:   #06140d;

    /* fuego */
    --fuego:         #d63a1f;
    --fuego-oscuro:  #b02a12;
    --naranja:       #f8a030;

    /* cajas estilo GBA */
    --caja:        #ffffff;
    --crema:       #fffaf0;
    --beige:       #f6e9c8;
    --borde:       #2a2a3c;
    --texto:       #383838;
    --sombra-txt:  #b8b8b8;

    --fuente-titulos: "Press Start 2P", "Courier New", monospace;
    --fuente-texto:   "VT323", "Courier New", monospace;

    /* dibujo: nube */
    --img-nube: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16' shape-rendering='crispEdges'%3E%3Cpath d='M3 15 V11 H7 V7 H12 V4 H21 V7 H25 V10 H29 V15 Z' fill='%23ffffff'/%3E%3Cpath d='M3 15 V12 H29 V15 Z' fill='%23c9d8f5'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. FONDO. */
body {
    min-height: 100vh;
    background:
        /*  */
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 4px),
        linear-gradient(to bottom,
            #f6b878 0%,
            #f7bd80 30%,
            #f5cc94 48%,
            #f2dcb0 58%,
            #ecebc8 66%,
            #f7f7e6 69.5%,
            #8be04a 70%,      
            #8be04a 74%,
            #66a05a 74%,      
            #66a05a 100%);
    background-attachment: fixed;
    color: var(--texto);
    font-family: var(--fuente-texto);
    font-size: 1.5rem;
    line-height: 1.25;
    padding: 2rem 1rem 2.5rem;
}

/* 3. NUBES  */
.escena {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.nube {
    position: absolute;
    width: 8rem;
    height: 4rem;
    background: var(--img-nube) center / 100% 100% no-repeat;
    image-rendering: pixelated;
}

.nube-1 { top: 38vh; left: 6%; }
.nube-2 { top: 44vh; left: 52%; width: 10rem; height: 5rem; }
.nube-3 { top: 34vh; left: 82%; width: 6rem; height: 3rem; }

/* 5. PANTALLA PRINCIPAL */
.pantalla,
footer {
    position: relative;
    z-index: 1;
}

.pantalla {
    max-width: 62rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.6fr);
    gap: 1.5rem;
    align-items: start;
}

.derecha {
    display: grid;
    gap: 1.5rem;
}

/* 6. FICHA DE PERSONAJE  */
.entrenador {
    background: var(--crema);
    border: 4px solid var(--borde);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 4px var(--noche), 8px 8px 0 4px var(--noche);
}

.entrenador-tira {
    background: var(--fuego);
    color: #ffffff;
    font-family: var(--fuente-titulos);
    font-size: 0.6rem;
    line-height: 1.6;
    padding: 0.7rem 1rem;
}

.entrenador-cuerpo {
    padding: 1.25rem;
}

.avatar {
    display: block;
    width: 100%;
    max-width: 11rem;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--borde);
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--naranja);
}

.entrenador h2 {
    font-family: var(--fuente-titulos);
    font-weight: normal;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fuego-oscuro);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 var(--sombra-txt);
}

.datos div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.3rem 0;
    border-bottom: 2px dotted var(--sombra-txt);
}

.datos dt {
    color: var(--fuego-oscuro);
}

.datos dd {
    text-align: right;
    text-shadow: 1px 1px 0 var(--sombra-txt);
}

/* 7. DIÁLOGO:  */
.dialogo {
    position: relative;
    background: var(--caja);
    border: 4px solid var(--borde);
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 3px #f2a7a0,
        0 0 0 4px var(--noche),
        8px 8px 0 4px var(--noche);
    padding: 1.25rem 1.5rem 1.5rem;
    font-size: 1.65rem;
    color: var(--texto);
    text-shadow: 1px 1px 0 var(--sombra-txt);
}

.dialogo::after {
    content: "▼";
    position: absolute;
    right: 1rem;
    bottom: 0.4rem;
    font-size: 1rem;
    color: var(--fuego);
    text-shadow: none;
    animation: titilar 1s steps(1) infinite;
}

@keyframes titilar {
    50% { opacity: 0.25; }
}

/* 8. MOCHILA:  */
.mochila {
    background: var(--beige);
    border: 4px solid var(--borde);
    border-radius: 8px;
    box-shadow: 0 0 0 4px var(--noche), 8px 8px 0 4px var(--noche);
    padding: 1.25rem;
}

.mochila h3,
.redes h3,
.menu h3 {
    font-family: var(--fuente-titulos);
    font-weight: normal;
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--fuego-oscuro);
    margin-bottom: 1rem;
}

.mochila ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0.6rem;
}

.mochila li {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 5.5rem;
    padding: 0.6rem;
    background: #fffdf5;
    border: 3px solid #5a4a2a;
    border-radius: 4px;
    font-size: 1.3rem;
    line-height: 1.1;
}

/* mini bola roja y blanca en cada casillero */
.mochila li::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--borde);
    border-radius: 50%;
    background: linear-gradient(to bottom,
        var(--fuego) 0 40%,
        var(--borde) 40% 60%,
        #ffffff 60%);
}

/* 8b. REDES:  */
.redes {
    grid-column: 1 / -1;
    background: var(--crema);
    border: 4px solid var(--borde);
    border-radius: 8px;
    box-shadow: 0 0 0 4px var(--noche), 8px 8px 0 4px var(--noche);
    padding: 1.25rem;
}

.redes-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
}

.red {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    background: #ffffff;
    border: 3px solid var(--borde);
    border-radius: 4px;
    color: var(--texto);
    text-decoration: none;
    text-shadow: 1px 1px 0 var(--sombra-txt);
}

.red-nombre {
    color: var(--fuego-oscuro);
    font-size: 1.3rem;
}

.red-usuario {
    font-size: 1.9rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.red:hover,
.red:focus-visible {
    background: var(--fuego);
    border-color: var(--borde);
    box-shadow: 4px 4px 0 var(--naranja);
    color: #ffffff;
    outline: none;
    text-shadow: none;
}

.red:hover .red-nombre,
.red:focus-visible .red-nombre {
    color: #ffffff;
}

/* 9. MENÚ:  */
.menu {
    grid-column: 1 / -1;
    background: var(--caja);
    border: 4px solid var(--borde);
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 3px #f2a7a0,
        0 0 0 4px var(--noche),
        8px 8px 0 4px var(--noche);
    padding: 1.25rem 1.5rem;
}

.menu ul {
    list-style: none;
}

.menu a {
    display: block;
    padding: 0.35rem 0;
    color: var(--texto);
    text-decoration: none;
    font-size: 1.65rem;
    text-shadow: 1px 1px 0 var(--sombra-txt);
}

/*  */
.menu a::before {
    content: "▶";
    display: inline-block;
    width: 1.6rem;
    color: transparent;
    text-shadow: none;
}

.menu a:hover::before,
.menu a:focus-visible::before {
    color: var(--fuego);
}

.menu a:hover,
.menu a:focus-visible {
    color: var(--fuego-oscuro);
    outline: none;
}

/* 10. PIE DE PÁGINA */
footer {
    max-width: 62rem;
    margin: 2.5rem auto 0;
    padding: 1rem;
    font-size: 1.05rem;
    line-height: 1.2;
    color: #d6f5de;
    background: rgba(6, 20, 13, 0.88);
    border-radius: 8px;
}

/* 11. CELULAR:  */
@media (max-width: 52rem) {
    .pantalla {
        grid-template-columns: 1fr;
    }
