html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.fondo {
  background-image: url('/static/images/nosotros/Copia.jpg');
  background-size: 200%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

header {
  display: flex;
  align-items: center;
  padding: 40px 25px 20px;
  background-color: transparent;
  position: relative;
  z-index: 1100;
  flex-wrap: wrap;
}

.header-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.logo {
  flex: 0.8;
  display: flex;
  justify-content: flex-start;
}

.logo img {
  height: 50px;
  margin-left: 50px;
}

/* 🔹 Menú de escritorio */
.navbar {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 60px;
}

.nav-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center
}

.nav-row li a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  padding: 5px 8px;
  white-space: nowrap;
}

.nav-row li a:hover {
  color: #f2fc6e;
}

.main-menu {
  border-bottom: 2px solid  #f2fc6e;
  padding-bottom: 3px;
}

/* 🔽 Menú hamburguesa (oculto en escritorio) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.menu-toggle .bar {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 5px;
  transition: 0.3s;
}

/* 🔹 Contenedor del menú móvil */
.mobile-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: none;  /* 🔹 Oculto por defecto */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
}

/* 🔹 Cuando el menú está activo */
.mobile-menu-container.active {
  display: flex;
}

.body-no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* 🔹 Botón de cerrar (X) */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  display: none;
}

.mobile-menu-container.active .close-menu {
  display: block;
}

/* 🔹 Estilos de los enlaces en el menú móvil */
.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-nav-links li {
  margin: 20px 0;
}

