/* Hoja de Estilo REINES D'ARAGÓ Y DE VALÈNCIA */
@font-face {
  font-family: 'Seagram';
  src: url('../fuentes/Seagram tfb.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  src: url('../fuentes/Roboto-Regular.ttf') format('truetype');
}
/*@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;1,500&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&display=swap');*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1{
    font-size: 3em;
}
h2{
    font-size: 2em;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow:row wrap;
     font-family: 'Seagram', sans-serif;
}

.cabecera {
    width: 100%;
    height: 30vh;
    display: flex;
    justify-content: center;    /*Centrado horizontal*/
    align-items: center;        /*Centrado Vertical*/
    flex-flow: row wrap;        /*Si la anchura es menor, los elementos pasan de fila a columna*/
    text-align: center;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    background-size: cover;
    background-position: center;
}
.cab1{
    flex-grow: 1;
    padding: 0.5em 0;
    text-align: center;
    color: rgb(255,255,255);
    height:auto;
    width: 15%;
}
.cab1 img{
    width: 100%;
    height: auto;
    object-fit: cover;
}
.cab2{
    flex-grow: 5;
    padding: 0.5em 0;
    text-align: center;
    color: rgb(255,255,255);
    height:auto;
    width: 65%;
}
/*  "JUST IN CASE" EL LOGOTIPO DE LA IZQUIERDA ES DIFERENTE DEL DE LA DERECHA...
.cab3{
    lex-grow: 1;
    padding: 0.5em 0;
    text-align: center;
    color: rgb(255,255,255);
    height:auto;
    width: 15%;
}*/
/* === INICIO ESTILO "FRANJA" MENU === */
/* ====== PROPUESTA DE CHAT GPT === */
.menusup {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-image: url("../imagenesreines/pergamino4.jpg");
    color: rgb(0, 0, 0);
    width: 100%;
    height: 7.5vh;
    text-align: center;
    position: relative; /* Asegura que los submenús se posicionen correctamente */
}

.menusup li {
    display: inline-block;
    position: relative; /* Necesario para el submenú */
    margin: 0.75em 1em;
    font-size: 1.5em;
    font-weight: bold;
}

.menusup li:hover {
    background-color: rgb(0, 20, 130);
    color: rgb(255, 255, 255);
    border-radius: 1.5em;
}

.menusup a {
    color: rgb(0, 20, 130);
    text-decoration: none;
}

.menusup a:hover {
    background-color: rgb(0, 20, 130);
    color: rgb(255, 255, 255);
    border-radius: 1.5em;
}

.menusup ul ul {
    display: none;
    position: absolute;
    top: 100%; /* Posiciona el submenú debajo del elemento principal */
    left: 0;
    /*background-color: rgb(255, 194, 102);   Color de fondo del submenú */
    background-image: url("../imagenesreines/pergamino4.jpg");
    padding: 0;
    margin: 0;
    list-style: none;
    width: 200px; /* Ancho del submenú */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Añade una sombra para destacar el submenú */
    border-radius: 15px;
    font-size: 0.75em;
}

.menusup ul ul li {
    display: block;
    margin: 0;
    text-align: left;
}

.menusup ul ul li a {
    padding: 0.5em;
    display: block;
    /*color: rgb(0, 20, 130);*/
    color:rgb(0, 0, 0);
    text-decoration: none;
    font-size: 0.75em;
}

.menusup ul ul li a:hover {
    background-color: rgb(0, 20, 130);
    color: rgb(255, 255, 255);
}

.menusup li:hover > ul {
    display: block; /* Muestra el submenú al pasar el ratón */
}
/* ====== FIN PROPUESTA DE CHAT GPT ==== */


.intro{
    display: flex;
    justify-content: center;    /*Centrado horizontal*/
    align-items: center;        /*Centrado Vertical*/
    flex-flow: row wrap;        /*Si la anchura es menor, los elementos pasan de fila a columna*/
    height: 62.5vh;
    background-color: rgb(0,0,0);
    color: rgb(256,256,256);
}
.leyenda{
    width: 100%;
    height: 100%;
    padding: 5px 15px;
    text-align: justify;
    text-justify: inter-word;
}

