
@import url(https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap);
@import url('https://fonts.googleapis.com/css?family=Muli&display=swap'); 


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffd2c2;
}

header {
    text-align: center;
    padding: 20px;
}

.contenedor-header {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #FA8072; 
}

.contenedor-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px; /* Ajusta la altura según tu imagen */
}

.contenedor-imagen img {
    max-width: 25%;
    height: auto;
}

.contenedor-texto {
    padding: 20px;
}

h1 {
    font-size: 3em;
    margin-bottom: -10px;
    margin-top: -5px;
}

p {
    font-size: 1.2em;
    line-height: 1.5;
}

.seccion-botones {
    background-color: #fff;
    padding: 20px;
    text-align: center;
}

.contenedor-botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.boton {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    background-color: #FA8072; /* Color del fondo del encabezado */
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.boton:hover {
    background-color: #CC6B5A; /* Color alternativo al pasar el mouse */
}

main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #FA8072;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
}

/* Estilos para el contenedor general */
.contenedor-general {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    gap: 20px;
}

/* Estilos para la parte izquierda */
.contenedor-izquierdo {
    width: 55%;
    text-align: center;
}

.contenedor-izquierdo h3 {
    margin-bottom: 10px;
}

/* Estilos para la parte derecha */
.contenedor-derecho {
    width: 50%;
    text-align: center;
}

.contenedor-derecho h3 {
    margin-bottom: 10px;
}

.foto_curiosidades {
    max-width: 65%;
    height: auto;
    margin-top: 50px;
}

/* Estilos para los recuadros */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 4cm);
    grid-gap: 10px;
    justify-content: center;
    margin-right: 0cm;
}

.grid-item {
    width: 4cm;
    height: 4cm;
    background-color:#a95050;
    border: 1px solid #E9967A; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    position: relative;
    transition: border-radius 0.3s;
}

.grid-item .texto-respuesta {
    display: none;
}

.grid-item:hover .texto-pregunta {
    display: none;
}

.grid-item:hover .texto-respuesta {
    display: block;
}

.grid-item:hover {
    border-radius: 25px;
    background-color: #CD5C5C;
}

/* Botón de subir */
.botones-seccion {
    margin-top: 20px;
    text-align: right;
}

.container {
    width: 100%;
    display: flex;
    padding: 0 20px;
  }
  
  .slide {
    position: relative;
    cursor: pointer;
    height: 80vh;
    flex: 1;
    margin: 10px;
    border-radius: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    transition: .5s
  }
  
  .slide > img {
    width: 100%;
    height: 100%;
  }
  
  .slide > h3 {
    position: absolute;
    color: #fff;
    bottom: 10px;
    left: 10px;
    opacity: 0;
    transition: .5s
    
  }
  
  .slide.active {
    flex: 5;
    
  }
  
  .slide.active > h3{
    opacity: 1
  }

/* Centrando los botones de subir y siguiente */
.botones-seccion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espacio entre los botones */
    margin-top: 20px;
}

/* Botón volver */
button.volver {
    position: relative;
    display: flex;
    flex-direction: row;
    cursor: pointer;
    border: 0;
    vertical-align: middle;
    background: transparent;
    padding: 0;
    width: 12vmax;
    height: auto;
    text-decoration: none;
}

button.volver .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3vmax;
    height: 3vmax;
    background: #000; /* Fondo negro para el círculo */
    border-radius: 1.625vmax;
    z-index: 1;
}
button.volver .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff; /* Flecha blanca */
    z-index: 2;
}

button.volver .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    right: 0.625vmax;
    width: 1.125vmax;
    height: 0.125vmax;
    background: none;
}

button.volver .circle .arrow::before {
    position: absolute;
    content: "";
    top: -0.29vmax;
    left: 0.0625vmax;
    width: 0.625vmax;
    height: 0.625vmax;
    border-top: 0.125vmax solid #fff; /* Flecha blanca */
    border-right: 0.125vmax solid #fff; /* Flecha blanca */
    transform: rotate(225deg);
}

button.volver .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5vmax 0;
    margin: 0 0.2vmax 0 0;
    color: #000; /* Texto "Volver" en negro */
    line-height: 1.6;
    text-align: center;
    text-decoration: none; /* Sin subrayado */
    font-size: 1.8vmax; 
    top: -4px;
    z-index: 3;
    font-family: 'Bebas Neue', cursive;
}

button.volver .button-text a {
    color: #000; /* Texto "Volver" en negro */
    text-decoration: none; /* Sin subrayado */
    font-family: 'Bebas Neue', cursive;
}
.volver:hover .circle {
    width: 100%;
}

.volver:hover .circle .icon.arrow {
    background: #fff; /* Flecha blanca en hover */
    transform: translate(-0.2vmax, 0);
}

button.volver:hover .button-text {
    color: #fff; /* Texto "Volver" en blanco en hover */
}

/* Estilos generales para el botón flotante */
.boton-flotante {
    position: fixed;
    bottom: 20px;
    right: 25px;
    display: none;
    background-color: #000; /* Fondo negro */
    color: #fff; /* Texto blanco */
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    text-align: center;
}

.boton-flotante .flecha {
    font-size: 22px;
    display: inline-block;
    position: relative;
    color: #fff; /* Flecha blanca */
}

.foto_v{
    display: none;
}

.foto_h{
    max-width: 65%;
    align-content: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (orientation: landscape){
    .foto_h {
    display: block;}
}

@media (orientation: portrait){
    .foto_v {
        display: block;}
    }