/* krisol.es · css/galeria.css · REV 01 · 26/10/2026 (Fase 6-3): hoja común de las 8 páginas de galería (01disciplinas y las 7 disciplinas), creada a partir de 01disciplinas/css/estilo_galeria.css REV 01; sustituye a las 8 copias de estilo_galeria.css. Nombre de la tarjeta a 0.95rem (antes 1.05rem) para que los nombres largos quepan en 2 líneas. Sin las 4 reglas de iconos del menú superior (rutas relativas que no valen desde /css/ y que /css/rrss.css ya sustituye). Origen: 26/10/2026 (petición de Manuel): tarjetas con el nombre de la disciplina bajo la imagen (.disc-nombre), rejilla de 3 × 3 (2 columnas a ≤ 900 px y 1 a ≤ 600 px) y velo solo sobre la imagen. Versión anterior sin numerar. */
/* Hoja de estilo de la página web galeria */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-style: normal;
}
body{
    background-color: rgb(204, 226, 255);
}
header{
    margin: 10px 0;
    padding: 10px 0;
    width: 100%;
    height: 100px;
    background-color: rgb(153, 197, 255);
}
h1{
    /*margin-top: 10px;*/
    text-align: center;
    color:rgb(0, 0, 0);/* Color interior (texto) */
    text-shadow: 0px 0px 5px rgb(255, 255, 255); /* Contorno de 0px con niebla de 5px en blanco */
}
h2{
    /*margin:10px 0;*/
    text-align: center;
    color:rgb(0, 0, 0);
}
.menu_sup{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    text-align: center;
    color:darkblue;
    background-color: rgb(153, 255, 204);
    width: 100%;
    height: 50px;
}
.menu_sup li {
    display: inline-block;
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 150%;
    font-weight: bold;
}
.menu_sup li {
    height: 50px;
    padding: 10px 0;
    padding-left: 50px;
    margin-left: 50px;
    margin-right: 50px;
    list-style-position: outside;
}
.menu_sup a{
    text-decoration: none;
}
/* REV 01 (hoja común): eliminadas las reglas de iconos .menu_sup li:first-child / nth-child(2) / nth-child(3) / last-child con url("../imagenes/…25.png"); los iconos los pone /css/rrss.css (.rrss-fb … .rrss-tg). */
/* ====== ESTILO PARA LA GALERIA DE IMAGENES ===== */
/* REV 01: rejilla de 3 columnas. Eliminado rev 00, reemplazado por rev 01: display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-evenly; align-content: space-around; */
.seccion1{
    margin-top: 25px;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 250px);
    justify-content: center;
    gap: 20px 60px;
    border: 2px solid rgb(0, 51, 204);
    /*height: 800px;*/
}
/* === MODIFICACIONES PARA INTRODUCIR EL VELO === */

/* Estilo para el velo */
article .velo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* REV 01: el velo cubre solo la imagen, no el nombre. Eliminado rev 00, reemplazado por rev 01: height: 100%; */
    height: calc(100% - 64px);
    background-color: rgba(0, 0, 0, 0.7); /* Color negro con 70% de transparencia */
    color: white; /* Texto en color blanco */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Ocultar el velo al hacer hover sobre el artículo */
article:hover .velo {
    opacity: 0;
}

/* Asegurar que los artículos tengan position: relative para el efecto del velo */
article {
    position: relative;
}