.apendice{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 5px 10px;
    border-top: solid 5px rgb(255, 215, 0);
    border-bottom: solid 5px rgb(255, 215, 0);
    background-color: rgb(0, 0, 0);
    color: rgb(256,256,256);
    font-size: 1em;
}

.apendice table{
  border-collapse: collapse;
  width: 70%;
}
th, td {
  text-align: center;
  border-bottom: 1px solid #ddd;
}




.wrapper{
    display: flex;
    justify-content: center;    /*Centrado horizontal*/
    align-items: center;        /*Centrado Vertical*/
    flex-flow: row wrap;        /*Si la anchura es menor, los elementos pasan de fila a columna*/
}




/* === INICIO ESTILO SECCION FOTOS DE REINAS Y VIDEO === */
.fotos_reinas{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    flex-flow: row;
    width: 100%;
}
.video{
    border-radius: 1.5em;
    background-color: black;
}

.galeria1, .galeria2{
    display: flex;
    align-items: center;
   /* border: 2px solid lime; */
    border-radius: 1.5em;
    width: 500px;
    height: auto;
}

.galeria1{
    margin:0 0;
    overflow: hidden;
    }
    .slider1{
    position: relative;
    /*width: 500%;*/
    width: 1000%;
    margin: 0;
    left: 0;
    text-align: left;
    font-size: 0;
    animation: galeria_izq 50s infinite;
    animation-play-state: running;
    
    }
    .slider1:hover{
    animation-play-state: paused;
    }
    .slider1 a img{
    width: 10%;             /*20% al haber 10 fotos (100%/10=10%) */
    float: left;
    }
    @keyframes galeria_izq{
     0%   { left: 0%; }           /*empieza en posicion inicial*/
     10%  { left: 0%; }      /*cambio de la primera a la segunda img*/
     10.15%  { left: -100%; }   /*se queda parado*/
     21.3%  { left: -100%; }   /*cambio de la segunda a la tercera img*/
     22.3%  { left: -200%; }   /*se queda parado*/
     32.45%  { left: -200%; }   
     33.45%  { left: -300%; }
     43.6%  { left: -300%; }
    44.6%  { left: -400%; }     
    54.75%  { left: -400%; }    
    55.75%  { left: -500%; }    
    65.9%  { left: -500%; }
    66.9%  { left: -600%; }    
    77.05%  { left: -600%; }    
    78.05%  { left: -700%; }    
    88.2%  { left: -700%; }    
    89.2%  { left: -800%; }    
    99.35%  { left: -800%; }    
    100%  { left: -900%; }    /*Vuelve a mostrar la primera img para que no haya un salto repentino a la primera img*/
    }
.galeria2{
        margin:0 0;
        overflow: hidden;
        }
        .slider2{
        position: relative;
        /*width: 500%;*/
        width: 1000%;
        margin: 0;
        left: 0;
        text-align: left;
        font-size: 0;
        animation: galeria_der 50s infinite;
        animation-play-state: running;
        animation-direction: reverse;
        }
        .slider2:hover{
        animation-play-state: paused;
        }
        .slider2 a img{
        width: 10%;             /*10% al haber 10 fotos (100%/10=10%) */
        float: left;
        }
        @keyframes galeria_der{
        0%   { left: 0%; }           /*empieza en posicion inicial*/
        10%  { left: 0%; }      /*cambio de la primera a la segunda img*/
        10.15%  { left: -100%; }   /*se queda parado*/
        21.3%  { left: -100%; }   /*cambio de la segunda a la tercera img*/
        22.3%  { left: -200%; }   /*se queda parado*/
        32.45%  { left: -200%; }   
        33.45%  { left: -300%; }
        43.6%  { left: -300%; }
        44.6%  { left: -400%; }     
        54.75%  { left: -400%; }    
        55.75%  { left: -500%; }    
        65.9%  { left: -500%; }
        66.9%  { left: -600%; }    
        77.05%  { left: -600%; }    
        78.05%  { left: -700%; }    
        88.2%  { left: -700%; }    
        89.2%  { left: -800%; }    
        99.35%  { left: -800%; }    
        100%  { left: -900%; }    /*Vuelve a mostrar la primera img para que no haya un salto repentino a la primera img*/
        }

