:root {
    /* Paleta de colores MSX */
    --msx_color_1: #010101; 
    --msx_color_2: #3eb849;
    --msx_color_3: #74d07d;
    --msx_color_4: #5955df;
    --msx_color_5: #8076f1;
    --msx_color_6: #b95e51;
    --msx_color_7: #65dbef;
    --msx_color_8: #db6559;
    --msx_color_9: #ff897d;
    --msx_color_10: #ccc35e;
    --msx_color_11: #ded087;
    --msx_color_12: #3aa241;
    --msx_color_13: #b766b5;
    --msx_color_14: #cccccc;
    --msx_color_15: #ffffff;

    --alto_header: 8em;
    --alto_footer: 4em;
    --margen_primera_seccion: calc(var(--alto_header) + 2em);
    --margen_entre_secciones: 2em;
    --margen_ultima_seccion: calc(var(--alto_footer) + 3em);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 100%;
    line-height: 1.6;
    background-color: var(--msx_color_1);
    color: var(--msx_color_15);
}

a {
    transition: all 0.3s ease;
    text-decoration: underline;
    font-weight: bold;
}

a:hover, .presentacion a:hover, .novedad-social a:hover, .canales a:hover {
    color: var(--msx_color_1);
    text-decoration: underline;
    transform: translateY(-3px);
}

header {
    position: fixed;
    top: 0;
    left: 0; 
    width: 100%;
    height: var(--alto_header);
    background-color: var(--msx_color_1);
    border-bottom: var(--msx_color_10) solid 0.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

header h1 { display: none; }

header img.logo {
    max-height: 8em;
    width: auto;
}

section {
    max-width: 1000px;
    margin: 2em auto;
    padding: 2.5em;
    border-top: 0.3em solid var(--msx_color_15);
}

section.presentacion {
    background-color: var(--msx_color_11);
    margin-top: var(--margen_primera_seccion);
    border-top: none;
    display: block;
    overflow: hidden;
}

.imagen-flotante {
    float: left;
    max-width: 300px;
    height: auto;
    margin-right: 2em;
    margin-bottom: 1em;
    display: block;
}

section.presentacion p {
    color: var(--msx_color_1);
    text-align: justify;
    margin-bottom: 1em;
}

.novedad-social {
    display: flex;
    gap: 1.2em;
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.canales {
    display: flex;
    gap: 1.2em;
}

.novedad-social a, .canales a {
    font-size: 1.5em;
    color: var(--msx_color_1) !important;
    transition: transform 0.2s ease, color 0.2s ease;
    font-weight: bold;
}

.novedad-social a .fa-twitter:hover  { color: #1DA1F2 !important; }
.novedad-social a .fa-twitch:hover   { color: #9146FF !important; }
.novedad-social a .fa-tiktok:hover   { color: #00f2ea !important; }
.novedad-social a .fa-youtube:hover  { color: #FF0000 !important; }
.novedad-social a .fa-instagram:hover { color: #E1306C !important; }
.novedad-social a .fa-facebook-f:hover { color: #1877F2 !important; }
.novedad-social a .fa-blog:hover { color: #ff5722 !important; }
.canales a .fa-ivoox:hover { color: #E76021 !important; }
.canales a .fa-apple:hover { color: #A259FF !important; }
.canales a .fa-spotify:hover { color: #1DB954 !important; }
.canales a .fa-amazon:hover { color: #FF9900 !important; }

.novedad-social:empty, .canales:empty {
    display: none;
}

section.msx {
    background-color: var(--msx_color_5);
}

section.msx ul.temas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3em;
    list-style: none;
    padding: 1em 0;
}

section.msx ul.temas li {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    background-color: var(--msx_color_15);
    border-top: 0.3em solid var(--msx_color_1);
    padding: 1.5em;
}

section.msx ul.temas li img {
    height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

section.msx ul.temas li a:hover img {
    transform: scale(1.03);
}

section.msx ul.temas li .texto-tema {
    margin-top: 1.5em;
    font-weight: bold;
    color: var(--msx_color_1);
    text-align: center;
}

section.novedades {
    background-color: var(--msx_color_4);
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-bottom: var(--margen_entre_secciones);
}

section.ultima {
    margin-bottom: var(--margen_ultima_seccion);    
}

section.primera {
    margin-bottom: var(--margen_primera_seccion);
}

.item-novedad {
    display: flex;
    background-color: var(--msx_color_15);
    border: 0.3em solid var(--msx_color_1);
    padding: 1.5em;
    align-items: center;
    gap: 2em;
}

.novedad-imagen img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.novedad-contenido {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;    
}

.novedad-contenido h3 {
    color: var(--msx_color_1);
    margin-bottom: 0.5em;
}

.novedad-contenido p {
    color: #333;
    margin-bottom: 1em;
}

.enlace-novedad {
    align-self: flex-start;
    color: var(--msx_color_4) !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--msx_color_15);
    border-top: var(--msx_color_10) solid 0.2em;
    padding: 1em;
    text-align: center;
    z-index: 1000;
}

footer p, footer address {
    color: var(--msx_color_1);
    font-size: 0.9em;
}

.novedades-intro,  .presentacion-intro  {
    width: 100%;
    margin-bottom: 2em;
    text-align: left;
}

.presentacion-intro h2, .presentacion-intro p {
    color: var(--msx_color_1);
}

.novedades-intro h2, .novedades-intro p {
    color: var(--msx_color_15);
}


.presentacion-intro h2 {
    border-bottom: 0.1em solid var(--msx_color_1);
}

.novedades-intro p {
    border-bottom: 0.1em solid var(--msx_color_15);
}

.novedades-intro h2,  .presentacion-intro  h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-transform: uppercase;

    display: inline-block;
    padding-bottom: 0.2em;
}

.novedades-intro p,  .presentacion-intro  p {
    font-size: 1.1em;
    max-width: 100%;
    line-height: 1.5;
}

/* --- RESPONSIVE --- */
@media (max-height: 800px) {
    footer, header {
        position: relative;
    }
}

@media (max-width: 768px) {
    section.presentacion, 
    .item-novedad {
        flex-direction: column;
        text-align: center;
    }

    .novedades-intro,  .presentacion-intro  {
        text-align: center;
    }

    .presentacion-imagen img,
    .novedad-imagen img {
        margin: 0 auto;
        max-width: 200px;
        height: auto;
    }

    .enlace-novedad {
        align-self: center;
    }

    .novedad-social, .canales {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .imagen-flotante {
        float: none;
        margin: 0 auto 1.5em auto;
        max-width: 100%;
    }
}