:root {
    /* COLOR DE LOS BORDES Y BRILLOS.
       Verde oliva hoja (actual): #6b8e23
       Para volver al de antes, cambia por: forestgreen */
    --verde: #6b8e23;
}

@font-face {
    font-family: 'Yomogi';
    src: url('Fuentes/Yomogi-Regular.ttf') format('truetype');
}


body
{
    font-family: 'Yomogi', cursive;
    font-weight: bold;

    background-image: url(Fondos/otoño2.gif);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    min-height: 100vh;
    width: 100%;

    margin: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}


.panel_principal
{
    background-color: rgba(0, 0, 0, 0.75);

    border-radius: 25px;
    border: 3px double var(--verde);

    box-shadow: 0 0 100px var(--verde);

    height: 575px;
    width: 1000px;
    max-width: 90%;
    margin: 20px 0;
}


.cabecera
{
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Mismo margen arriba, izquierda y derecha: el logo queda
       a igual distancia del borde del panel en alto y en ancho */
    padding: 20px 20px 10px;
}


.logo
{
    box-sizing: border-box;

    width: 80px;
    height: 80px;

    flex-shrink: 0;

    border: 3px double darkorange;
    border-radius: 15px;

    box-shadow: 0 0 0px darkorange;

    cursor: pointer;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.logo:hover
{
    transform: scale(1.1);

    box-shadow: 0 0 25px darkorange;
}


.titulo_cabecera
{
    flex: 1;
    min-width: 0;

    /* Misma altura que el logo, con el título y el mensaje
       centrados verticalmente dentro de ella */
    height: 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Mismo ancho que el logo: así el título queda centrado en el panel */
.hueco_buscador
{
    width: 80px;

    flex-shrink: 0;
}


.panel_principal h1
{
    text-align: center;

    color: grey;

    font-size: 52px;
    font-weight: bold;
    line-height: 1.05;

    margin: 0;

    letter-spacing: 3px;

    text-shadow: 0 0 10px var(--verde);

    -webkit-text-stroke: 1px var(--verde);

    transition: transform 0.3s ease;
}


.net
{
    color: white;

    font-size: 52px;
    font-weight: bold;

    margin: 0;

    letter-spacing: 3px;

    text-shadow: 0 0 20px darkorange;

    -webkit-text-stroke: 1.5px darkorange;

    transition: transform 0.3s ease;
}


.mensaje
{
    animation: mensajeAnimacion 2s ease-in-out infinite;

    text-align: center;

    transform: rotate(0deg);

    color: white;

    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;

    margin: 2px 0 0;

    letter-spacing: 1px;

    text-shadow: 0 0 10px darkorange;

    -webkit-text-stroke: 0.5px darkorange;

    transition: transform 0.3s ease;
}


@keyframes mensajeAnimacion
{
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(0deg) scale(1.075);
    }
}


h2
{
    text-align: center;

    color: white;

    font-size: 24px;
    font-weight: bold;

    margin: 5px 0;

    letter-spacing: 2px;

    text-shadow: 0px 0px 5px darkorange;

    -webkit-text-stroke: 1.25px darkorange;

    transition: transform 0.3s ease;

    text-decoration: underline darkorange 2px;
}


.zona_superior
{
    display: grid;

    grid-template-columns: 1fr 1fr;

    min-height: 300px;
}


.entradas
{
    min-height: 250px;
    min-width: 0;

    NOborder-right: 1.5px solid var(--verde);
}


.entrada
{
    margin: 20px;
    padding: 15px;

    border: 3px double var(--verde);
    border-radius: 15px;

    color: white;

    -webkit-text-stroke: 0.25px darkgreen;

    font-weight: bold;

    max-width: none;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    transition: transform 0.2s ease;
}


.entrada:hover
{
    transform: scale(1.075);
}


.entrada .fecha
{
    margin-left: auto;

    white-space: nowrap;
    flex-shrink: 0;
}


.entrada .titulo
{
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.seccion_derecha
{
    display: flex;
    flex-direction: column;

    min-height: 300px;
    min-width: 0;

    NOborder-left: 1.5px solid var(--verde);
}


.seccion_derecha img
{
    flex: 1 1 0px;
    min-height: 0;

    box-sizing: border-box;
    width: calc(100% - 40px);

    margin: 15px 20px 20px;

    object-fit: fill;

    border: 3px double var(--verde);
    border-radius: 15px;
}


/*
.separador
{
    border-top: 3px double var(--verde);

    margin: 0 0 0px;
}
*/


.seccion_inferior
{
    min-height: 175px;
}


.ventana_entrada
{
    display: none;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 700px;
    max-width: 90%;
    box-sizing: border-box;
    max-height: min(520px, 90vh);

    padding: 10px 20px 20px;

    border: 3px double var(--verde);
    border-radius: 20px;

    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    box-shadow: 0 0 15px var(--verde);
}


.ventana_entrada.abierta
{
    display: flex;
    flex-direction: column;
}


#ventana_marco
{
    width: 100%;
    flex: 0 1 auto;
    min-height: 0;

    border: none;
}


.cerrar
{
    display: block;
    margin: 0 0 5px auto;

    background-color: black;
    color: white;

    border: 3px double var(--verde);
    border-radius: 10px;

    padding: 5px 12px;

    font-family: 'Yomogi', cursive;
    font-weight: bold;
    font-size: 18px;

    flex-shrink: 0;

    cursor: pointer;

    transition: transform 0.2s ease;
}


.cerrar:hover
{
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--verde);
}


.boton_musica
{
    position: fixed;

    top: 15px;
    right: 15px;

    z-index: 10;

    background-color: rgba(0, 0, 0, 0.75);
    color: white;

    border: 3px double var(--verde);
    border-radius: 10px;

    padding: 5px 12px;

    font-family: 'Yomogi', cursive;
    font-weight: bold;
    font-size: 18px;

    cursor: pointer;

    transition: transform 0.2s ease;
}


.boton_musica:hover
{
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--verde);
}


