body{
    margin: 0;
    padding: 0;    
}
/*Bienvenido a la posicion 1*/
.header{
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../imagenes/moneyEuros.jpg);
    background-size: cover;
    width: 100%;
    height: 22.5rem;
    padding: 10px;    
}
/*Boton de regreso al inicio ubicado en header*/
.btn1{
    color:blue;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    width: 100px;
    height: 30px;
    background-color: azure;
    margin-right: 20px;
    padding-top: 20px;
    border-radius: 10px;    
}
a:hover {
    background-color: antiquewhite;
}
/*texto Bienvenido a la posicion 1*/
.welcome{    
    color: rgb(0, 0, 0);
    font-size: 30px;
    font-style:italic;
    font-weight: bold;
    text-align: center;
}
/*barra del Carrusel de años*/
.nav{
    height: 100px;
    width: 100%;    
    background-color: rgb(245, 232, 212);
    border-radius: 10px;
    margin-top: 5px;
    
}
/* <h3> texto titulo Carrusel de años 2024 hasta 1991</h3> */
.welcome2{   
    color: rgb(241, 21, 21);
    font-size: 24px;
    text-align: center;
    margin: auto;
    margin-bottom: 5px;
    margin-top: 10px;    
}
/* a ref / posicion1H/posicion12024.php... hasta 1991*/
.carrusel{
    display: flex;
    flex-wrap: nowrap;
    overflow: scroll;
    text-align: center;
}
/*.elemento{
    flex: 1 0 auto;
    margin: 0px 5px;
    background-color: lightblue;
    width: 50px;
    height: 35px;
    color: red;
    font-weight: bold;
    border-radius: 10px;
    padding: 8px 2px 1px 2px;
    border: solid 2.5px orange;
    text-decoration: none;   
   
}*/
.contenedor{
    display: flex;
    height: 100vh;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}
