
/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: url('../resources/background4.png') no-repeat center center fixed;
  background-size: cover;
}


h1, h2, h3, h4 {
  font-family: 'Poppins', serif;
}

/*========*/
/* Navbar */
/*========*/
.navbar-personalizado {
  position: fixed;
  width: 100%;
  background: rgba(50, 50, 50, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: top 0.3s ease, bottom 0.3s ease;
  top: 0;
  bottom: auto;
}

.nav-container-personalizado {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* NUEVA CLASE: cuando baja al fondo */
.navbar-abajo {
  top: auto !important;
  bottom: 0 !important;
}


.logo {
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
  letter-spacing: 10px;

}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 22px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffcc00;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(50, 50, 50, 0.95);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 2rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
  }
}

/* Submenú de Servicios */
.nav-links .dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 999;
  min-width: 220px;
  list-style: none;       /* <-- Aquí se eliminan los bullets */
}

.submenu li {
  padding: 0.4rem 1rem;
}

.submenu a {
  color: white;
  text-decoration: none;
  display: block;
  transition: background 0.3s, color 0.3s;
}

.submenu a:hover {
  background: rgba(255, 204, 0, 0.3);
  color: #ffcc00;
  text-decoration: none;
}

.dropdown:hover .submenu {
  display: block;
}

/* Para mobile también */
@media (max-width: 768px) {
  .submenu {
    position: static;
    display: none;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 0;
    padding-left: 1rem;
  }

  .dropdown.active .submenu {
    display: block;
  }
}


.logo img {
  height: 55px;
  width: auto;
  display: block;
}

/*========*/
/* SLIDER */ 
/*========*/
.slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.custom-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 10px;
  color: white;
  font-size: 2rem;
  text-align: center;
}


.slider-controls {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 2;
}

.slider-controls button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/*===================*/
/*Clientes          */
/*==================*/
.galeria {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.grid-galeria {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
}

.img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px; /* o 300px, según prefieras */
  border-radius: 8px;
  overflow: hidden;
}

.img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.img-wrapper img:hover {
  transform: scale(1.03);
}

@media (min-width: 600px) {
  .grid-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-galeria {
    grid-template-columns: repeat(3, 1fr);
  }
}


/*==================*/
/* Franja Clientes */
/*================*/
.franja-clientes {
  background: rgba(50, 50, 50, 0.7);
  backdrop-filter: blur(6px);
  padding: 2rem 1rem;
  text-align: center;
  color: white;
}

.franja-clientes h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: 400;
}

/*==========*/
/* Contacto */
/*==========*/
.contacto {
  background: rgba(50, 50, 50, 0.7);
  backdrop-filter: blur(6px);
  color: white;
  padding: 3rem 1rem;
}

.contacto-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.contacto-info,
.contacto-mapa {
  flex: 1 1 45%;
}

.contacto-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contacto-info p,
.contacto-mapa p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.contacto-info a {
  color: #ffcc00;
  text-decoration: none;
}

.contacto-info a:hover {
  text-decoration: underline;
}

.mapa iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  border: none;
}

.direccion {
  margin-top: 1rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .contacto-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contacto-info,
  .contacto-mapa {
    flex: 1 1 100%;
  }
}

/*=======*/
/* Grid */
/*======*/
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
}

.col {
  flex: 1 1 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 1200px) {
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
}

/*==============*/
/* Comentarios */
/*============*/
.comentarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.comentario-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
  color: white;
}

.comentario-card:hover {
  background: rgba(255, 204, 0, 0.2);
  transform: translateY(-5px);
}

.comentario-text {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1rem;
}

.comentario-author {
  font-size: 0.95rem;
  font-weight: bold;
  color: #ffcc00;
  text-align: right;
}

/*========*/
/* Nosotros */
/*========*/
.datos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dato-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
  color: white;
}

.dato-card:hover {
  background: rgba(255, 204, 0, 0.2);
  transform: translateY(-5px);
}

.dato-text {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1rem;
  text-align: center;
}

.dato-text2 {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1rem;
  text-align: justify;
}

.dato-titulo {
  font-size: 2rem;
  font-weight: bold;
  color: #ffcc00;
  text-align: center;
}

.empresa-info {
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  background-color: transparent;
}

.empresa-contenido {
  width: 100%;
  display: flex;
  justify-content: center; /* Centra las imágenes horizontalmente */
  gap: 2rem; /* Espacio entre las imágenes */
  margin-bottom: 1.5rem; /* Separación debajo de las imágenes */
  flex-wrap: wrap; /* Que se adapten en móviles */
}

.logo-empresa {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0; /* Quitar margen automático para que no centren verticalmente */
}

.texto-empresa {
  max-width: 700px;          /* Ancho máximo para controlar lectura */
  margin: 1.5rem auto 0 auto; /* Margen arriba y centrado horizontal */
  background: rgba(50, 50, 50, 0.7); /* Fondo semitransparente */
  color: #fff;               /* Texto blanco */
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 0 1rem;           /* Espaciado interno horizontal */
  text-align: center;        /* Centrar texto */
  border-radius: 6px;        /* Bordes redondeados */
}

/*================*/
/*PERSONAS        */
/*================*/
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 10rem;
}

.card {
  width: 400px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background 0.3s ease;
  color: white;
}

.card-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background-color: #000; /* para que las imágenes sin fondo se vean bien */
}

.card-body {
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/*========================*/
/* Comparador de Imágenes */
/*========================*/
.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem;
}

.compare-item {
  display: flex;
  justify-content: center;
}

.img-compare-proyects {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.img-compare-proyects img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.img-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}

