/* Comentar algo Cmd + K + C */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
}

nav .logo {
  width: 200px;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  font-family: 'Cinzel Decorative', serif;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 1.5rem;
  position: relative;
}

nav a {
  text-decoration: none;
  color: #221712;
  padding: 1rem 0;
  transition: color 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgb(111, 99, 91);
  transition: width 0.3s ease;
}

nav a:hover {
  color: rgb(111, 99, 91); 
}

nav a:hover::before {
  width: 100%;
}

.contenedor {
  text-align: center;
  display: block;
}

.contenedor h1 {
  font-size: 80px;
  color: #fff;
  font-weight: 600;
  transition: 0.5s; /* Transición de color */
  white-space: nowrap; /* Mantener el texto en una sola línea */
  overflow: hidden; /* Evitar desbordamiento */
  border-right: 2px solid #fff; /* Cursor de escritura */
  border-right: none;
  -webkit-text-stroke: 2px #fff;
  color: transparent;
}

.contenedor h1:hover {
  -webkit-text-stroke: 2px #fff;
  color: #fff;
}

.contenedor a {
  text-decoration: none;
  display: inline-block;
  color: #fff;
  font-size: 18px;
  border: 2px solid #fff;
  padding: 14px 50px;
  border-radius: 50px;
  margin-top: 10px;
}

.back-video {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Línea de Negocio */
.business-line-section {
  background-color: #f0f0f0;
  padding: 80px 0;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line-title-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 40px;
}

.line-title {
  flex-basis: 50%;
}

.line-title h2 {
  font-size: 36px;
  font-weight: bold;
}

.description-container {
  flex-basis: 50%;
  display: flex;
  align-items: center;
  position: relative;
}

.description-container .vertical-line {
  width: 4px;
  height: 100%;
  background-color: #333;
  position: absolute;
  left: 0;
}

.description {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.5;
  padding-left: 20px;
}

.progress-container {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-basis: 25%;
  position: relative;
}

.progress-item::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #333;
  top: 50%;
  transform: translateY(-50%);
}

.progress-circle {
  width: 100px;
  height: 100px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.item-icon {
  width: 50px;
  height: 50px;
  background-color: #333;
  border-radius: 50%;
}

.progress-item h4 {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
}
/* Fin línea de negocio */

/* Galería de Imágenes */
.conter {
  position: relative;
  text-align: center;
  display: block;
}

.imagen-con-texto {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 0; /* Comienza con ancho 0 */
  flex-grow: 2;
  transition: width 1.5s ease; /* Transición del ancho */
}

.imagen-con-texto:hover {
  cursor: crosshair;
  width: 600px; /* Ampliar imagen al pasar el cursor */
}

.imagen-con-texto:hover img {
  transform: scale(1.05);
  width: 600px; /* Se mantendrá el aumento de ancho */
  opacity: 1;
  filter: contrast(120%); /* Agranda ligeramente la imagen */
}

.texto-sobre-imagen {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px;
  text-align: center;
  opacity: 0; /* Comienza oculto */
  transition: opacity 0.3s ease; /* Transición para mostrar el texto */
}

.imagen-con-texto:hover .texto-sobre-imagen {
  opacity: 1; /* Mostrar texto al pasar el cursor */
}

.galeria-img {
  display: flex;
  width: 100vw;
  height: 600px;
  overflow: hidden;
  position: relative; /* Cambiar a relative */
}

.cont {
  position: absolute;
  top: 50%; /* Centrado vertical */
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: #fff;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.cont a {
  text-decoration: none;
  display: inline-block;
  color: #fff;
  font-size: 18px;
  border: 2px solid #fff;
  padding: 14px 50px;
  border-radius: 50px;
  margin-top: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cont a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #000;
}

.galeria-img img {
  width: 100px; /* Mantén tu configuración original */
  height: 100%;
  flex-grow: 2;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.5s ease, width 1.5s ease, opacity 0.5s ease;
}

.galeria-img img:hover {
  transform: scale(1.05);
  width: 600px; /* Se mantendrá el aumento de ancho */
  opacity: 1;
  filter: contrast(120%);
}

.galeria-img:hover ~ .cont {
  opacity: 0; /* Esconde el texto al pasar el cursor sobre las imágenes */
}

/* Fin de Galería de Imágenes */


/* Estilos para la sección "Acerca de Nosotros" */
.about-us {
  background-color: #f0f0f0; /* Color de fondo */
  padding: 40px 20px; /* Espaciado interno */
  text-align: center; /* Centrar el título */
}

.about-us h2 {
  font-size: 36px; /* Tamaño de fuente del título */
  margin-bottom: 50px; /* Espacio debajo del título */
  color: #333; /* Color del texto */
}

.about-content {
  display: flex; /* Usar flexbox para alineación */
  justify-content: center; /* Centrar horizontalmente en el contenedor */
  align-items: center; /* Centrar verticalmente */
  max-width: 1100px; /* Ancho máximo */
  margin: 0 auto; /* Centrar el contenedor */
}

.about-text {
  flex: 1; /* Permitir que el texto se expanda */
  text-align: center; /* Alinear texto a la izquierda */
  padding-right: 300px; /* Espacio a la derecha */
}

.about-image {
  width: 500px; /* Ancho de la imagen */
  height: auto; /* Altura automática para mantener proporciones */
  border-radius: 10px; /* Bordes redondeados */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), /* Sombra grande */
              0 5px 15px rgba(0, 0, 0, 0.2); /* Sombra más pequeña */
  transform: translateZ(0); /* Habilitar la aceleración del hardware */
  transition: transform 0.3s ease; /* Transición suave */
}