.btn{
    background-color: lightcyan;
    position: relative;
    padding: 12px 45px 10px 16px;
    text-decoration: none;
    color: red;
    letter-spacing: 1px;
    text-align: left;
    margin-left: 5px;
}
/*Botones años 2023, 2015, 2007, 1999, 1991*/
.btn-2{
    overflow: hidden;
    border: 3px solid #03cc57;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}
.btn-2::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: 0;
    top: -200%;
    background-color: #03cc57;
    border-radius: 5px;
    transition: all 0.6s ease;
    z-index: -1;
}
.btn-2:hover::before{
    top: 0;
    border-radius: 0%;
}
/*Botones años 2022, 2014, 2006, 1998 */
.btn-3 {
    overflow: hidden;
    border: 3px solid #f0b23f;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}

.btn-3::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: 0;
    top: -200%;
    background-color: #f0b23f;
    border-radius: 5px;
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-3:hover::before {
    top: 0;
    border-radius: 0%;
}
.btn-4 {
    overflow: hidden;
    border: 3px solid #87e5c6;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}
/*Botones años 2021, 2013, 2006, 1998*/
.btn-4::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: 0;
    top: -200%;
    background-color: #87e5c6;
    border-radius: 5px;
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-4:hover::before {
    top: 0;
    border-radius: 0%;
}
/*Botones años 2020, 2012, 2004, 1996*/
.btn-5 {
    overflow: hidden;
    border: 3px solid #f3ed95;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}

.btn-5::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: 0;
    top: -200%;
    background-color: #f3ed95;
    border-radius: 5px;
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-5:hover::before {
    top: 0;
    border-radius: 0%;
}
/*Botones años 2019, 2011, 2003, 1995*/
.btn-6 {
    overflow: hidden;
    border: 3px solid #8ea4ee;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}

.btn-6::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: 0;
    top: -200%;
    background-color: #8ea4ee;
    border-radius: 5px;
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-6:hover::before {
    top: 0;
    border-radius: 0%;
}
/*Botones años 2018, 2010, 2002,1994*/
.btn-7 {
    overflow: hidden;
    border: 3px solid #f0928b;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}

.btn-7::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: 0;
    top: -200%;
    background-color: #f0928b;
    border-radius: 5px;
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-7:hover::before {
    top: 0;
    border-radius: 0%;
}
/*Botones años 2017, 2009, 2001, 1993*/
.btn-8 {
    overflow: hidden;
    border: 3px solid #cef080;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}

.btn-8::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: 0;
    top: -200%;
    background-color: #cef080;
    border-radius: 5px;
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-8:hover::before {
    top: 0;
    border-radius: 0%;
}
/*Botones años 2024, 2016, 2008, 2000, 1992*/
.btn-9 {
    overflow: hidden;
    border: 3px solid #f080ea;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1;
}

.btn-9::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200%;
    left: 0;
    top: -200%;
    background-color: #f080ea;
    border-radius: 5px;
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-9:hover::before {
    top: 0;
    border-radius: 0%;
}
/*inicio de la segunda parte*/
/*El cuerpo de las nuevas ventanas*/
/*.principal{
    width: 1580px;
    height:1408px;
    background-color: lightgoldenrodyellow;
    margin-top: 10px;
    margin-left: 40px;
    border-radius: 10px;
}
/*Barra de navegacion con 4 botones*/
/*.chartMenu1{
    width: 1580px;
    height: 56px;
    color: rgb(237, 90, 16);
    background-color: #aabaf0;
    margin-top: 0;
    border-radius: 10px;
}

/*Botones barra de navegacion en chartMenu1 */
/*.navegar li a{
    text-decoration: none;
    color: rgb(45, 89, 231);
    padding: 18px;
    display: block;
    width: 120px;
    
}
.navegar li{
    display: inline-block;
    text-align: center;
    margin-left: 140px;
    width: 150px;
    height: 50px;
    background-color: #98ebbb;
    border: 2px solid red;
    border-radius: 15px;
    margin-top: 2px;
}
.navegar li a:hover{
    background-color: rgb(240, 194, 194);
    border-radius: 15px;
    width: 115px;
    height: 13px;
}
/*hello rivas - inicio*/
/*.caja1{
    width: 1500px;
    height: 550px;
    margin-left: 40px;    
}
/*segunda ventana HOLA PERU - graficos*/
/*.caja2{
    width: 1500px;
    height: 812px;
    margin-left: 40px;
}

/*tercera ventana HOLA MUNDO FELIZ - proyecciones*/
/*.caja3 {
    width: 1500px;
    height: 790px;
    background-color: rgb(148, 128, 240);
    margin-left: 40px;
}
/*cuarta ventana VERANO - VALORES*/
/*.caja4 {
    width: 1500px;
    height: 790px;
    background-color: rgb(216, 235, 177);
    margin-left: 40px;
}
/*quinta ventana   falta poco*/
/*.caja5 {
    width: 1500px;
    height: 650px;
    background-color: rgb(148, 128, 240);
    margin-left: 40px;
}
/* <h4> titulos de cada ventana dentro del recuadro */
/*.ventana {
    text-decoration: none;
    padding-top: 15px;
    font-weight: bold;
    display: flex;
    list-style-type: none;
}
/*nombre de la ventana*/
/*.v1{
    color: aliceblue;
    margin-left: 30px;
    
}
/*boton de volver*/
/*.v2{
    margin-left: 1155px;
    width: 100px;
    height: 25px;
    border: 2px solid red;
    border-radius: 10px;
    padding: 3px 3px;
    text-align: center;
    background-color: #cef080;
    text-decoration: none;
}   
.v2:hover{
    background-color: aliceblue;
}
.v3{
    text-decoration: none;
    
}*/
.footer-container {
    display: flex;
    justify-content: center;
    gap: 150px;
    align-items: center;
    padding: 20px;
    background-color: #2e7d32;
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-top: 40px;
}
/*Héctor Veramendi Vernazza*/
.footer.izquierda,
.footer.derecha {
    display: flex;
    flex-direction: column;
}
/*Madrid - España - 2024*/
.footer.izquierda {
    text-align: left;
    margin-right: 10px;
    font-size: 20px;
    font-style: italic;
}

/*.name {
    color: rgb(219, 63, 63);
    text-align: left;
    font-size: 20px;
    font-weight: bold;
    margin-left: 200px;
    margin-top: 17px;

}

.country {
    color: rgb(219, 63, 63);
    text-align: right;
    font-size: 20px;
    font-weight: bold;
    margin-left: 750px;
    margin-top: 17px;
}
/*.ecua1{
    background-color: aquamarine;
    color: blue;
    font-size: 20px;    
    border: 2px solid red;
    width: 180px;
    height: 50px;
    margin-left: 500px;
    padding-left: 60px;
    padding-top: 20px;
}
/*primera tabla caratula en Bienvenido a la posicion1*/
/*.estadista{
    border-collapse: collapse;
    margin: 20px 20px;
    min-width: 450px;
    box-shadow: 0 0 20px rgba(0,0,0,0.20);
    margin-left: 70px;
}
.estadista thead tr{
    background-color: aquamarine;
    text-align: middle;
}
.estadista th,
.estadista td{
    padding: 10px 60px;
}
.estadista tbody tr{
    border-bottom: 1px solid #dddddd;
}
.estadista tbody tr:nth-of-type(even){
    background-color: #f3f3f3;
}
.estadista tbody td:hover{
    background-color: lightgray;
}

/* segunda tabla graficos*/
/*viene de charts2.html style1.css* barras numero 1/
/* =========================================================
   1. CONFIGURACIÓN PARA MÓVILES (Pantallas de menos de 768px)
   ========================================================= */
@media (max-width: 480px) {
  .header {
    display: flex;
    flex-direction: column; /* El botón INICIO se coloca debajo del saludo */
    align-items: center;
    gap: 12px;
    padding: 15px;
    text-align: center;
  }

  .welcome {
    font-size: 1.2rem; /* Achica un poco el texto en el móvil */
  }

  .carrusel {
    display: flex !important;
    overflow-x: auto !important; /* Activa el desplazamiento de lado con el dedo */
    white-space: nowrap !important;
    gap: 8px;
    padding: 12px 5px;
    -webkit-overflow-scrolling: touch; /* Desplazamiento suave en iPhone/Android */
  }
  
  .footer-container {
    flex-direction:column;
    gap: 10px;
    text-align: center;
    padding: 15px;
  }
}

/* =========================================================
   2. CONFIGURACIÓN PARA TABLETS )
   ========================================================= */
@media (min-width: 481px) and (max-width: 768px) {
  .header {
    display: flex;
    flex-direction: row; /* El saludo y el botón vuelven a estar uno al lado del otro */
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .carrusel {
    display: flex;
    overflow-x: auto; /* Si la tablet es pequeña, aún permite arrastrar los botones */
    gap: 10px;
    padding: 15px;
  }
}
/*PORTATILES*/
@media (min-width: 769px) and (max-width: 1024px) {
  .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
  }

  .carrusel {
    display: flex;
    gap: 12px;
    padding: 20px;
  }
  #footer-container {
    height: auto;
    padding: 5px;
  }
}

/* =========================================================
   3. CONFIGURACIÓN PARA PC / PANTALLAS GRANDES (De 1200px en adelante)
   ========================================================= */
@media (min-width: 1025px) {
  /* Aquí el navegador ignorará todo lo anterior y aplicará tus 
     estilos originales de 502 líneas, asegurando que en tu 
     pantalla grande se vea exactamente como a ti te gusta. */
  .header {
    padding: 25px 40px;
  }
}
