body {
    position: relative;
    background-image: url("https://media.istockphoto.com/id/1077235022/es/foto/tres-monos-sabios-en-una-fila-no-o%C3%ADr-ning%C3%BAn-mal-no-ver-ning%C3%BAn-mal-no-hablar-monos-mal-marr%C3%B3n.jpg?s=612x612&w=0&k=20&c=ZXsSjTHRtSa53YqMJHSKAyP6s6j8M9B12_LFgWu8QgQ=");
    width: 100%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 1;
    background-size: cover;
    background-position: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}
.nombre {

    font-size: 20px;
    display: inline-block;
    padding: 8px 18px;
    border: 4px solid rgb(96, 48, 9);
    background-color: #484538;
    color: #a49c6c;
    font-family: 'Eagle lake';
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(96, 48, 9, 0.15);
    margin: 10px auto;
    text-align: center;
    animation: desplazar 10s linear infinite;
}
@keyframes desplazar {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
b {
    font-size: 20px;
}
.nombre2 {
    justify-content: center;
align-items: center;
border: 4px solid rgb(96, 48, 9);
background-image: url("luis2.jpg");
    color:#ece6d8;
    font-family: '16px' 'Eagle lake';
    width: fit-content;
   
    

}

.nombre2:hover {
    transform: scale(1.5);
    transition: transform 0.3s ease;
}


.nombre3 {
display: flex;
    justify-content: center;
    width: fit-content;
    padding: 2px;
    color:#aaa9a7;
}
.nombre4:hover {
    transform: scale(1.5);
    transition: transform 0.3s ease;
}
.nombre4 {

    font-size: 30px;
    display: inline-block;
    padding: 8px 18px;
    border: 4px solid rgb(96, 48, 9);
    background-color: #aca482;
    color: #4a483a;
    font-family: 'Eagle lake';
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(96, 48, 9, 0.15);
    margin: 10px auto;
    text-align: center;

}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
   
    color: rgb(113, 101, 48);
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #31322f;
    background-color: #d78d2d;
    border: solid rgb(167, 115, 20) 10px;
    border-radius: 10px;
    padding: 10px;
    width: fit-content;
    height: fit-content;
}

.hamburger {
    width: 50px;
    height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1100;
}


*,
*::before,
*::after {
    box-sizing: border-box;

}

.hamburger span {
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación a X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menú */
.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff0f5;
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 1rem;
    text-align: right;
    animation: slideDown 0.3s ease forwards;
}

.nav-menu a {

    text-decoration: none;

    font-weight: 500;
    font-size: 1rem;
    transition: color 0.5s ease;
}


.nav-menu a:hover {
    color: #471e0b;
}

.nav-menu.active {
    display: flex;
}

/* Animación */
@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex !important;
        flex-direction: row;
        background: transparent;
        width: auto;
        padding: 0;
    }

    .nav-menu a {
        margin-left: 2rem;
    }
}


/* Prevent horizontal scrolling that can cause content to appear left-shifted */
html,
body {
    overflow-x: hidden;
}

body::before {
    display: block;
    /*position: absolute;*/
    top: 0;
    left: 0;
    width: 40%;
    height: 40%;
    content: url("https://lamenteesmaravillosa.com/wp-content/uploads/2024/01/frase-rene-descartes.png");
    /* Reemplaza con la URL de tu 1 imagen */
    background-repeat: no-repeat;
    /* Opcional: Evita la repetición de la imagen */
    background-size: cover;
    /* Opcional: Ajusta la imagen al tamaño del body */
    z-index: -1;
    /* Asegura que la imagen esté detrás del contenido */
    opacity: 0.7
    /* Ajusta la transparencia (0.0 - 1.0) */
}

body::after {
    display: flex;
    /*position: absolute;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: url("https://media.istockphoto.com/id/497702102/es/foto/da-vinci-vitruv.jpg?s=612x612&w=0&k=20&c=i3nNk-Pg4ktAllZVyaZM25YdQ7S3vazHLsPuGdtCHXI=");
    background-repeat: no-repeat;
    /* Opcional: Evita la repetición de la imagen */
    background-size: cover;
    /* Opcional: Ajusta la imagen al tamaño del body */
    z-index: 100;
    /* Asegura que la imagen esté detrás del contenido */
    opacity: 1;
    /* Ajusta la transparencia (0.0 - 1.0) */
}