.about-image:hover {
  transform: translateY(-5px) scale(1.05); /* Elevar y escalar en hover */
}

.about-text p {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.5;/* Color del texto */
  margin: 0; /* Eliminar margen para evitar desalineación */
}
/* Fin de nosotros*/

/* Clientes */
.slider-area {
  text-align: center;
  padding: 50px 0;
  background-color: #f0f0f0; /* Fondo gris claro */
}

.slider-area h2 {
  font-size: 38px;
  margin-bottom: 30px;
  color: #333; /* Color del título */
}

.logos{
  overflow: hidden;
  padding: 60px 0;
  background: #f0f0f0;
  white-space: nowrap;
  position: relative;
}

.logos:before,
.logos::after{
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: " ";
  z-index: 2;
}

.logos::before{
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logos::after{
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logos-slide{
  display: inline-block;
  animation: 25s slide infinite linear;
}

.logos-slide img{
  height: 50px;
  margin: 0 40px;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

#imagem{
  filter: grayscale(100%);
}
/* Fin Clientes */

/* Estilos para la sección "Asociacion" */
.asociacion {
  background-color: #f0f0f0; /* Color de fondo */
  padding: 40px 20px; /* Espaciado interno */
  text-align: center; /* Centrar el título */
  flex-direction: row;
}

.asociacion h2 {
  font-size: 36px; /* Tamaño de fuente del título */
  margin-bottom: 10px; /* Espacio debajo del título */
  color: #333; /* Color del texto */
}

.container2{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0; /* Color de fondo */
  padding-bottom: 40px;
}

.card-list .card-item {
  list-style: none;
}

.card-list .card-item .card-link {
  width: 400px;
  display: block;
  background-color: #fff;
  padding: 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
}

.card-list .card-item .card-link:hover {
  border-color: #5372F0;
}

.card-list .card-link .card-image{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
}

.card-list .card-link .badge{
  color: #5372F0;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 16px 0 18px;
  background-color: #DDE4FF;
  width: fit-content;
  border-radius: 50px;
}

.card-list .card-link .card-title{
  font-size: 1.19rem;
  font-weight: 600;
  color: #333;
}

.card-list .card-link .card-button {
  height: 35px;
  width: 35px;
  color: #5372F0;
  border-radius: 50%;
  margin: 30px 0 5px;
  background: none;
  cursor: pointer;
  border: 2px solid #5372F0;
  transform: rotate(-45deg);
  transition: 0.4s ease;
}

.card-list .card-link:hover .card-button {
  color: #fff;
  background: #5372F0;
}

.styled-hr {
  display: flex;
  align-items: center;
  margin: 30px 0;
  text-align: center;
}

.styled-hr::before,
.styled-hr::after {
  content: '';
  flex: 1;
  border-top: 2px solid #333;
  margin: 0 5px; /* Espaciado reducido entre líneas */
}

.letters {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  gap: 2px; /* Espaciado más pequeño entre letras */
}

.letter-U {
  color: #221712; /* Color para U */
}

.letter-B {
  color: #6f635b; /* Color para B */
}

.letter-K {
  color: #771011; /* Color para K */
}

/* Fin de Asociacion*/


/*INICIO FOOTER*/
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0;
    font-size: 16px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex-basis: 30%;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #aaa;
}

.footer-map {
    margin-top: 40px;
    text-align: center;
}

.user-icon {
    display: inline-flex;
    align-items: center;
    background-color: #444; /* Fondo del botón */
    color: #fff; /* Color del texto e ícono */
    padding: 10px 15px; /* Espaciado interno */
    border-radius: 5px; /* Bordes redondeados */
    text-decoration: none; /* Sin subrayado */
    transition: background-color 0.3s; /* Efecto de transición */
}

.user-icon i {
    margin-right: 8px; /* Espacio entre el ícono y el texto */
}

.user-icon:hover {
    background-color: #555; /* Color de fondo al pasar el mouse */
}
/*Fin Footer*/


/* 3 barras */
#checkbox {
  display: none;
}

