/*
Rose Variedad Digital CMS
Archivo: public/css/estilo.css

Diseño accesible para NVDA y JAWS
*/


* {

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

}



body {

    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #f4f4f4;

    color: #222;

    line-height: 1.6;

}





/*
---------------------------------------
Accesibilidad
---------------------------------------
*/


.salto-contenido {


    position: absolute;

    top: -50px;

    left: 10px;

    background: #000;

    color: #fff;

    padding: 10px;

    z-index: 9999;


}



.salto-contenido:focus {


    top: 10px;


}



.sr-only {


    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    white-space: nowrap;

    border: 0;


}





a {


    color: #5a189a;

    font-weight: bold;

    text-decoration: underline;


}



a:focus,
button:focus,
input:focus {


    outline: 3px solid #ffbf00;

    outline-offset: 3px;


}







/*
---------------------------------------
Header
---------------------------------------
*/


.header-publico {


    background: #4a148c;

    color: white;

    padding: 25px;

    text-align: center;


}



.logo img {


    width: 150px;

    height: 150px;

    object-fit: contain;


}



.logo h1 {


    font-size: 32px;

    margin: 15px 0;


}







/*
---------------------------------------
Menú principal
---------------------------------------
*/


.menu-publico {


    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 15px;

    margin-top: 20px;


}



.menu-publico a {


    background: white;

    color: #4a148c;

    padding: 12px 18px;

    border-radius: 8px;


}







/*
---------------------------------------
Reproductor de radio accesible
---------------------------------------
*/


.radio-player {


    background: #ffffff;

    color: #222;

    margin: 25px auto 0;

    padding: 20px;

    max-width: 800px;

    border-radius: 12px;

    border: 2px solid #ddd;


}



.player-controles {


    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: center;

    gap: 15px;


}



.player-controles button {


    background: #4a148c;

    color: white;

    border: none;

    padding: 15px 25px;

    border-radius: 8px;

    font-size: 18px;

    cursor: pointer;


}



.player-controles button:hover {


    opacity: .85;


}



.player-controles label {


    font-weight: bold;


}



.player-controles input[type="range"] {


    width: 220px;


}



#estadoRadio {


    font-weight: bold;

    min-width: 150px;


}







/*
---------------------------------------
Contenido
---------------------------------------
*/


main {


    max-width: 1100px;

    margin: auto;


}



section {


    background: white;

    margin: 25px auto;

    padding: 25px;

    border-radius: 12px;


}



h1,
h2,
h3 {


    line-height: 1.3;


}



h2 {


    color: #4a148c;


}





.publicaciones,
.programacion,
.locutores {


    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(260px,1fr)
    );


    gap: 20px;


}





article {


    background: white;

    border: 1px solid #ddd;

    padding: 20px;

    border-radius: 10px;


}





article img {


    max-width: 100%;

    height: auto;


}







audio {


    width:100%;


}








/*
---------------------------------------
Footer
---------------------------------------
*/


.footer-publico {


    background: #222;

    color: white;

    padding: 30px;

    margin-top: 40px;


}



.footer-publico a {


    color:white;


}



.footer-contenido {


    display:grid;

    grid-template-columns:repeat(
        auto-fit,
        minmax(220px,1fr)
    );


    gap:25px;


}



.copyright {


    text-align:center;

    margin-top:25px;


}







/*
---------------------------------------
Móvil
---------------------------------------
*/


@media(max-width:700px){


.menu-publico {


    flex-direction:column;


}



.menu-publico a {


    display:block;


}



.player-controles {


    flex-direction:column;


}



.player-controles input[type="range"] {


    width:100%;


}



section {


    margin:15px;

    padding:15px;


}



.logo h1 {


    font-size:24px;


}



}