/* === ESTILO SECCION LISTADO DE REINAS == */
.sector1{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../imagenesreines/pergamino11.png);
    background-size: cover;
    background-position: center;
    opacity: 1;
    color: rgb(0, 20, 130);
    padding: 5px 15px;
}
.sector1 img{
    opacity: 1;
}
.sector1 li{
    font-size: 3em;
    margin: 0.5em 0;
    text-decoration: none;
    list-style-type: none;   
}

.sector1 li a{
    color: rgb(0, 20, 130);
    text-decoration: none;
}
.sector1 li a:hover{
    background-color: rgb(0, 20, 130);
    color: rgb(255, 255, 255);
    border-radius: 1.5em;
}
ul li {
    display: flex;
    align-items: center;
    }
ul li a {
    margin-left: 10px; /* Espacio entre la imagen y el nombre */
    }
.sector1 ul li img{
    object-fit: contain;
    margin-left: 10
}
/* =============== ESTILO REINA X   =========== */

.reina{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    background-color: rgb(0, 0, 0);
    width: 100%;
    height: 100vh;
    border-top: solid 5px rgb(255, 215, 0);
    border-bottom: solid 5px rgb(255, 215, 0);
    
    
}
.art11{
    width: 35%;
    height: 97.5vh;
    /*background-color: rgb(0, 0, 0);*/
    /*align-items: center;*/
}
.art11 img{
    width: 100%;
    height: 97.5vh;
    object-fit: contain;
}
.art12{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 65%;
    height: 100vh;
    /*height: 100vh;*/
    /*background-color: rgb(0, 0, 0);*/
}
.art121{
    width: 100%;
    height: 25vh;
    align-content: center;
}
.texto{
    height: 50vh;
    font-size: 1.15em;
    text-align: justify;
    padding: 5px 10px;
    color: rgb(255, 255, 255);
}
.art131{
    width: 100%;
    height: 72.55vh;
    background-color: aqua;
}
.art131 img{
    width: 100%;
    height: 72.55vh;
    object-fit: cover;
}
/* ===== ESTILO DEL CASTING DE REINAS ===== */
.elenc{
    width: 100%;
    height: 75vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color: rgb(0, 0, 0); 
    border-top: solid 5px rgb(255, 215, 0);
    border-bottom: solid 5px rgb(255, 215, 0);
    color: rgb(255, 255, 255); 
}
.elenc_1, .elenc_2{
    border: 2px solid rgb(255, 215, 0);
    border-radius: 20px;
    width: 45%;
    height: 100%;
    margin: 5px;
    padding: 10px;
    
}
.elenc table{
    width: 100%;
    border-collapse: collapse;
}
.elenc th{
    width: 80%;
    height: 2.5em;
    font-size: 1.5em;
    column-span: 2;
    color: rgb(255, 215, 0);
}
.elenc td{
    width: 80%;
    height: 2.5em;
    font-size: 1.15em;
}
.elenc_1 table, elenc_2 table{
   column-width: 45%;
}
.elenc th, .elenc td{
    text-align: center;
    width: fit-content;
}




/* === CONFIGURACIÓN DEL ÁREA DE LAS RRSS === */
footer{
    font-family: 'Roboto';
}
.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    background-color: rgb(0, 0, 0);
    /*font-family: 'Roboto';*/
}