.img-after-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.deslizador {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 30px;
  height: 100%;
  border-radius: 0%;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deslizador::after {
  background: rgba(255,255,255,0.9);
  content: "⇔";
  font-size: 1.5rem;
  color: #0;
}

/*========================*/
/* MEJOR OPCIÓN           */
/*========================*/  
  .eleccion-section {
  padding: 4rem 2rem;
  background: linear-gradient(to right, #7d7d7d, #8c8c8c, #bab8b8);
  color: white;
  text-align: center;
}

.eleccion-section h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.eleccion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.eleccion-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eleccion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.icono-circulo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.icono-circulo i {
  font-size: 1.8rem;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.eleccion-card:hover .icono-circulo {
  background: rgba(255, 204, 0, 0.2);
}

.eleccion-card:hover .icono-circulo i {
  color: #ffcc00;
  transform: scale(1.2);
}

.linea {
  width: 40px;
  height: 2px;
  background: #ffcc00;
  margin: 0.5rem 0 1rem;
  opacity: 0.7;
}

.eleccion-card p {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

/*========================*/
/* Cobertura              */
/*========================*/
  .cobertura-nacional {
  text-align: center;
  padding: 60px 20px;
  background: #f2f2f2;
  position: relative;
}

.cobertura-nacional h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #787877;
}

.mapa-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.mapa-mexico {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.mapa-mexico:hover {
  transform: scale(1.3);
}

/*=======================*/
/* Recorridos virtuales  */
/*=======================*/

.recorridos-virtuales {
  padding: 2rem;
  background: #111;
  color: white;
  font-family: 'Garet-Book', sans-serif;
}

.recorridos-virtuales h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.recorridos-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.videos-izquierda,
.videos-derecha {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  min-width: 200px;
}

.video-central {
  flex: 2;
  min-width: 400px;
}

.recorrido-video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.recorrido-video.grande {
  height: 100%;
  min-height: 500px;
}

.recorrido-video:hover {
  transform: scale(1.02);
}

/*========================*/
/* Botón arriba           */
/*======================= */
.btn-volver-arriba {
 position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: rgba(50, 50, 50, 0.7);
  color: white;
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  padding: 0.6rem 1rem;
  cursor: pointer;
  display: none; /* Oculto por defecto */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-volver-arriba:hover {
  background-color: rgba(255, 204, 0, 0.85);
  color: black;
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .btn-volver-arriba {
    display: none !important;
  }
}

/* ------------------- DOCK MENU ------------------- */
.dock-section {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  position: relative;
  padding-top: calc((1031 / 1930) * 100%);
  background-image: url('../resources/fondo.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.dock-menu {
  position: absolute;
  bottom: 0.1px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 40px;
  border-radius: 15px;
  max-width: 1500px;
  margin: 0 auto;
  perspective: 1000px;
  bottom: 20px;
  z-index: 2;
}


.dock-icon {
  position: relative;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  color: white;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 24px;
  margin: 0 12px;
  transform-origin: bottom center;
}

.dock-icon.no-toggle a:focus,
.dock-icon.no-toggle a:active {
  outline: none;
  background: none;
}

.dock-icon i {
  font-size: 2rem;
  display: block;
  pointer-events: none;
}

.dock-icon a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

/* Tooltip oculto por defecto */
.dock-icon span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: none;
  z-index: 10;
}

.dock-icon span::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}

/* Mostrar el tooltip al hacer hover */
.dock-icon:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(-16px);
}

/* Hover visual sin escalar */
.dock-icon:hover {
  background-color: #ffcc00;
  color: #222;
  z-index: 20;
  box-shadow: 0 0 15px #ffcc00aa;
}

/* Animación de ola */
.dock-icon.wave {
  animation: waveBounce 0.6s ease;
  z-index: 10;
}

.dock-title-overlay {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.dock-title-overlay h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  white-space: nowrap;

  /* 🔽 Añade esto para enviarlo detrás */
  position: relative;
  z-index: 0;
}

.dock-item {
  position: relative;
}

.dock-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
}




@keyframes waveBounce {
  0% {
    transform: scale(1) translateY(0);
  }
  30% {
    transform: scale(1.3) translateY(-12px);
  }
  60% {
    transform: scale(1.1) translateY(-6px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}



/* ------------------- SERVICIOS ------------------- */

.grid {
  max-width: 1500px;
  margin: 20px auto 60px auto;
  padding: 0 15px;
}


/* Ocultar todas las secciones por defecto */
.grid > div {
  display: none;
}

/* Mostrar la sección activa */
.grid > div.active {
  display: block;
}

/* ------------------- CARRUSEL ------------------- */
.servicio-carrusel .gallery-container {
  position: relative;
  overflow: hidden;
  max-width: 1800px;
  max-height: 900px; /* asegura que no se extienda más allá */
  margin: auto;
}

.servicio-carrusel .gallery {
  display: flex;
  transition: transform 0.4s ease;
}

.servicio-carrusel .gallery img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}


/* Flechas */
.servicio-carrusel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
  z-index: 5;
}

.servicio-carrusel .arrow:hover {
  background-color: #ffcc00;
  box-shadow: 0 0 10px #ffcc00aa;
}

.servicio-carrusel .arrow.left {
  left: 10px;
}

.servicio-carrusel .arrow.right {
  right: 10px;
}

/* ------------------- GRID PINTEREST ------------------- */
.grid {
  width: 100vw;         /* ocupa todo el ancho visible */
  padding: 0 30px;      /* espacio lateral */
  margin: 0 auto;
}

/* Asegúrate que el grid interno no tenga tope de tamaño */
.servicio-grid .grid-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  justify-items: center;
  width: 100%;
}

.servicio-grid .grid-gallery .gallery img {
  width: 100%;
  max-width: 400px; /* aquí aumentas el tamaño visible */
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1; /* asegura que conserven su forma cuadrada */
}

.servicio-grid .grid-gallery .gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ffcc00aa;
}