.mobile-nav-links a {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.mobile-nav-links a:hover {
  color: #f2fc6e;
}

.social-icon {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.8em;
  color: #ffffff;
  transition: color 0.3s ease;
  margin-right: 20px;
}

.social-icon:hover {
  color: #000000;
}

.social-icon.facebook:hover {
  color: #3b5998;
}

.social-icon.instagram:hover {
  color: #E4405F;
} 

.experiencias-section {
  padding: 90px 40px;
  background-color: transparent;
  color: white;
}

.experiencias-content {
  display: flex;
  flex-wrap: wrap; /* para que se acomode en móviles */
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.experiencias-texto {
  flex: 1;
  min-width: 200px;
  max-width: 600px
}

.experiencias-texto h2 {
  font-size: 55px;
  margin-bottom: 40px;
  margin-left:  40px;
}

.experiencias-texto p {
  font-size: 22.5px;
  margin-bottom: 10px;
  margin-left:  40px;
  line-height: 1.6;
}

.sorprenderas-section {
  position: relative;
  z-index: 10; 
  background-color: black;
  color: white;
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(100px);
  transition: transform 1s ease-out, opacity 1s ease-out;
  margin-top: 0; 
}

.sorprenderas-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.sorprenderas-contenido {
  display: flex;
  align-items: stretch; 
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: left;
}

.sorprenderas-imagen {
  position: relative;
  width: 700px;
  height: 300px; /* altura reducida */
  overflow: hidden;
  border-radius: 12px;
}

.sorprenderas-imagen img {
  width: 80%;
  height: 80%;
  object-fit: cover; /* muestra solo el centro de la imagen */
  object-position: center;
  transition: transform 0.5s ease;
}

.sorprenderas-imagen img:hover {
  transform: scale(1.1);
}

.sorprenderas-texto-superpuesto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centra el texto completamente */
  color: white;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.sorprenderas-texto-superpuesto h4 {
  font-size: 24px;
  margin: 0;
}

.sorprenderas-texto-superpuesto p {
  font-size: 18px;
  margin: 5px 0 0 0;
}

.sorprenderas-texto {
  max-width: 300px;
  flex: 1;
  margin: 0; 
}

.sorprenderas-texto::before {
  content: "";
  display: block;
  width: 100%;              
  height: 1.5px;              
  background-color: white;   
  margin-bottom: 20px;       
}

.sorprenderas-texto h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.sorprenderas-texto p {
  font-size: 18px;
  line-height: 1.6;
}

.muesart-invita {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 40px;
  background-color: black;
  color: white;
  gap: 40px;
  flex-wrap: wrap;
}

.muesart-columna {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* NUEVO CONTENEDOR PARA POSICIONAR TEXTO SOBRE LA IMAGEN */
.imagen-con-texto {
  position: relative;
  width: 350px;
  height: 450px;
}

.imagen-con-texto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Control de recorte visual */
.imagenes-izquierda .imagen-con-texto img {
  object-position: right center;
}

.imagenes-derecha .imagen-con-texto img {
  object-position: center center;
}

/* TEXTO SOBRE LA IMAGEN CENTRADO */
.text-superpuesto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.text-superpuesto h4 {
  font-size: 24px;
  margin: 0;
}

.text-superpuesto p {
  font-size: 18px;
  margin: 5px 0 0;
}

.texto-centro {
  max-width: 300px;
  text-align: left;
}

.texto-centro h3 {
  font-size: 25px;
  margin-bottom: 30px;
  font-weight: bold;
}

.texto-centro h3:first-of-type::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: white;
  margin-bottom: 20px;
}

.texto-centro p {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sorprendera-section {
  position: relative;
  z-index: 10; 
  background-color: transparent;
  color: white;
  padding: 110px 40px;
}

.sorprendera-titulo {
  font-size: 50px;
  margin-bottom: 50px;
  font-weight: bold;
  text-align: left;
  margin-left: 80px;

}

.sorprendera-contenido {
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: left;
}

.sorprendera-imagen img {
  max-width: 110%;
  height: auto;
  border-radius: 12px;
  width: 600px; 
}

.tex-superpuesto {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.tex-superpuesto h4 {
  font-size: 24px;
  margin: 0;
}

.tex-superpuesto p {
  font-size: 18px;
  margin: 5px 0 0;
}

.sorprendera-texto {
  max-width: 300px;
  flex: 1;
  margin: 0; 
}

.sorprendera-texto::before {
  content: "";
  display: block;
  width: 100%;              
  height: 1.5px;              
  background-color: white;   
  margin-bottom: 20px;       
}

.sorprendera-texto h3 {
  font-size: 23px;
  margin-bottom: 15px;
}

.sorprendera-texto p {
  font-size: 18px;
  line-height: 1.6;
}

.footer {
  background-color: #000;
  color: white;
  padding: 30px 20px;
  text-align: center;
  font-size: 18px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-right: 20px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-social a {
  color: white;
  margin: 0 10px;
  font-size: 25px;
  transition: color 0.3s ease;
}

.fa-x-twitter:hover {
  color: #000000;
}

.fa-facebook-f:hover {
  color: #3b5998;
}

.fa-instagram:hover {
  color: #E4405F;
}

.footer-copy {
  margin-top: 20px;
  font-size: 18px;
  opacity: 0.8;
}

@media (max-width: 1186px) {
  .logo img {
    height: 40px;
    margin-left: 10px;
  }

  .fondo {
    background-size: 300%;
  }

  .nav-row li a {
    font-size: 12px;
    padding: 4px 6px;
  }

  .social-icon {
    font-size: 1.2em;
    margin: 5px;
  }

  .experiencias-texto h2 {
    font-size: 35px;
    margin-left: 20px;
  }

  .experiencias-texto p {
    font-size: 20px;
    margin-left: 20px;
  }

  .sorprenderas-imagen {
    width: 70%;
    height: 250px;
  }

  .sorprenderas-texto-superpuesto h4 {
    font-size: 22px;
  }

  .sorprenderas-texto-superpuesto p {
    font-size: 16px;
  }

  .sorprenderas-section {
    margin-top: -10px; 
  }

  .muesart-invita {
    flex-direction: column;
    padding: 60px 30px;
    gap: 30px;
  }

  .imagen-con-texto {
    width: 300px;
    height: 400px;
  }

  .tex-superpuesto {
    position: absolute;
    top: 30%;
    left: 40%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  }

  .text-superpuesto h4 {
    font-size: 22px;
  }

  .text-superpuesto p {
    font-size: 16px;
  }

  .texto-centro {
    max-width: 90%;
    text-align: center;
  }

  .texto-centro h3 {
    font-size: 22px;
  }

  .texto-centro p {
    font-size: 17px;
  }

  .sorprendera-section {
    padding: 80px 30px;
  }

  .sorprendera-titulo {
    font-size: 40px;
    margin-left: 40px;
    text-align: center;
  }

  .sorprendera-contenido {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
  }

  .sorprendera-imagen img {
    width: 500px;
    max-width: 100%;
  }

  .sorprendera-texto {
    max-width: 90%;
  }

  .sorprendera-texto h3 {
    font-size: 21px;
  }

  .sorprendera-texto p {
    font-size: 17px;
  }

  .tex-superpuesto h4 {
    font-size: 22px;
  }

  .tex-superpuesto p {
    font-size: 16px;
  }

  .footer {
    font-size: 14px;
    padding: 25px 20px;
  }

  .footer-social a {
    font-size: 18px;
    margin: 0 8px;
  }

  .footer-link {
    font-size: 14px;
    margin-right: 10px;
  }
}

@media (max-width: 767px) {
  header {
    background-color: white;
  }

  .fondo {
    background-size: 400%;
  }

  /* 🔹 Ocultamos el menú de escritorio */
  .navbar {
    display: none;
  }

  /* 🔹 Ocultamos íconos sociales */
  .social-icons {
    display: none;
  }

  /* 🔹 MOSTRAMOS EL BOTÓN DE HAMBURGUESA */
  .menu-toggle {
    display: flex;
    margin-right: 15px;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 5px;
    transition: 0.3s;
  }

  .logo {
    flex: 1;
    justify-content: flex-start;
  }

  .logo img {
    height: 40px;
    margin-left: 20px;
  }

  .header-content {
    justify-content: space-between;
    width: 100%;
  }

  .experiencias-section {
    padding: 280px 20px;
  }

  .experiencias-texto h2 {
    font-size: 30px;
    margin-left: 15px;
  }

  .experiencias-texto p {
    font-size: 15px;
    margin-left: 15px;
  }

  .sorprenderas-contenido {
    flex-direction: column;
    gap: 30px;
  }

  .sorprenderas-section {
    margin-top: 0px; 
    z-index: 0;
  }

  .sorprenderas-imagen {
    width: 80%;
    height: 200px;
  }

  .sorprenderas-texto-superpuesto h4 {
    font-size: 18px;
  }

  .sorprenderas-texto-superpuesto p {
    font-size: 15px;
  }

  .sorprenderas-texto {
    max-width: 100%;
  }

  .imagen-con-texto {
    width: 90vw;
    height: 300px;
  }

  .tex-superpuesto {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  }

  .text-superpuesto h4 {
    font-size: 20px;
  }

  .text-superpuesto p {
    font-size: 15px;
  }

  .texto-centro h3 {
    font-size: 20px;
  }

  .texto-centro p {
    font-size: 16px;
  }

  .sorprendera-section {
    padding: 60px 20px;
  }

  .sorprendera-titulo {
    font-size: 32px;
    margin-left: 0;
  }

  .sorprendera-imagen img {
    width: 90vw;
    height: auto;
  }

  .sorprendera-texto h3 {
    font-size: 19px;
  }

  .sorprendera-texto p {
    font-size: 16px;
  }

  .tex-superpuesto h4 {
    font-size: 20px;
  }

  .tex-superpuesto p {
    font-size: 14px;
  }

  .tex-superpuesto {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .footer {
    padding: 20px 15px;
    font-size: 13px;
  }

  .footer-links,
  .footer-social,
  .footer-copy {
    margin-bottom: 10px;
    display: block;
  }

  .footer-link {
    display: block;
    margin: 5px 0;
    font-size: 13px;
  }

  .footer-social a {
    font-size: 18px;
    margin: 0 6px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

@media (max-width: 590px) {
  header {
    background-color: white;
  }

  .fondo {
    background-size: 800%;
  }

  /* 🔹 Ocultamos el menú de escritorio */
  .navbar {
    display: none;
  }

  /* 🔹 Ocultamos íconos sociales */
  .social-icons {
    display: none;
  }

  /* 🔹 MOSTRAMOS EL BOTÓN DE HAMBURGUESA */
  .menu-toggle {
    display: flex;
    margin-right: 15px;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 5px;
    transition: 0.3s;
  }

  .logo {
    flex: 1;
    justify-content: flex-start;
  }

  .logo img {
    height: 40px;
    margin-left: 20px;
  }

  .header-content {
    justify-content: space-between;
    width: 100%;
  }

  .experiencias-section {
    padding: 280px 20px;
  }

  .experiencias-texto h2 {
    font-size: 30px;
    margin-left: 15px;
  }

  .experiencias-texto p {
    font-size: 15px;
    margin-left: 15px;
  }

  .sorprenderas-contenido {
    flex-direction: column;
    gap: 30px;
  }

  .sorprenderas-section {
    margin-top: 0px; 
    z-index: 0;
  }

  .sorprenderas-imagen {
    width: 80%;
    height: 200px;
  }

  .sorprenderas-texto-superpuesto h4 {
    font-size: 18px;
  }

  .sorprenderas-texto-superpuesto p {
    font-size: 15px;
  }

  .sorprenderas-texto {
    max-width: 100%;
  }

  .sorprendera-section {
    padding: 60px 20px;
  }

  .sorprendera-titulo {
    font-size: 32px;
    margin-left: 0;
  }

  .sorprendera-imagen img {
    width: 90vw;
    height: auto;
  }

  .sorprendera-texto h3 {
    font-size: 19px;
  }

  .sorprendera-texto p {
    font-size: 16px;
  }

  .tex-superpuesto {
    position: absolute;
    top: 45%;
    left: 10%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  }

  .tex-superpuesto h4 {
    font-size: 20px;
  }

  .tex-superpuesto p {
    font-size: 14px;
  }

  .tex-superpuesto {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .footer {
    padding: 20px 15px;
    font-size: 13px;
  }

  .footer-links,
  .footer-social,
  .footer-copy {
    margin-bottom: 10px;
    display: block;
  }

  .footer-link {
    display: block;
    margin: 5px 0;
    font-size: 13px;
  }

  .footer-social a {
    font-size: 18px;
    margin: 0 6px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 30px;
    margin-left: 10px;
  }

  .fondo {
    background-size: 700%;
  }

  .experiencias-section {
    padding: 240px 15px;
  }

  .experiencias-texto h2 {
    font-size: 26px;
    margin-left: 10px;
  }

  .experiencias-texto p {
    font-size: 16px;
    margin-left: 10px;
  }

  .sorprenderas-imagen {
    height: 200px;
  }

  .sorprenderas-section {
    margin-top: 10px; 
  }

  .sorprenderas-texto-superpuesto h4 {
    font-size: 18px;
  }

  .sorprenderas-texto-superpuesto p {
    font-size: 14px;
  }

  .sorprendera-section {
    padding: 60px 20px;
  }

  .sorprendera-titulo {
    font-size: 32px;
    margin-left: 0;
  }

  .sorprendera-imagen img {
    width: 90vw;
    height: auto;
  }

  .sorprendera-texto h3 {
    font-size: 19px;
  }

  .sorprendera-texto p {
    font-size: 16px;
  }

  .tex-superpuesto h4 {
    font-size: 20px;
  }

  .tex-superpuesto {
    position: absolute;
    top: 30%;
    left: 20%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  }

  .tex-superpuesto p {
    font-size: 14px;
  }

  .tex-superpuesto {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .footer {
    font-size: 12px;
  }

  .footer-link {
    font-size: 12px;
  }

  .footer-social a {
    font-size: 16px;
  }

  .footer-copy {
    font-size: 11px;
  }
}