/* ---------- MÓVIL ---------- */

@media (max-width: 700px)
{
    body
    {
        background-size: cover;
    }


    .panel_principal
    {
        box-shadow: 0 0 25px var(--verde);
        height: auto;
        margin: 55px 0;
    }


    .cabecera
    {
        /* Mismo margen arriba y a los lados */
        padding: 8px 8px 6px;
    }


    .panel_principal
    {
        border-width: 3px;
    }


    .logo
    {
        width: 44px;
        height: 44px;

        border: 3px double darkorange;
        border-radius: 9px;

        box-shadow: 0 0 0px darkorange;
    }


    .logo:hover
    {
        box-shadow: 0 0 13px darkorange;
    }


    .titulo_cabecera
    {
        height: 44px;
    }


    .hueco_buscador
    {
        width: 44px;
    }


    .panel_principal h1
    {
        text-align: center;

        color: grey;

        font-size: 32px;
        font-weight: bold;
        line-height: 1;

        margin: 0;

        letter-spacing: 1px;

        text-shadow: 0 0 10px var(--verde);

        -webkit-text-stroke: 1px var(--verde);

        transition: transform 0.3s ease;
    }


    .net
    {
        color: white;

        font-size: 32px;
        font-weight: bold;

        margin: 0;

        letter-spacing: 1px;

        text-shadow: 0 0 20px darkorange;

        -webkit-text-stroke: 1.5px darkorange;

        transition: transform 0.3s ease;
    }


    .mensaje
    {
        animation: mensajeAnimacion 2s ease-in-out infinite;

        text-align: center;

        transform: rotate(0deg);

        color: white;

        font-size: 9.8px;
        font-weight: bold;
        line-height: 1.2;

        margin: 0;

        letter-spacing: 1px;

        text-shadow: 0 0 10px darkorange;

        -webkit-text-stroke: 0.5px darkorange;

        transition: transform 0.3s ease;
    }


    h2
    {
        text-align: center;

        color: white;

        font-size: 14.8px;
        font-weight: bold;

        margin: 5px 0;

        letter-spacing: 2px;

        text-shadow: 0px 0px 5px darkorange;

        -webkit-text-stroke: 1.25px darkorange;

        transition: transform 0.3s ease;

        text-decoration: underline darkorange 2px;
    }


    .zona_superior
    {
        grid-template-columns: 1fr;

        min-height: 0;
    }


    .entradas
    {
        min-height: 0;
        max-height: 250px;

        overflow-y: auto;
    }


    .entrada
    {
        margin: 12px;
        padding: 9px;

        border-width: 3px;
        border-radius: 9px;

        font-size: 12px;
    }


    .seccion_derecha img
    {
        width: calc(100% - 24px);

        margin: 7px 12px 12px;

        border-width: 3px;
    }


    .ventana_entrada
    {
        width: 80%;
        max-height: min(450px, 90vh);

        padding: 8px 12px 12px;

        border-radius: 14px;
        border-width: 3px;

        box-shadow: 0 0 20px var(--verde);
    }


    .cerrar
    {
        margin-bottom: 4px;

        padding: 3px 8px;

        border-radius: 8px;
        border-width: 3px;

        font-size: 14px;
    }


    .boton_musica
    {
        top: 15px;
        right: 8px;

        padding: 4px 10px;

        border-width: 3px;

        font-size: 16px;
    }
}


/* ---------- MÓVIL MUY ESTRECHO ---------- */

@media (max-width: 350px)
{
    .logo
    {
        width: 40px;
        height: 40px;

        border-radius: 8px;
    }


    .titulo_cabecera
    {
        height: 40px;
    }


    .hueco_buscador
    {
        width: 40px;
    }


    .panel_principal h1
    {
        font-size: 28px;
    }


    .net
    {
        font-size: 28px;
    }
}