.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, 0, 0);
    /*background-color: rgb(0, 0, 0);
    color: rgb(0, 179, 60);*/
    border-radius: 0.5em;
    padding: 0;
}
.pieizq a:visited {
    color: rgb(0, 230, 75);
    background-color: rgb(217, 217, 217);
}
.pieizq a:visited a:hover{
    color: rgb(255,255,0);
    background-color: rgb(3,201,136);
}
.pieizq img{
    margin-right: 10px;
}

/* === ESTILO DEL ÁREA DE LA  DIRECCIÓN ==== */
address {
    padding-top: 10px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Roboto";
    /*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;
    width: 100%;
    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; */ /* Eliminada esta línea */
    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 PARA MÓVILES Y TABLETS ========================*/
@media screen and (max-width:900px){ 
    .cabecera{
        flex-flow: column;
        height: fit-content;
    }
    .menusup{
        flex-flow: column;
        height: fit-content;
        font-size: 0.75em;
    }
    .menusup ul ul {
        display: none;
        position: absolute;
        top: 100%; /* Posiciona el submenú debajo del elemento principal */
        left: -50px;
        background-color: rgb(255, 140, 26);   /*Color de fondo del submenú */
        /*background-image: url("../imagenesreines/pergamino4.jpg");*/
        padding: 0;
        margin: 0;
        list-style: none;
        width: 125px; /* Ancho del submenú */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Añade una sombra para destacar el submenú */
        border-radius: 15px;
        font-size: 0.75em;
}
    .menusup li:hover > ul {
        display: block; /* Muestra el submenú al pasar el ratón */
    
}
    .intro, .apendice{
        height: fit-content;
        
    }
    .apendice{
        padding: 5px 5px;
        
    }
    .apendice table{
        border-collapse: collapse;
        width: 90%;
}
    .galeria1 .galeria2 .humo{
        height: auto;
    }
    .fotos_reinas{
        flex-direction: column;
    }
    
    .reina{
        display:flex;
        flex-direction:column;
        flex-flow: column;
        height: 200vh;  /* inicialmente 250vh */
    }
    .sector1 ul li a{
        font-size: 1.25em;
    }
    .art11{
        width: 100%;
        height: 100vh;
    }
    .art12{
        width: 100%;
        height:100vh;   /* inicialmente 150vh */
        flex-direction: column;
        flex-flow: column;
    }
    .art12{
        font-size: 1.25em;
    }
    .art121{
        height: 25vh;   /* inicialmente 50vh */
    }
    
    .texto{
        padding: 10px 25px;
        font-size: 0.75em;
        height: fit-content;
    }
    
    

    .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;
    }
    h1{
        font-size: 2em;
    }
    h2{
        font-size: 1.5em;
    }
    .sector1 li{
        font-size: 1em;
        margin: 0.5em 0;
        text-decoration: none;
        list-style-type: none;   
    }
    .elenc{
        flex-direction: column;
        height: fit-content;
    }
    .elenc_1, .elenc_2{
        width:80%;
    }
}    
    .leyenda p{
        font-size: 1em;
    }
    

/* ================= MEDIA QUERY PARA ORDENADORES HASTA 14" ========================*/
@media screen and (min-width: 901px) and (max-width:1280px){
    .leyenda p{
        font-size: 1em;
    }
    .texto{
        padding: 5px 25px;
        font-size: 1em;
    }
    
}

/* ================= MEDIA QUERY PARA ORDENADORES HASTA 16" ========================*/
@media screen and (min-width: 1281px) and (max-width:1536px){
    .leyenda p{
        font-size: 1.15em;
    }
    
}
/* ================= MEDIA QUERY PARA ORDENADORES HASTA 21" ========================*/
@media screen and (min-width: 1537px) and (max-width:2100px){
    .leyenda p{
        font-size: 1.75em;
    }
    
}

/* === FIN DE LA HOJA DE ESTILO DE LA PAGINA ACERCA DE LAS REINES D'ARAGÓ Y VALÈNCIA === */