/*===============================================*/
/*   Fernando Arroyo Almodóvar                   */
/*===============================================*/


/*===============================================*/
/*   elimina inconsistencias entre navegadores   */
/*===============================================*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}
/*===============================================*/
/*   Estilos generales                           */
/*===============================================*/
body{
    background-color: whitesmoke;
    margin-top: 0.5%;
    margin-bottom: 0.5%;
    margin-left: 0.5%;
    margin-right: 0.5%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    background-color: #f5f5f5;
    padding: 20px;
}

header{
    background-color: #F44336;
    height: 320px;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin-right: 0.5%; 
    padding-right: 0.5%;
    border: 2px solid #000;
    border-bottom: none;
    justify-content: center; 
    align-items: center;
    display: flex;
    overflow: hidden;
}
nav{
    background-color: #F44336;
    float: left;
    height: auto;
    width: 100%;
    margin-top: 0px;
    border: 2px solid #000;
    border-bottom: none;
    border-top: none;
}

li{
    list-style: none;
}

h1{
    color: #212121;
    font-size: 36px;
    /*font-family: Arial, Helvetica, sans-serif;*/
    margin-bottom: 0.5%;
    margin-top: 0%;
    margin-left: 0.5%;
    margin-right: 0.5%;
    padding-top: 2%;
} 
h2{
    color: #212121;
    font-size: 28px;
    /*font-family: Arial, Helvetica, sans-serif;*/
    margin-bottom: 0.5%;
    margin-top: 0.0%;
    margin-left: 0.5%;
    margin-right: 0.5%;
} 

h3{
    color: #212121; 
    font-size: 22px;
    /*font-family: Arial, Helvetica, sans-serif;*/
    margin-bottom: 0.5%;
    margin-top: 0.0%;
    margin-left: 0.5%;
    margin-right: 0.5%;
} 
h4{
    color: #212121; 
    font-size: 20px;
    /*font-family: Arial, Helvetica, sans-serif;*/
    margin-bottom: 0.5%;
    margin-top: 0.0%;
    margin-left: 0.5%;
    margin-right: 0.5%;
} 

p{
    color: #212121; 
    font-size: 18px;
    /*font-family: Arial, Helvetica, sans-serif;*/
    margin-left: 0.5%;
    margin-right: 0.5%;
    padding: 5px;
}

/*===============================================*/
/*   Contenedores                                */
/*===============================================*/
nav .list{

    padding: 0px 0px 0px 0px;
    margin: 0px;
    width: auto;
    height: auto;
    display:flex;
    justify-content: space-around;
    align-items: center;
    background-color:#F44336;
    gap: 2%; 
}

nav .list a{
    display: block;
    text-transform: uppercase;
    padding: 10px 0px 10px 0px;
    margin-right: 10px;
    font-size: 20px;
    font-weight:normal;
    color: #ffffff;
    text-decoration: none; 
    border: none;
    border-bottom: 4px solid #F44336;
} 
nav .list a:hover{

    border: none;
    border-bottom: 4px solid #FFEB3B;  
}
footer .footer-data table{
    color: #ffffff;
    background-color: #212121;
    margin: 0;
    margin-left: 1%;
    padding: 1%;
    text-align: center;
    float: left;
}

/*===============================================*/
/*   Componentes reutilizables                   */
/*===============================================*/
/*-----------------------------------------------*/
/*   Componentes relativos al header             */
/*-----------------------------------------------*/
.header-img-1{
  width: auto; 
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  }

/*-----------------------------------------------*/
/*   Componentes relativos al footer             */
/*-----------------------------------------------*/

 .footer-data{
    background-color: #212121;
    float: left;
    height: auto;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 0.5%;
    margin-right: 0%;
    margin-left: 0%;
    padding: 0px;
    overflow:-moz-hidden-unscrollable;
}
.td-footer-data-img{
    color: #ffffff;
    background-color: #212121;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    width: auto;
    height: auto;
    max-width: 100px;
    max-height: 100px;
  }
.footer-data p{ 
    background-color: #F44336;
    color: #ffffff;
    font-size: 12px;
    /*font-family: Arial, Helvetica, sans-serif;*/
    float: right;
    margin: -1% 5% 1% 1%;
    padding: 5% 1% 0.5% 1%;
    border:#F44336;
    border-bottom: #FFEB3B;
    border-style:solid;
}

.footer-data svg{
    stroke:#212121;
    fill:#ffffff;
    position: relative;   /* lo fijamos dentro del contenedor */
    left: 2px;
    padding: 10px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    
}
/*-----------------------------------------------*/
/*   Componentes relativos a bordes              */
/*-----------------------------------------------*/
.border-line-1{
  border: 2px solid #000; 
  padding: 10px 5px 5px 5px;          
  margin: 25px 0px 5px 0px;   
  /*box-shadow: 0 0 10px #FFEB3B;*/      
}
.border-line-2{
  border: 2px solid #000; 
  padding: 10px 5px 5px 5px;          
  margin: 25px 0px 5px 0px; 
  /*box-shadow: 0 0 20px #FFEB3B;*/      
}
.border-line-3{
  border: 2px solid #000; 
  padding: 10px 5px 5px 5px;          
  margin: 25px 0px 5px 0px; 
  overflow:auto;
}
.border-line-4{
  border: 2px solid #000; 
  padding: 10px 5px 5px 5px;          
  margin: 25px 0px 5px 0px; 
  overflow:auto;
}

