/* POPPINS FONT */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ENCABEZADO MENU */
.first-menu {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 120px;
  padding: 70px 25px;
  background: linear-gradient(rgba(0, 0, 0, 0.623), transparent);
  z-index: 100;
}

.logo p {
  color: rgb(255, 255, 255);
  font-size: 24px;
  font-weight: 600;
}

.nav-menu {
  position: relative;
}

.nav-menu ul {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.nav-menu ul li {
  list-style-type: none;
}

.nav-menu ul li .link {
  text-decoration: none;
  font-weight: 500;
  color: #ffffff;
  padding-bottom: 15px;
  transition: color 0.3s, border-bottom 0.3s;
}

.link:hover {
  border-bottom: 2px solid #fff;
}

.nav-menu-btn {
  display: none; /* Por defecto oculto */
  cursor: pointer;
  z-index: 102; /* Para estar encima del menú */
  color: white;
  font-size: 30px;
}

.blur-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 50;
  display: none; /* Por defecto oculto */
}

/* Mostrar el fondo borroso cuando esté activo */
.blur-background.active {
  display: block;
}

/* RESPONSIVE MENU */
@media screen and (max-width: 768px) {
  .nav-menu ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    width: 100%;
    display: none;
    padding: 20px 0;
    border-radius: 8px;
    z-index: 101;
  }

  .nav-menu ul.active {
    display: flex;
  }

  .nav-menu ul li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-menu-btn {
    display: block;
  }

  .first-menu {
    flex-direction: row;
    justify-content: space-between;
  }

  .blur-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 50;
    display: none;
  }

  .blur-background.active {
    display: block;
  }
}

/* BOTON ACCESAR */
.nav-button .btn {
  width: 130px;
  height: 40px;
  font-weight: 500;
  color: #2c2a2a;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* SLIDER*/
.slider {
  width: 95%; /* Aumenta el ancho al 95% del viewport */
  max-width: 1200px; /* Incrementa el ancho máximo */
  height: 70vh; /* Incrementa la altura relativa al viewport */
  border-radius: 2%; /* Redondeo más sutil */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada */
  margin: 20vh auto; /* Reduce el margen superior e inferior */
  position: relative;
  overflow: hidden; /* Oculta las imágenes fuera del slider */
}

/* Contenedor de la lista de imágenes */
.list {
  display: flex; /* Hace que las imágenes se alineen horizontalmente */
  height: 100%; /* Asegura que el contenedor ocupe toda la altura del slider */
  transition: transform 1s ease; /* Añade transición para el movimiento */
}

/* Elemento individual */
.item {
  flex: 0 0 100%; /* Cada imagen ocupa el 100% del slider */
  height: 100%; /* Asegura que la altura del contenedor sea igual a la del slider */
}

/* Ajusta las imágenes */
.list img {
  display: block;
  width: 100%; /* La imagen ocupa todo el ancho del slider */
  height: 100%; /* La imagen ocupa toda la altura del slider */
  object-fit: cover; /* Cambia a "cover" si prefieres que llenen el slider */
}

/* Botones de navegación */
.buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 20px; /* Espaciado desde el borde del slider */
}

.buttons button {
  pointer-events: all; /* Permite clics en los botones */
  background: linear-gradient(
    135deg,
    rgba(77, 2, 2, 0.6),
    rgba(255, 255, 255, 0.6)
  ); /* Nuevo degradado */
  color: #fff; /* Flechas en blanco */
  border: none;
  font-size: 1.5rem; /* Tamaño de las flechas reducido */
  cursor: pointer;
  padding: 10px 15px; /* Botones más pequeños */
  border-radius: 8px; /* Bordes redondeados */
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3); /* Sombra para el efecto 3D */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.buttons button:hover {
  transform: scale(1.1); /* Agrandamiento al pasar el mouse */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(77, 2, 2, 0.8)
  ); /* Más opaco al hacer hover */
}

#prev::before,
#next::before {
  font-family: "Arial", sans-serif;
  font-size: 1.3rem; /* Tamaño de las flechas ajustado */
  content: ""; /* Íconos de las flechas */
}

#prev::before {
  content: "\276E"; /* Flecha izquierda */
}

#next::before {
  content: "\276F"; /* Flecha derecha */
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.dots li {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dots .active {
  background-color: #fff;
}

/* ACERCA DE NOSOTROS */
.about-section {
  background-color: #ffffff;
  padding: 300px 20px;
  text-align: center;
}
.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.about-container .card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-container .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-container .icon {
  font-size: 40px;
  color: #b1b1b1;
  margin-bottom: 15px;
}

.about-container .card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.about-container .card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

/* CONTÁCTANOS */
#contact {
  scroll-margin-top: 100px; /* Ajusta al alto de tu menú */
}
.contact-section {
  margin-top: 140px;
  padding: 80px 40px 30px 40px;
  border-radius: 20px;    /* ✅ Bordes suaves */
  justify-items: center;
 
}

.contact-card {
  background-color: white;
  margin-top: 150px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

.left-column,
.right-column {
  flex: 1 1 450px; /* ✅ Tamaño base flexible */
  padding: 40px;
}

.left-column {
  background-color: #f8f9fa;
}

.right-column {
  background-color: white;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c5cbcf;
  display: inline-block;
  color: #525353;
}

/* Información de Contacto - Sin sangría */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.contact-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cbd3d8, #535658);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
  white-space: nowrap;
}

.contact-text {
  color: #7f8c8d;
  line-height: 1.5;
  text-align: left;
  /* Quitamos el margin-left que causaba la sangría */
}

/* Enlaces directos */
.direct-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.direct-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.facebook-link {
  background: linear-gradient(135deg, #919597 0%, #cfd3d6 100%);
  transition: background 0.3s ease; /* Agregar transición suave */
}

.facebook-link:hover {
  background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.email-link {
  background: linear-gradient(135deg, #919597 0%, #cfd3d6 100%);
  transition: background 0.3s ease;
}

.email-link:hover {
  background: linear-gradient(135deg, #a12d23 0%, #832215 100%);
}

.link-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Mapa */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #7f8c8d;
  text-align: center;
  padding: 20px;
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #3498db;
}

.map-info {
  margin-top: 10px;
}

.map-info h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.map-info p {
  color: #7f8c8d;
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 768px) {
  .contact-card {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .direct-links {
    flex-direction: column;
  }
}


/* PIE DE PÁGINA */
footer {
  background-color: #2b2a2a;
  padding: 50px 20px;
  text-align: center;
  position: relative;
  color: #fff;
}

footer .waves {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
}

footer .wave {
  position: absolute;
  top: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  transform: translate3d(0, 0, 0);
}

footer .social-icon {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer .social-icon_item {
  list-style: none;
}

footer .social-icon_link {
  color: #fff;
  font-size: 2.5rem;
  transition: transform 0.5s, color 0.3s;
}

footer .social-icon_link:hover {
  transform: translateY(-15px) scale(1.2);
  color: #acabab;
}

footer .footer-bottom {
  color: #fff;
  font-size: 0.9rem;
  margin-top: 20px;
}

footer .footer-bottom p {
  margin: 0;
}

@media screen and (max-width: 768px) {
  footer .social-icon {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  footer .social-icon_link {
    font-size: 2rem;
  }

  footer .social-icon_link:hover {
    transform: translateY(-10px) scale(1.1);
  }
}