#genios {
    font-size: 80px;
    text-align: center;
    width: fit-content;
    padding: 30px;
    border: 4px solid rgb(96, 48, 9);
    background-color: #484538;
    color:#A9AAA7;
    font-family: 'Eagle lake';
}
#genios2 {
    font-size: 40px;
    text-align: center;
    width: fit-content;
    padding: 30px;
    border: 4px solid rgb(96, 48, 9);
    background-color: #484538;
    color:#A9AAA7;
    font-family: 'Eagle lake';
}

#genios1 {
     box-shadow: 1px 1px 30px rgb(96, 48, 9);
    font-size: 40px;
    text-align: center;
    width: fit-content;
    padding: 30px;
    border-radius: 200px;
    background-color: #cac7b6;
    color:rgb(96, 48, 9);
    font-family: 'Eagle lake';
}

.titulo-efecto1:hover {
    transform: scale(1.1);
}

@keyframes nombreAnimacion1 {
    0% {
        color: rgb(255, 170, 0);
    }

    100% {
        color: rgb(48, 25, 25);
    }
}


@keyframes aparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.titulo-efecto2:hover {
    transform: scale(1.1);
}
@keyframes nombreAnimacion1 {
    0% {
        color: rgb(48, 25, 25);
    }

    100% {
        color: rgb(255, 170, 0);
    }
}
@keyframes aparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.titulo-efecto10 {
    animation: aparecer 2s ease-in;
    color: rgb(20, 21, 10);
    background-color: rgb(197, 143, 71);
    border: solid rgb(176, 59, 59) 10px;
    border-radius: 10px;
    width: center;

}
.titulo-efecto11 {
    animation: aparecer 2s ease-in;
    color: rgb(20, 21, 10);
    background-color: rgb(197, 143, 71);
    border: solid rgb(148, 102, 33) 10px;
    border-radius: 10px;
    width: fit-content;
    font-size: 25px;
    padding: 30px;

}

@keyframes slideIn1 {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.titulo-efecto1 {
    animation: aparecer 3s ease-in;
     animation: nombreAnimacion1 2s ease-out forwards;
    color: rgb(67, 44, 18);
    background-color: rgb(67, 44, 18);
    border-radius: 10px;
    width: 200px;

}


.final {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    text-align: center;
    padding: 10px;
    max-width: 250px;
    margin: auto;
    text-decoration: none;
    width: fit-content;
    border: 4px solid rgb(130, 50, 54);
    background-color: #d5bd84;
    color: rgb(34, 38, 39);
    border-radius: 20px !important;
    font-size: 1.5em !important;

}
.final1 {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    text-align: center;
    padding: 10px;
    max-width: 250px;
    margin: auto;
    text-decoration: none;
    width: fit-content;
    border: 4px solid rgb(130, 50, 54);
    background-color: #d7b35f;
    color: rgb(34, 38, 39);
    border-radius: 20px !important;
    font-size: 1.5em !important;

}
.final2 {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    text-align: center;
    padding: 10px;
    max-width: 250px;
    margin: auto;
    text-decoration: none;
    width: fit-content;
    border: 4px solid rgb(28, 28, 26);
    background-color: #d4a94d;
    color: rgb(135, 59, 5);
    border-radius: 20px !important;
    font-size: 1.5em !important;

}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  left: 0;

}
.coment {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    text-align: center;
    padding: 5px;
    max-width: 250px;
    margin: auto;
    text-decoration: none;
    width: fit-content;
    border: 10px dashed rgb(24, 21, 21);
    background-color: #ebb15b;
    color: rgb(34, 38, 39);
    border-radius: 20px !important;
    font-size: 30px !important;
    height: fit-content;
    margin-bottom: 10px;
}
.agradecimientos {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    text-align: center;
    font-size: 50px;
    padding: 10px;
    max-width: 500px;
    margin: auto;
    text-decoration: none;
    width: fit-content;
    border: 4px solid rgb(130, 50, 54);
    background-color: #c3bdb1;
    color: rgb(34, 38, 39);
    border-radius: 50px !important;
    
}

