/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  color: #333;
  scroll-behavior: smooth;
  overflow-x: hidden; /* evita arrastre horizontal */
}

/* HEADER */
.main-header {
  background-color: #0a3d62;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 0;
  margin: 0;
  height: auto;
  transition: all 0.3s ease;
}

/* CONTENEDOR INTERNO */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 30px; /* más compacto */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 60px; /* mantiene la altura real */
  transform: scale(2.1); /* lo hace más grande visualmente */
  transform-origin: left center;
  transition: transform 0.3s ease, height 0.3s ease;
}


/* MENÚ */
.nav-menu {
  display: flex;
  gap: 25px;
}
.nav-menu a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 800;
  transition: color 0.3s ease;
}
.nav-menu a:hover {
  color: #f77f00;
}

/* SHRINK */
.main-header.shrink .header-container {
  padding: 5px 30px;
}
.main-header.shrink .logo img {
  height: 50px;
  transform: scale(1.5); /* un poco más pequeño al hacer scroll */
}



/* Video Banner */
#video-banner {
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-banner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  overflow: hidden;
}


#video-banner .video-label {
  position: relative;
  z-index: 2;
  color: white;
  background-color: #0a3d62;
  opacity: 0.8;
  padding: 20px 40px;
  font-size: 2.2rem;
  font-weight: 400;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  text-align: center;
}

.cta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #27ae60;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Servicios */
#servicios {
  background-color: #ffffff;
  padding: 60px 20px;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-wrapper h2 {
  font-size: 2.4rem;
  color: #27ae60;
  font-weight: 700;
}

.servicios {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  overflow-x: hidden; /* 💡 clave */
}

.servicio-box {
  background-color: #95d86c; 
  padding: 25px 30px; 
  width: 100%;
  box-sizing: border-box;
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  border-radius: 8px; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
  transition: all 0.3s ease; 
  cursor: pointer;
}


.servicio-box:hover {
    background-color: #ff8c00; /* Color naranja fuerte para el hover */
    transform: translateY(-5px); /* Un ligero desplazamiento hacia arriba */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada al hacer hover */
}

/* Estilos para el contenido de texto dentro de la caja */
.servicio-content {
  flex-grow: 1;
  padding-right: 20px;
  min-width: 0; /* 💡 clave para que se ajuste y no desborde */
}


.servicio-box h3 {
    font-size: 1.6rem;
    color: #333; /* Color de título neutro */
    margin-bottom: 10px; /* Espacio entre título y párrafo */
}

.servicio-box:hover h3,
.servicio-box:hover p,
.servicio-box:hover .servicio-icon {
    color: #ffffff; /* El texto y el icono se vuelven blancos al hacer hover */
}


.servicio-box p {
    font-size: 1rem;
    color: #000000; /* Color de párrafo más suave */
    line-height: 1.6; /* Mejora la legibilidad del párrafo */
}

/* Estilos para el icono */
.servicio-icon {
    font-size: 3.5rem; /* Icono más grande */
    color: #ff6f00; /* Color naranja para los iconos */
    flex-shrink: 0; /* Evita que el icono se encoja */
    /* Ya no necesita margin-left porque el flexbox lo posiciona automáticamente a la derecha */
}

/* Media Queries para responsividad */
@media (max-width: 992px) {
    .servicios {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2 columnas en tablets */
        gap: 25px;
    }
    .servicio-box {
        padding: 20px 25px;
    }
}

@media (max-width: 768px) {
    .servicios {
        grid-template-columns: 1fr; /* 1 columna en móviles pequeños */
        gap: 20px;
    }
    .servicio-box {
        flex-direction: column; /* Apila el icono y el texto en pantallas muy pequeñas */
        align-items: center; /* Centra los elementos al apilarlos */
        text-align: center; /* Centra el texto también */
    }
    .servicio-content {
        padding-right: 0;
        margin-bottom: 15px; /* Espacio entre el texto y el icono cuando están apilados */
    }
    .servicio-icon {
        margin-left: 0; /* Remueve el margen izquierdo del icono */
    }
}
/* Redes sociales */
#redes-sociales {
  text-align: center;
  padding: 40px 0;
}

.redes-title {
  color: #4caf50;
  font-size: 2rem;
  margin-bottom: 20px;
}

.redes-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.icon-social {
  width: 60px;
  height: 60px;
  transition: transform 0.2s ease;
}

.icon-social:hover {
  transform: scale(1.1);
}


/* Ubicaciones */
#ubicaciones {
  background-color: #0A3D62;
  color: white;
  padding: 60px 20px;
}

.info-section {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.info-card {
  background: white;
  color: #0A3D62;
  border-radius: 15px;
  padding: 25px 25px 18px;
  flex: 1 1 300px;  /* 💡 El cambio clave */
  max-width: 400px; /* Mantiene tu diseño máximo */
  height: auto;     /* Para que se ajuste en responsive */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.info-card h3 {
  font-size: 1.5rem;
  color: #27ae60;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 1.1rem;
  margin: 5px 0;
}

/* Tipo de cambio destacado */
.info-card .tipo-cambio {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #95d86c;
  display: inline-block;
  padding: 6px 12px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.info-card .tipo-cambio:hover {
  background-color: #f77f00;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}


.map-container {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 160px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Galería */
#galeria {
  background-color: #ffffff;
  padding: 60px 20px;
  overflow-x: hidden; /* Evita scroll lateral */
}

#galeria .section-title-wrapper h2 {
  font-size: 2.4rem;
  color: #27ae60;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%; /* Ocupar siempre el 100% disponible */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box; /* Asegura que el padding no sume ancho extra */
  padding: 0 20px;
}

.galeria-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}



/* Modal Galería */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  transition: opacity 0.3s ease;
}

.modal.open {
  display: block;
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.modal-caption {
  text-align: center;
  color: #f0f0f0;
  padding: 10px;
  font-size: 1rem;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}



/* WhatsApp */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.whatsapp img {
    width: 50px;
    height: 50px;
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .telefono {
        position: static;
        margin-top: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        padding-top: 10px;
    }

    .main-nav {
        padding: 10px 0;
    }

    .logo {
        font-size: 36px;
    }
}