/*-----------------------------------------------*/
/*   Componentes relativos a tablas              */
/*-----------------------------------------------*/

.block-1{
  justify-content: center; 
  align-items: center;
}
.table-a1{
    margin: 0%;
    display: inline;
}
.tr-a1 {
    text-align: center;
    vertical-align: middle;
    height: auto;
    width: auto;
    
}
.tr-a1 td {
    padding: 5px;
}
.tr-a1 img {
    max-width: 100%;   
    max-height: 100%;

}
 .tr-a2 {
    text-align: center;
    vertical-align: middle;

}
.tr-a2 td {
    background-color: #F44336;
    color:#ffffff;
    padding: 5px;
    border-radius: 10px;
    border: none;
    border-bottom: 4px solid #F44336;
}
.tr-a2 td:hover {
    color:#ffffff;
    background-color: #F44336;
    padding: 5px;
    border-radius: 10px;
    border: none;
    border-bottom: 4px solid #FFEB3B;
}

.tr-a2 td a{
    color:#ffffff;
    background-color: #F44336;
    padding: 5px;
    border: none;
    text-decoration-line: none;
    display: block;
}
.tr-a2 td a:hover{
    color:#ffffff;
    background-color: #F44336;
}
.tr-a2 td a:focus{
    color:#ffffff;
    background-color: #F44336;
}
.tr-a2 td a:link{
    color:#ffffff;
    background-color: #F44336;
}
.tr-a2 td a:visited{
    color:#ffffff;
    background-color: #F44336;
}
/*-----------------------------------------------*/
/*   Componentes relativos a imagenes            */
/*-----------------------------------------------*/
.img-background{
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    width: 100%;
    height: auto;
}
.img-background:hover{
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

.img-container {
    position: relative;
    width: 100%; 
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit:cover;
    object-fit: contain;
}

.img-animed {
    display: block;
    width: 100%;
    height: auto;
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFEB3B;
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
}

.img-container:hover .img-overlay {
    height: 100%;
}

.img-text {
    white-space: nowrap; 
    color: white;
    font-size: 40px;
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}
.img-text a{
    text-decoration-line: none;
    background-color: #FFEB3B;
    color: #ffffff;
}
.img-text a:hover{
    background-color: #FFEB3B;
    color: #ffffff;
}
.img-text a:focus{
    background-color: #FFEB3B;
    color: #ffffff;

}
.img-text a:link{
    background-color: #FFEB3B;
    color: #ffffff;
}
.img-text a:visited{
    background-color: #FFEB3B;
    color: #ffffff;
}

.border-line-4 img{
  max-width: 50%;
  width: auto;
  height: auto;
}
/*===============================================*/
/*   Componentes relativos a botones             */
/*===============================================*/
.standardButton {
  margin: 0px;
  padding: 0px;
  width: 100%;
  background-color: #F44336;
  color:#ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  
}
.standardButtonss:hover {
    margin-top: 0px;
    color:#ffffff;
    background-color: #F44336;
    padding: 0px;
    border-radius: 4px;
    border: none;
    border-bottom: 4px solid #FFEB3B;
}
/*===============================================*/
/*   Componentes con ID                          */
/*===============================================*/
#list-recomend{
    color: #212121; 
    font-size: 18px;
    /*font-family: Arial, Helvetica, sans-serif;*/
    margin: 1% 0.5% 0.5% 0.5%;
    padding: 0.5% 0.5% 1% 1%;
    box-shadow: 0 0 20px #FFEB3B;  
}


/*===============================================*/
/*   componentes de formulario de registro       */
/*===============================================*/
#formularioRegistro {
  max-width: 400px;
  margin: 20px auto;
  padding: 15px;
  background-color: #ddd;
  border-radius: 8px;
    font-size: 18px;
}

#formularioRegistro label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-style: italic;
}

#formularioRegistro input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 0 5px #FFEB3B;
  font-size: 16px;

}

#formularioRegistro select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 0 5px #FFEB3B;
  font-size: 16px;

}


#formularioRegistro button[type="reset"] {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  background-color: #a4a4a4;
   color:#ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  border-bottom: 4px solid #a4a4a4;
}

#formularioRegistro button:hover[type="reset"] {
    margin-top: 15px;
    color:#ffffff;
    background-color: #a4a4a4;
    padding: 10px;
    border-radius: 4px;
    border: none;
    border-bottom: 4px solid #FFEB3B;
}

#provincia option {
  font-family: 'Verdana', sans-serif;
  font-size: 16px;
  color: #212121;
  background-color: #ffffff;
}

#confirmar {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  background-color: #212121;
   color:#ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  border-bottom: 4px solid #212121;
}
#confirmar:hover {
    margin-top: 15px;
    color:#ffffff;
    background-color: #212121;
    padding: 10px;
    border-radius: 4px;
    border: none;
    border-bottom: 4px solid #FFEB3B;
}

/*===============================================*/
/*   Media querys                                */
/*===============================================*/

/* === Smartphones (hasta 480px) === */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    padding: 10px;
  }

  .list {
    flex-direction: column;
    gap: 10px;
  }
}

/* === Tablets verticales (481px a 768px) === */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    font-size: 15px;
    padding: 15px;
  }

  .list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
}