.contenedor {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
   
}
.contenedor1 {
    margin-bottom: 9em;
}
.contenedor2 {
    flex-direction: column !important;
    margin-bottom: 25em;
    align-content: center;
    align-items: center;
    margin-bottom: 500px;
}
.contenedor3 {
    flex-direction: column !important;
    margin-bottom: 25em;
    align-content: center;
    align-items: center;
    margin-bottom: 610px;
}
.contenedor4 {
    flex-direction: column !important;
    margin-bottom: 25em;
    align-content: center;
    align-items: center;
    margin-bottom: 100px;
}
.contenedor5 {
    flex-direction: column !important;
    margin-bottom: 25em;
    align-content: center;
    align-items: center;
    margin-bottom: 100px;
}
.contenedor6 {
    flex-direction: column !important;
    margin-bottom: 25em;
    align-content: center;
    align-items: center;
    margin-bottom: 100px;
}
.contenedor10 {
    flex-direction: column !important;
    align-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.contenedor11 {
    flex-direction: column !important;
    margin-bottom: 35em;
    align-content: center;
    align-items: center;
    margin-bottom: 100px;
}

.alineadoAlcentro {
    display: flex;
    justify-content: center;
    align-items: center;
}


.botonesCentro a {
    width: fit-content;
    text-align: center;
    padding: 10px;
    border-radius: 10px;

}

.botonesCentro2 a {
    width: fit-content;
    text-align: center;
    padding: 10px;
    border-radius: 10px;

}


img {
    height: 200px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    position: relative;
    margin-right: 30px;
}

nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(138, 111, 111);
    border: 5px solid #ccc;
}

nav li:hover ul {
    display: block;
}

nav a {
    text-decoration: none;
    padding: 8px 12px;
    display: block;
}

h2 {
    text-align: center;
    width: 180px;
    padding: 10px;
    border: 4px solid rgb(97, 97, 70);
    border-radius: 20px;
    background-color: rgb(210, 109, 50);
    color: rgb(105, 83, 117);
}

ul a {
    text-align: center;
    width: 100px;
    padding: 5px;
    border: 4px solid rgb(22, 22, 17);
    border-radius: 10px;
    background-color: rgb(136, 123, 96);
    color: #101216;
    display: inline-block;
    margin-top: 50px;
}

.ad {
 
    margin: 20px;
}

p {
    color: rgb(163, 95, 18);
}

.contenedor.personajes {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Columnas iguales y responsivas */
    gap: 60px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    justify-items: center; /* Centra cada imagen horizontalmente */
    align-items: center;    /* Centra cada imagen verticalmente si hay más alto */
    z-index: 2;
    height: 1000px;
}
.contenedor.personajes2 {
 background-color:#2C3B2B;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Columnas iguales y responsivas */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    justify-items: center; /* Centra cada imagen horizontalmente */
    align-items: center;    /* Centra cada imagen verticalmente si hay más alto */
    z-index: 2;
    opacity: 0.8;

}
.contenedor.personajes3 {
 background-color:#85877E;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Columnas iguales y responsivas */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    justify-items: center; /* Centra cada imagen horizontalmente */
    align-items: center;    /* Centra cada imagen verticalmente si hay más alto */
    z-index: 2;
    opacity: 0.8;

    
}
.contenedor.personajes4 {
 background-color:#9C8D7D;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Columnas iguales y responsivas */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    justify-items: center; /* Centra cada imagen horizontalmente */
    align-items: center;    /* Centra cada imagen verticalmente si hay más alto */
    z-index: 2;
    opacity: 0.8;
}
.contenedor.personajes5 {
 background-color:#262C24;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Columnas iguales y responsivas */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    justify-items: center; /* Centra cada imagen horizontalmente */
    align-items: center;    /* Centra cada imagen verticalmente si hay más alto */
    z-index: 2;
    opacity: 0.8;
}
.contenedor.personajes10 {
 background-color:#262C24;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Columnas iguales y responsivas */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    justify-items: center; /* Centra cada imagen horizontalmente */
    align-items: center;    /* Centra cada imagen verticalmente si hay más alto */
    z-index: 2;
    opacity: 0.8;
}

.contenedor.personajes6 {
 background-color:#DFBEA2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Columnas iguales y responsivas */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    justify-items: center; /* Centra cada imagen horizontalmente */
    align-items: center;    /* Centra cada imagen verticalmente si hay más alto */
    z-index: 2;
    opacity: 0.8;
}

.contenedor {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px; /* Espacio entre columnas */
  padding: 40px;
}
.contenedor12 {
  flex-direction: column !important;
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px; /* Espacio entre columnas */
  margin-bottom: 100px;
}