/* Otros estilos existentes para los artículos */
.art1, .art2, .art3, .art4, .art5, .art6, .art7, .art8, .art9 {
    background-color: rgb(179, 255, 217);
    margin: 10px 0;
    border: 2px solid rgb(0, 0, 102);
    border-radius: 25px;
    width: 250px;
    /* REV 01: alto según el contenido (imagen + nombre). Eliminado rev 00, reemplazado por rev 01: height: 250px; */
    height: auto;
    padding: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* REV 01: enlace de la tarjeta en columna (imagen y nombre) */
.seccion1 article > a{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

/* REV 01: nombre de la disciplina bajo la imagen */
.disc-nombre{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 10px;
    /* REV 01 (hoja común): 0.95rem y 0.04em para que los nombres largos («DISEÑO AUTOMOVILÍSTICO ITALIANO») quepan en 2 líneas. Origen (01disciplinas REV 01): font-size: 1.05rem; letter-spacing: 0.06em; */
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-align: center;
    color: rgb(0, 0, 102);
}

.art1 img, .art2 img, .art3 img, .art4 img, .art5 img, .art6 img, .art7 img, .art8 img, .art9 img {  
    max-width: 100%;
    max-height: auto;
    border-radius: 25px;
}

.art1:hover, .art2:hover, .art3:hover, .art4:hover, .art5:hover, .art6:hover, .art7:hover, .art8:hover, .art9:hover {
    background-color: rgb(255, 102, 153);
}

/* === CONFIGURACIÓN DEL ÁREA DE LAS RRSS === */

.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;   
}
.pieizqbig{
    display:flex;                /*Voy a "incrustar" un div dentro de éste para poder */
    flex-direction: row;         /*centrar, vertical y horizontalmente las RRSS */
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;  
    /*border-bottom-left-radius: 20px;*/
    background-color:rgb(32,82,149);
    flex-grow: 1;
    padding: 0.5em 0;
}

.pieizq{
    background-color: rgb(32, 82, 149);
}

.pieizq ul{
    margin-top: 10%;
    font-size: 1em;
    font-weight: bold;
    list-style-type: none;
  /*  margin-left: 10%; */
}
.pieizq a{
    text-decoration: none;
    color: rgb(3, 201, 136);
}
.pieizq a:hover{
    font-size: 1em;
    background-color: rgb(3, 201, 136);
    color: rgb(0, 51, 124);
    border-radius: 0.5em;
    padding: 0;
}
.pieizq a:visited {
    color: rgb(0, 51, 0);
}
.pieizq img{
    margin-right: 10px;
}

/* === ESTILO DEL ÁREA DE LA  DIRECCIÓN ==== */
address {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(20,66, 114);
}
address p{
    text-align: center;
    font-size: 150%;
    color: rgb(3, 201, 136);
    font-weight: bold;
}
address p:last-child{
    color: yellow;
    font-size: 75%;
    margin-top: 2em;
    font-weight: lighter;
}
/* === ESTILO DEL ÁREA DEL MAPA === */
.pieder{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    background-color: rgb(32,82,149);
}
.pieder{
    border-bottom-right-radius: 20px;
    padding: 0.25em 1.5em;
}
.pieder iframe{
    border-radius: 20px; 
}
iframe {
    border: 1px solid black;
    width: 90%; /* takes precedence over the width set with the HTML width attribute */
  }
/* == ESTILO DE LA SUELA == */
.suela{
    height: 10vh;
    background-color: black;
}

/* ESTILO PARA LA FLECHA "Volver al Inicio" FLOTANTE */
#backToTop {
    position: fixed;
    right:25px;
    bottom: 25px;
    display: none; /* Inicialmente oculta */
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #ff0;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000; /* Asegurarse de que esté por encima de otros elementos */
}

#backToTop:hover {
    background-color: #333;
}

#backToTop span {
    font-size: 25px; /* Tamaño de la flecha */
}


/* == MEDIA QUERY ==*/
/* REV 01: 2 columnas de tarjetas en tableta y 1 en móvil */
@media screen and (max-width:900px){
    .seccion1{
        grid-template-columns: repeat(2, 250px);
    }
    .footer{
        flex-direction: column;
    }
    address{
        border-top: 2px solid white;
        border-bottom: 2px solid white;;
    }
    .menu_sup{
        height: 100px;
    }
    .menu_sup li {
        font-size: 100%;
        padding: 15px 0;
        padding-left: 30px;
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* REV 01: 1 columna de tarjetas en móvil */
@media screen and (max-width:600px){
    .seccion1{
        grid-template-columns: 250px;
        padding: 25px 10px;
    }
}