.toggle {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition-duration: .3s;
}

.bars {
  width: 100%;
  height: 4px;
  background-color: rgb(0, 0, 0);
  border-radius: 5px;
  transition-duration: .3s;
}

#checkbox:checked + .toggle .bars {
  margin-left: 13px;
}

#checkbox:checked + .toggle #bar2 {
  transform: rotate(135deg);
  margin-left: 0;
  transform-origin: center;
  transition-duration: .3s;
}

#checkbox:checked + .toggle #bar1 {
  transform: rotate(45deg);
  transition-duration: .3s;
  transform-origin: left center;
}

#checkbox:checked + .toggle #bar3 {
  transform: rotate(-45deg);
  transition-duration: .3s;
  transform-origin: left center;
}
/* Fin de 3 barras */

.toggle {
  display: none;
}

@media (max-width: 768px) {
    
  .asociacion {
    padding: 20px; /* Aumentar el padding para dar espacio */
  }

  .asociacion h2 {
    font-size: 28px; /* Reducir tamaño de fuente en móviles */
    margin: 0 auto; /* Centrar el título */
    text-align: center; /* Asegurar que el texto esté centrado */
  }
  
  .card-list .card-item .card-link {
    width: 90%; /* Ajustar el ancho de las tarjetas */
    margin: 0 auto; /* Centrar las tarjetas */
    padding: 10px; /* Añadir padding interno */
  }
  
  .card-list .card-link .card-title {
    font-size: 1rem; /* Ajustar tamaño de fuente del título */
    text-align: center; /* Centrar el título de la tarjeta */
  }
  nav ul {
    display: none; /* Ocultar el menú por defecto en móviles */
    flex-direction: column;
    position: absolute;
    top: 60px; /* Ajusta según sea necesario */
    left: 0;
    background-color: transparent; /* Fondo del menú */
    width: 100%;
    padding: 10px 0;
  }

  nav ul.active {
    display: flex; /* Mostrar el menú al activar */
  }

  .toggle {
    display: flex; /* Mostrar el toggle en móviles */
  }

  nav li {
    margin: 50px 0; /* Espaciado para elementos de menú en móvil */
    text-align: center; /* Centrar texto */
  }

  .hero {
    padding: 0 2%; /* Reduce el padding para móviles */
  }

  .back-video {
    position: absolute;
    top: 50%; /* Centrar verticalmente */
    left: 50%; /* Centrar horizontalmente */
    width: 100%; /* Ancho completo */
    height: 100%; /* Altura completa */
    object-fit: cover; /* Asegura que el video cubra el contenedor sin distorsión */
    transform: translate(-50%, -50%); /* Centrar el video */
    z-index: -1; /* Asegurar que esté detrás de otros elementos */
}

  nav {
    padding: 25px 5%; /* Ajustar padding en móviles */
    font-size: 0.9rem; /* Tamaño de fuente más pequeño en móviles */
  }

  nav .logo {
    width: 150px; /* Tamaño del logo más pequeño */
  }

  nav ul {
    flex-direction: column; /* Cambiar a columna en móviles */
    display: none; /* Ocultar el menú por defecto */
    position: absolute;
    top: 90px; /* Ajustar según sea necesario */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* Fondo del menú */
    padding: 30px 0;
  }

  nav ul.active {
    display: flex; /* Mostrar el menú al activar */
  }

  nav li {
    margin: 10px 0; /* Ajustar margen para elementos en móvil */
    text-align: center; /* Centrar texto */
  }

  .contenedor {
    padding: 0 5%; /* Añadir padding para evitar que el texto toque los bordes */
  }

  .contenedor h1 {
    font-size: 7vw; /* Adaptar tamaño del texto */
    color: #fff;
  }
  

  .contenedor a {
    font-size: 3vw; /* Tamaño de fuente responsive */
    padding: 10px 4vw; /* Ajustar padding del botón */
  }

  /* Linea de negocio */
  .business-line-section {
    padding: 20px 0; /* Reducir el espaciado superior e inferior */
    margin-bottom: 0;
  }

  .line-title-container {
    flex-direction: column; /* Cambiar a columna */
    align-items: center; /* Centrar elementos */
    margin-bottom: 20px; /* Reducir el margen inferior */
  }

  .line-title {
    flex-basis: 100%; /* Hacer que ocupe el 100% del ancho */
    text-align: center; /* Centrar el texto */
  }

  .line-title h2 {
    font-size: 28px; /* Reducir tamaño de fuente */
  }

  .description-container {
    flex-basis: 100%; /* Hacer que ocupe el 100% del ancho */
    display: block; /* Cambiar a bloque */
    position: static; /* Eliminar posición absoluta */
    margin-top: 20px; /* Añadir margen superior */
  }

  .description-container .vertical-line {
    display: none; /* Ocultar línea vertical en pantallas pequeñas */
  }

  .description {
    font-size: 16px; /* Reducir tamaño de fuente */
    padding-left: 0; /* Eliminar padding */
    text-align: center; /* Centrar texto */
  }

  .progress-container {
    flex-direction: row; /* Mantener alineación horizontal */
    flex-wrap: wrap; /* Permitir que los elementos se envuelvan */
  }

  .progress-item {
    flex-basis: 50%; /* Cambiar a 50% para dos elementos por fila */
    margin-bottom: 20px; /* Añadir margen inferior */
  }

  .progress-circle {
    width: 80px; /* Reducir tamaño del círculo */
    height: 80px; /* Reducir tamaño del círculo */
  }

  .item-icon {
    width: 40px; /* Reducir tamaño del icono */
    height: 40px; /* Reducir tamaño del icono */
  }

  .progress-item h4 {
    font-size: 12px; /* Reducir tamaño de fuente */
  }

  /* Fin de linea de negocio*/

   /* Galería de Imágenes */
   .imagen-con-texto {
    width: 100%; /* Ancho completo en pantallas pequeñas */
    margin: 0; /* Sin margen en pantallas pequeñas */
  }

  .texto-sobre-imagen {
    opacity: 0; /* Mantener oculto inicialmente */
  }
    /* Fin Galería de Imágenes */

  /* Acerca de Nosotros*/
  .about-content {
  flex-direction: column; /* Cambiar a columna en pantallas pequeñas */
  align-items: center; /* Centrar los elementos */
  }

  .about-text {
  padding-right: 0; /* Eliminar el padding a la derecha */
  padding-bottom: 20px; /* Espacio debajo del texto */
  }

  .about-image {
    width: 90%; /* Ancho de la imagen en pantallas pequeñas */
    max-width: 400px; /* Ancho máximo para la imagen */
  }

  .about-us h2 {
    font-size: 28px; /* Tamaño de fuente más pequeño para el título */
    margin-bottom: 30px; /* Espacio debajo del título */
  }

  .about-text p {
    font-size: 18px; /* Tamaño de fuente más pequeño para el texto */
  }
  /* Fin Acerca de nosotros*/

  /*Clientes*/
  .slider-area h2 {
    font-size: 28px; /* Tamaño de fuente más pequeño para el título */
    margin-bottom: 20px; /* Espacio debajo del título */
  }

  .logos {
    padding: 40px 0; /* Reducir el padding en pantallas pequeñas */
  }

  .logos-slide img {
    height: 40px; /* Tamaño más pequeño para los logos */
    margin: 0 20px; /* Espacio reducido entre los logos */
  }

  .logos:before,
  .logos::after {
    width: 100px; /* Reducir el ancho de los gradientes en pantallas pequeñas */
  }

  /* Fin clientes */

  /*Footer */
  .footer-content {
    flex-direction: column; /* Cambiar a columna en pantallas pequeñas */
    align-items: center; /* Centrar elementos */
  }

.footer-section {
    flex-basis: 100%; /* Cada sección ocupa el 100% del ancho */
    text-align: center; /* Centrar texto en secciones */
    margin-bottom: 40px; /* Aumentar el espacio entre secciones */
  }

.footer-section h3 {
    font-size: 16px; /* Tamaño de fuente más pequeño para el título */
    margin-bottom: 15px; /* Espacio debajo del título */
  }

.footer-bottom {
    margin-top: 20px; /* Espacio reducido en la parte inferior */
    font-size: 12px; /* Tamaño de fuente más pequeño para el texto inferior */
  }
  /*Fin Footer */ 
}

.modal {
  display: none; /* Ocultar el modal por defecto */
  position: fixed;
  z-index: 1000; /* Asegurar que esté en la parte superior */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
  display: flex; /* Usar flexbox para centrar el contenido */
  justify-content: center; /* Centrar horizontalmente */
  align-items: center;
  flex-direction: column; /* Centrar verticalmente */
}

.modal-content {
  max-width: 90%; /* Ancho máximo del contenido del modal */
  max-height: 80%; /* Altura máxima para que no desborde en pantallas pequeñas */
  display: block; /* Asegurar que el contenido se muestre como bloque */
  object-fit: contain;  
  margin-bottom: 10px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001; /* Asegurar que la "X" esté por encima del modal */
}

html, body {
  height: 100%; /* Asegura que el body y html ocupen toda la altura */
  margin: 0; /* Elimina márgenes para evitar desplazamientos */
}

/* Animaciones para las barras */
#checkbox:checked ~ nav ul {
  display: flex; /* Mostrar menú al activar */
}