.personaje2 {
  flex: 1 1 300px;
  max-width: 450px;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.personaje3 {
  flex: 1 1 300px;
  max-width: 450px;
  background-color: #c3a87a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.imagen:hover  {
  z-index: 10;
    transform: scale(2.0);  
}

.personaje:hover {
  transform: scale(1.02);
}
.personaje img.ad {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 10px;
  object-fit: cover;
}

.personaje h2 {
  margin-bottom: 15px;
  font-size: 1.2em;
}

.hoverable ul {
  display: none;
  position: absolute;
  background-color: white;
  padding: 10px;
  border: 1px solid #ccc;
  z-index: 1;
  list-style: none;
}

.personaje {
  position: relative;
  display: inline-block;
}

.personaje:hover .hoverable ul {
  display: block;
}

.hoverable ul li {
  margin: 5px 0;
}

.hoverable ul li a {
  text-decoration: none;
  color: #333;
}

.hoverable ul li a:hover {
  text-decoration: underline;
}



.botones-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.boton {
  flex: 1;
  max-width: 150px; /* todos los botones del mismo tamaño */
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.boton:hover {
  background-color: #45a049;
}



/* Imagen */
.personaje img.ad {
    width: 100%;
    /* Ocupa todo el ancho del contenedor */
    height: auto;
    /* Mantiene la proporción */
    max-height: 200px;
    /* Altura máxima para evitar que sean demasiado grandes */
    object-fit: cover;
    /* Asegura que la imagen cubra el espacio sin distorsionarse */
    display: block;
    /* Elimina espacios no deseados debajo de la imagen */
    display: block;
    border-radius: 8px;
    
}

/* Bloque que aparece al hacer hover */
.hoverable {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

/* Mostrar el bloque al hacer hover en el personaje */
.personaje:hover .hoverable {
    display: flex;
}

/* Estilo para h2 */
.hoverable h2 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    text-align: center;
}

/* Lista horizontal de enlaces */
.hoverable ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.hoverable ul li a {
    text-decoration: none;
    background: #e4e4e4;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.hoverable ul li a:hover {
    background: #ccc;
}

.personaje img {
    border-radius: 10px;
    width: 180px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    text-align: center;
}

.personaje img:hover {
    transform: scale(1.5);
    text-align: center;
}

.personaje h2 {
    background-color: #c3c096;
    border: 5px solid #4d4b3b;
    color: #4b3b5f;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 10px;
    width: fit-content;
}

.personaje h2:hover {
    background-color: #b8b38d;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.hoverable {
    display: none;
    background-color: #f2f2f2;
    padding: 10px;
    border: 5px solid #362f2f;
    border-radius: 10px;
    margin-top: 4px;
    width: 180px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.personaje:hover .hoverable {
    display: block;
}

.hoverable ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.hoverable li {
    margin-bottom: 6px;
}

.hoverable a {
    text-decoration: none;
    color: #101216;
    background-color: #4b3b5f;
    font-weight: 500;
}

.personaje .hoverable ul {
    list-style: none;
    padding: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #544141;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.personaje .hoverable ul li a {
    display: block;
    text-decoration: none;
    color: #1b1a22;
    background-color: #b0a0a0;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.personaje .hoverable ul li a:hover {
    background-color: #d5d5d5;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #d9be73;
    /* color claro y neutro */
    color: #383636;
    border: 10px solid black;
    border-radius: 10px;
    /* gris suave para texto */
    font-size: 0.9rem;
    text-align: center;
    padding: 8px 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 2;
    opacity: 0.7;
}

footer p {
    color: rgb(71, 54, 10);
    background-color: #c3c096;
    width: 100%;
    text-align: center;
    align-items: center;
    font-size: 16px;
    font-weight: bolder;
}

#construccion {
    position: relative;
    /* Asegura que el body ocupe al menos la altura de la ventana */
    margin: 0;
    /* Elimina el margen predeterminado del body */
  
    width: fit-content;
    padding: 20px;
    border: 4px dashed yellow;
    background-color: rgb(122, 69, 69);
    color: yellow;
}

/* Dispositivos móviles (hasta 768px) */
@media (max-width: 768px) {

    #genios,
    .final,
    .personaje {
        width: 90%;
        margin: 10px auto;
    }

    body {
        font-size: 20px;
        background-size: 100%;
    }

    .personaje {
        width: auto;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .personaje img {
        width: auto;
        max-width: 100%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
        
    }

    .hoverable {
        width: auto;
    }

    /*#genios,*/
    .final {
        width: 90%;
        margin: 10px auto;
    }

    nav ul {
        flex-direction: row;
        gap: 5px;
    }

    nav li {
        margin-right: 0;
    }

    #construccion {
        min-height: 100vh;
        margin: 0;
        text-align: center;
        width: 100%;
        padding: 10px;
        border: 4px dashed yellow;
        background-color: rgb(244, 15, 15);
        color: yellow;
    }
}

/* Tabletas (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 16px;
    }

    .contenedor.personajes {
        width: 80%;
        margin-top: 200px;
       
    }

    .personaje {
        width: 180px;
    }
}

body::before {
    background-size: contain;
    /* O 'cover' según prefieras */
}

.contenedor {
    flex-direction: row;
    /* En móviles */
}

#construccion {
    /*position: relative;  Permite posicionar el footer de forma absoluta */
    min-height: 100vh;
    /* Asegura que el body ocupe al menos la altura de la ventana */
    margin: 0;
    /* Elimina el margen predeterminado del body */
    text-align: center;
    width: 100%;
    padding: 10px;
    border: 4px dashed yellow;
    background-color: rgb(122, 69, 69);
    color: yellow;
}

@media (min-width: 769px) {
    .contenedor {
        flex-direction: row;
        /* En pantallas grandes */
    }
}

h2,
/*#genios,*/
.final {
    font-size: clamp(20px, 4vw, 80px);
}



@media (max-width: 768px) {
    body::before {
        background-image: url("imagen-desktop.jpg");
    }
}


@media (min-width: 769px) {
    body::before {
        background-image: url("imagen-desktop.jpg");
    }
}

nav a,
.hoverable a {
    padding: 12px 16px;
}

@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }

    .container {
        width: 70%;
    }
}

@keyframes entrada {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.botonesInicio {
    animation: entrada 1s ease-in-out;
    width: fit-content;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    color: rgb(239, 232, 232);
    background-color: #6f5520;

}

.botonesInicio2 {
    animation: entrada 1s ease-in-out;
    width: fit-content;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    color: rgb(28, 26, 26);
    background-color: #ebba5f;

}
.botonesInicio1 {
    animation: entrada 2s ease-in-out;
    width: fit-content;
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    color: rgb(22, 21, 21);
    background-color: #c6b7a7;
    gap: 30px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 13px;
}

.botonesInicio3 {
    animation: entrada 1s ease-in-out;
    width: fit-content;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    color: rgb(243, 236, 236);
    background-color: #c6bd76;

}

#imagenCabecera {
    margin: 0;
    width: 15em;
    height: 12em;
}


#divImagenCabecera {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
}
#divImagenCabecera2 {
    display: flex;
    /*position: absolute;*/
    content: url("https://images.unsplash.com/photo-1493564832173-630cc9e0765d?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OHx8bW9uYSUyMGxpc2ElMjBhbHRhJTIwcmVzb2x1Y2lvbnxlbnwwfHwwfHx8MA%3D%3D");
    background-repeat: no-repeat;
    /* Opcional: Evita la repetición de la imagen */
    background-size: cover;
    /* Asegura que la imagen esté detrás del contenido */
    opacity: 1;
    /* Ajusta la transparencia (0.0 - 1.0) */
    z-index: -1;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 600px;
}

#divImagenCabecera #imagenCabecera:hover {
    transform: scale(3);
}
/* cuadro Yei */

.galeria-productos {
  padding: 40px;
  text-align: center;
}

.galeria-productos h2 {
  font-size: 2rem;
  color: #880e4f;
}

.contenedor-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tarjeta-producto {
  position: relative;
  overflow: hidden;
  border: solid white 10px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
}

.tarjeta-producto img {
  width: 80%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.tarjeta-producto:hover img {
  transform: scale(1.8);
}
.nombre {
    display: inline;
    text-align: center;
    color: #101216;
    background-color: wheat;
    border: solid black 2px;
  border-radius: 10px;
    width: fit-content;
    font-family: 'Eagle lake';
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.tarjeta-producto:hover .overlay {
  opacity: 1;
}

.btn-ver {
  background-color: #A6A8B0;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 10px;
  transition: background 0.3s;
}

.btn-ver:hover {
  background-color: #A6A8B0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-contenido {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.modal-contenido img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-contenido h3 {
  margin: 10px 0;
  font-size: 22px;
  color: #880e4f;
}

.modal-contenido p {
  font-size: 16px;
  color: #555;
}


.cerrar {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
