:root {
  --verde: #218b25;
  --amarillo: #fbc02d;
  --rojo: #d62828;
  --azul: #1d4ed8;

  --gris: #f5f5f5;
  --negro: #1c1c1c;
  --blanco: #ffffff;
}

html{
    color-scheme: light;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--gris);
  color: var(--negro);
    color:#222;
}

/* =========================
   NAVBAR
========================= */

.nav-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 9999;
  left: 0;
}

.nav-header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amarillo);
}

.nav-logo img {
  width: 45px;
  height: 45px;
  background: white;
  padding: 4px;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  gap: 30px;
  font-family: 'Poppins', sans-serif;
}

/* DIVISOR */
.section-divider {
  height: 4px;
  background: linear-gradient(to right,
      var(--verde),
      var(--amarillo),
      var(--rojo),
      var(--azul));
}

.nav-menu a {
  color: #f4c430;
  text-decoration: none;
  font-size: 15px;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
}

/* =========================
   HERO
========================= */

.hero-section {
  height: 100vh;
  background: url("../img/rioguatapuri.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.hero-content h1 {
  font-size: 46px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-btn {
  padding: 14px 34px;
  background: #0b5d3b;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-4px);
  background: #0e7a4e;
}

/* =========================
   NAVBAR ESTADO GRIS
========================= */

.nav-header.nav-gray {
  background: rgba(120, 120, 120, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-header.nav-gray .nav-menu a,
.nav-header.nav-gray .nav-logo span {
  color: #fff;
}

.nav-header.nav-gray .nav-menu a::after {
  background: #f4c430;
}

.nav-header.nav-gray .nav-toggle span {
  background: #fff;
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);

    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;

    transition: all 0.4s ease;

    z-index: 9998;
  }

  .nav-menu a {
    font-size: 22px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
  }

  /* 🔥 ESTADO ACTIVO */
  .nav-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* animación escalonada */
  .nav-menu.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-menu.active a:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-menu.active a:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-menu.active a:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-menu.active a:nth-child(5) {
    transition-delay: 0.5s;
  }

  /* BOTÓN HAMBURGUESA */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 9999;
  }

  .nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s ease;
  }

  /* 🔥 ANIMACIÓN A "X" */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }
}

/* =========================
   QUIÉNES SOMOS
========================= */
.qs-section {
  padding: 100px 10px;
  background: #f7fdf9;
  overflow: hidden;
}

.qs-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 20px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* IMAGEN */
.qs-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
  will-change: transform;
}

/* TEXTO */
.qs-text h2 {
  font-size: 38px;
  margin-bottom: 20px;
  color: #0b5d3b;
  /* verde institucional */
}

.qs-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #1c1c1c;
}

/* DETALLE AMARILLO */
.qs-text h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 12px;
  background: #f4c430;
  /* amarillo */
}


.parallax-section {
  min-height: auto;
  /* 🔥 clave */
  padding: 100px 0;
  /* espacio correcto */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/tambora.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

/* =========================
   ANIMACIONES ENTRADA
========================= */

.qs-animate-left,
.qs-animate-right {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.qs-animate-left {
  transform: translateX(-80px);
}

.qs-animate-right {
  transform: translateX(80px);
}

.qs-animate-left.active,
.qs-animate-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .qs-section {
    padding: 70px 20px;
  }

  .qs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .qs-text h2 {
    font-size: 30px;
  }

  .qs-animate-left,
  .qs-animate-right {
    transform: translateY(40px);
  }
}

/* Overlay oscuro */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  /* 🔥 mejora visibilidad */
}

/* Contenido encima */
.contenido {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Cards */
.mision-vision .card {
  background: transparent !important;
  /* 🔥 fuerza transparencia */
  box-shadow: none !important;
  /* 🔥 elimina sombra */
  border: none !important;
  /* 🔥 elimina borde */
  padding: 5px;
  border-radius: 15px;
  color: white;
  opacity: 0;
  transform: translateY(40px);
  text-align: justify;

}

/* Hover */
.mision-vision .card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

/* Títulos */
.mision-vision h2 {
  margin-bottom: 15px;
  font-size: 28px;
  color: white;
  text-align: center;
}

/* Texto */
.mision-vision p {
  color: white !important;
  /* 🔥 fuerza el blanco */
  line-height: 1.6;
}

.mision-vision h2 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mision-vision p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Animación scroll */
.mision-vision .card.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .contenido {
    grid-template-columns: 1fr;
  }

  .mision-vision {
    text-align: center;
  }
}

.galeria {
  padding: 60px 0;
  background: #f5f5f5;
  text-align: center;
}

/* CONTENEDOR */
.galeria-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 🔥 FADE EN LOS BORDES */
.galeria-container::before,
.galeria-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* IZQUIERDA */
.galeria-container::before {
  left: 0;
  background: linear-gradient(to right, #f5f5f5 0%, transparent 100%);
}

/* DERECHA */
.galeria-container::after {
  right: 0;
  background: linear-gradient(to left, #f5f5f5 0%, transparent 100%);
}

/* TRACK */
.galeria-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll 25s linear infinite;
}

/* ITEM */
.item {
  flex: 0 0 auto;
}

/* IMÁGENES */
.item img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

/* HOVER */
.item img:hover {
  transform: scale(1.08);
}

/* ANIMACIÓN */
@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* PAUSA EN HOVER */
.galeria-container:hover .galeria-track {
  animation-play-state: paused;
}

/* 📱 RESPONSIVE PRO */

/* Tablet */
@media (max-width: 768px) {
  .item img {
    width: 200px;
    height: 140px;
  }

  .galeria-container::before,
  .galeria-container::after {
    width: 80px;
  }
}

/* Móvil */
@media (max-width: 480px) {
  .item img {
    width: 150px;
    height: 100px;
  }

  .galeria-container::before,
  .galeria-container::after {
    width: 50px;
  }
}

/* ===== DESKTOP (lado derecho) ===== */
.social-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
}

/* BOTONES */
.social-bar a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  margin: 5px 0;
  color: white;
  text-decoration: none;
  border-radius: 10px 0 0 10px;
  transition: all 0.3s ease;
  font-size: 18px;
}

/* COLORES */
.facebook {
  background: #1877f2;
}

.instagram {
  background: #e4405f;
}

.whatsapp {
  background: #25d366;
}

/* HOVER */
.social-bar a:hover {
  transform: translateX(-10px);
}



/* ===== 📱 MÓVIL (barra inferior tipo app) ===== */
@media (max-width: 768px) {

  .social-bar {

    position: fixed;
    top: 50%;
    right: 0;
    left: auto;
    bottom: auto;

    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: 8px;

    background: transparent;
    box-shadow: none;
    padding: 0;

    z-index: 9999;
  }

  .social-bar a {

    width: 42px;
    height: 42px;

    border-radius: 10px 0 0 10px;

    font-size: 18px;

    transition: .3s;
  }

  /* quitar efecto lateral */
  .social-bar a:hover {

    transform: translateX(-10px) scale(1.08);

    box-shadow: 0 15px 30px rgba(0, 0, 0, .35);

  }
}

/* SECCIÓN */
.valores {
  padding: 80px 10%;
  text-align: center;
  background: #f9f9f9;
}

.valores h2 {
  font-size: 32px;
  margin-bottom: 50px;
  color: #222;

  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

/* CONTENEDOR */
.contenedor-valores {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* CARDS */
.valores .card {
  flex: 1;
  min-width: 150px;
  background: white;
  padding: 25px 15px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

  opacity: 0;
  transform: translateY(60px) scale(0.95);

  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ACTIVACIÓN CON REBOTE */
.valores .card.active {
  animation: bounceIn 0.6s forwards;
}

/* ANIMACIÓN REBOTE */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }

  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }

  80% {
    transform: translateY(5px) scale(0.98);
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* DELAY PROGRESIVO */
.valores .card:nth-child(1) {
  animation-delay: 0.1s;
}

.valores .card:nth-child(2) {
  animation-delay: 0.2s;
}

.valores .card:nth-child(3) {
  animation-delay: 0.3s;
}

.valores .card:nth-child(4) {
  animation-delay: 0.4s;
}

.valores .card:nth-child(5) {
  animation-delay: 0.5s;
}

/* HOVER */
.valores .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: #2e7d32;
}

/* ICONOS */
.valores .card i {
  font-size: 30px;
  color: #c49b0f;
  margin-bottom: 10px;
  transition: 0.4s;
}

/* TEXTO */
.valores .card p {
  margin: 0;
  font-weight: 600;
  color: #333;
}

/* HOVER EFECTO */
.valores .card:hover p {
  color: white;
}

.valores .card:hover i {
  color: #ffd700;
  transform: scale(1.2);
}

/* ACTIVAR TÍTULO */
.valores h2.active {
  opacity: 1;
  transform: translateY(0);
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .contenedor-valores {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
  }

  .valores .card {

    min-width: unset;

    width: 100%;

    padding: 20px 15px;

    text-align: center;
  }

}

/* =====================
   TABLET & MOBILE
===================== */
@media (max-width: 991px) {

  /* Ocultar segunda columna */
  .detail-column {
    display: none;
  }

  .timeline-column {
    padding-left: 60px;
  }

  .timeline-line {
    left: 18px;
  }

  .timeline-dot {
    left: -32px;
  }
}


/* ======================
   SECCIÓN
====================== */
/* SECCIÓN */
.c3d-section {
  padding: 60px 90px;
}

/* TÍTULO */
.c3d-section-header {
  text-align: center;
  margin-bottom: 10px;
}

.c3d-section-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.c3d-section-header p {
  color: #666;
  font-size: 16px;
}

/* GRID 60 / 40 */
.c3d-grid {
  display: grid;
  grid-template-columns: 60% 30%;
  gap: 60px;
  align-items: center;
}

.c3d-col-carousel,
.c3d-col-text {
  min-width: 0;
}

/* TEXTO */
.c3d-col-text h2 {
  font-size: 2.1rem;
  margin-bottom: 20px;
}

.c3d-col-text p {
  line-height: 1.7;
  margin-bottom: 16px;
  color: #444;
}

.c3d-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  background: var(--azul);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
}


/* CONTENEDOR PILARES DE ACCION*/
.contenedorpilares {
  display: flex;
  gap: 50px;
  padding: 80px 10%;
  align-items: center;
  background: var(--amarillo);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

/* COLUMNA IZQUIERDA */
.info {
  flex: 1;
}

.info h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #222;
}

.info p {
  color: #555;
  line-height: 1.6;
}

/* COLUMNA DERECHA (CARDS) */
.servicios {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* CARD */
.card {
  display: flex;
  gap: 15px;
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: none;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  border: none;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icono {
  font-size: 30px;
  color: #e63946;
  transition: 0.4s;
  min-width: 35px;
}

.card:hover .icono {
  transform: rotate(10deg) scale(1.2);
  color: #2e7d32;
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin-top: 5px;
  color: #555;
  font-size: 14px;
}

/* ANIMACIÓN SCROLL */
.card.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contenedorpilares {

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 60px 20px;

    gap: 35px;

  }

  .info {

    width: 100%;
    max-width: 650px;

    text-align: center;

  }

  .info h2 {

    font-size: 2rem;

    margin-bottom: 15px;

  }

  .info p {

    max-width: 550px;

    margin: auto;

    line-height: 1.7;

  }

  .servicios {

    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(140px, 1fr));

    gap: 18px;

  }

  .servicios .card {

    width: 100%;

    min-height: 170px;

    padding: 22px 15px;

    text-align: center;

    border-radius: 18px;

    box-sizing: border-box;

  }

  .servicios .icono {

    font-size: 34px;

    margin-bottom: 12px;

  }

  .servicios h3 {

    font-size: 17px;

  }

  .servicios p {

    font-size: 14px;

    line-height: 1.5;

  }
}
@media (max-width:360px){

    .servicios{

        grid-template-columns:1fr;

    }

}

/* ======================
   CARRUSEL 3D HORIZONTAL
====================== */
.c3d-carousel {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 360px;
  margin: 0 auto;
  perspective: 1200px;
}

.c3d-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.c3d-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  max-width: 380px;
  height: 260px;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0.4;
  transition: transform 0.5s ease, opacity 0.5s ease;
  border-radius: 20px;
  overflow: hidden;
}

/* IMAGEN */
.c3d-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CAPTION */
.c3d-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.c3d-caption h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.c3d-caption p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* SOLO LA ACTIVA MUESTRA TEXTO */
.c3d-item.active .c3d-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ESTADOS */
.c3d-item.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
}

.c3d-item.left {
  transform: translate(-120%, -50%) scale(0.75) rotateY(18deg);
  z-index: 2;
}

.c3d-item.right {
  transform: translate(20%, -50%) scale(0.75) rotateY(-18deg);
  z-index: 2;
}

/* NAVEGACIÓN */
.c3d-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  z-index: 999;
  /* 🔥 fuerte para asegurar */

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

/* opcional: mejora visual */
.c3d-nav:hover {
  background: var(--azul);
  color: #000;
}

.c3d-left {
  left: -20px;
}

.c3d-right {
  right: -20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .c3d-grid {
    grid-template-columns: 1fr;
  }

  .c3d-item {
    width: 85%;
    height: 220px;
    z-index: 1;
  }

  .c3d-item.left,
  .c3d-item.right {
    opacity: 0;
    pointer-events: none;
  }
}

/* ================= CONTACTO ================= */

.contact-section {
  padding: 100px 20px;
  background: #f3f4f5;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

/* TOP */
.contact-top {
  text-align: center;
  max-width: 800px;
  margin: auto;
  margin-bottom: 60px;
}

.contact-top h2 {
  font-size: 36px;
  color: var(--negro);
  margin-bottom: 10px;
}

.contact-info-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
  color: var(--amarillo);
}

/* BOTTOM */
.contact-bottom {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border-radius: 10px;
  border: none;
  background: #eee;
}

textarea {
  min-height: 120px;
  resize: none;
}

.contact-form button {
  background: var(--verde);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: var(--amarillo);
}

/* MAPA */
.map-container {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-bottom {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FOOTER ULTRA MODERNO
========================= */

.footer {
  position: relative;
  padding: 80px 20px 30px;
  color: white;
  overflow: hidden;
}

/* 🔥 GLASSMORPHISM PRO */
.footer.glass {
  background: var(--verde);
  /* azul oscuro tipo Apple */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* EFECTO GRADIENTE SUTIL */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(251, 192, 45, 0.15), transparent 40%),
    radial-gradient(circle at bottom right, rgba(43, 163, 47, 0.15), transparent 40%);
  pointer-events: none;
}

/* CONTENEDOR */
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* COLUMNAS */
.footer-col {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

/* ACTIVACIÓN */
.footer.reveal.active .footer-col {
  opacity: 1;
  transform: translateY(0);
}

/* DELAY SUAVE */
.footer.reveal.active .footer-col:nth-child(1) {
  transition-delay: 0.1s;
}

.footer.reveal.active .footer-col:nth-child(2) {
  transition-delay: 0.2s;
}

.footer.reveal.active .footer-col:nth-child(3) {
  transition-delay: 0.3s;
}

.footer.reveal.active .footer-col:nth-child(4) {
  transition-delay: 0.4s;
}

/* TITULOS */
.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
  color: var(--amarillo);
  letter-spacing: 1px;
}

/* TEXTO */
.footer-col p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* LINKS */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
  position: relative;
}

/* underline animado */
.footer-col ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amarillo);
  transition: width 0.3s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-col ul li a:hover::after {
  width: 100%;
}

/* REDES */
.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

/* COLORES */
.footer-social .fb:hover {
  background: #1877f2;
}

.footer-social .ig:hover {
  background: #e4405f;
}

.footer-social .wa:hover {
  background: #25d366;
}

/* HOVER PRO */
.footer-social a:hover {
  transform: translateY(-6px) scale(1.1);
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ALIADOS (INTEGRADO)
========================= */

.aliados-section {
  padding: 100px 20px;
  background: var(--gris);
  text-align: center;
  position: relative;
}

/* HEADER */
.aliados-header h2 {
  font-size: 36px;
  color: var(--negro);
  margin-bottom: 10px;
}

.aliados-header p {
  max-width: 600px;
  margin: 20px auto 50px;
  color: #555;
  line-height: 1.6;
}

/* GRID */
.aliados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 🔥 SIEMPRE 3 COLUMNAS */
  gap: 25px;
  max-width: 900px;
  margin: auto;
}

/* CARD */
.aliado-card {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 25px;
  border-radius: 18px;

  /* 🔥 MISMO ESTILO GLASS DEL FOOTER */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);

  transition: all 0.4s ease;

  opacity: 0;
  transform: translateY(40px);
}

/* LOGOS */
.aliado-card img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;

  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s ease;
}

/* HOVER */
.aliado-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(251, 192, 45, 0.4);
  /* amarillo suave */
}

.aliado-card:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* ANIMACIÓN SCROLL (usa tu reveal) */
.aliados-section.active .aliado-card {
  opacity: 1;
  transform: translateY(0);
}

/* DELAY PROGRESIVO (igual que valores y footer) */
.aliado-card:nth-child(1) {
  transition-delay: 0.1s;
}

.aliado-card:nth-child(2) {
  transition-delay: 0.2s;
}

.aliado-card:nth-child(3) {
  transition-delay: 0.3s;
}

.aliado-card:nth-child(4) {
  transition-delay: 0.4s;
}

.aliado-card:nth-child(5) {
  transition-delay: 0.5s;
}

.aliado-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* TABLET */
@media (max-width: 900px) {
  .aliados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MÓVIL */
@media (max-width: 500px) {
  .aliados-grid {
    grid-template-columns: 1fr;
  }
}

/* CONTENEDOR */
.honeycomb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  margin: 60px auto;
  gap: 0;
}

/* HEXÁGONO */
.hex {
  width: calc(25% - 24px);
  /* 4 por fila */
  height: 170px;
  margin: 12px;
  position: relative;

  clip-path: polygon(50% 0%,
      100% 25%,
      100% 75%,
      50% 100%,
      0% 75%,
      0% 25%);

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);

  display: flex;
  justify-content: center;
  align-items: center;

  transition: transform 0.4s ease, box-shadow 0.4s ease;

  opacity: 0;
  transform: translateY(40px);
}

/* 🔥 GLOW BASE (apagado) */
.hex::after {
  content: "";
  position: absolute;
  inset: -2px;

  border-radius: 12px;

  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0.0),
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.0));

  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s ease;
}

/* IMAGEN */
.hex img {
  width: 75%;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

/* =========================
   HOVER PRO
========================= */

.hex:hover {
  transform: translateY(-10px) scale(1.07);

  /* 🔥 SOMBRA GLOW */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 0 15px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.4);
}

/* 🔥 ACTIVAR BRILLO */
.hex:hover::after {
  opacity: 1;
  animation: glowMove 2.5s linear infinite;
}

/* IMAGEN CRECE */
.hex:hover img {
  transform: scale(1.08);
}

/* =========================
   ANIMACIÓN GLOW
========================= */

@keyframes glowMove {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* EFECTO PANAL */
.hex:nth-child(odd) {
  margin-top: 50px;
}

/* SCROLL */
.aliados-section.active .hex {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FLOAT ORGÁNICO
========================= */

@keyframes floatOrganic {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float {
  animation: floatOrganic 7s ease-in-out infinite;
}

.float:nth-child(1) {
  animation-delay: 0s;
}

.float:nth-child(2) {
  animation-delay: 1s;
}

.float:nth-child(3) {
  animation-delay: 2s;
}

.float:nth-child(4) {
  animation-delay: 0.5s;
}

.float:nth-child(5) {
  animation-delay: 1.5s;
}

.float:nth-child(6) {
  animation-delay: 2.5s;
}

.float:nth-child(7) {
  animation-delay: 0.8s;
}

.float:nth-child(8) {
  animation-delay: 1.8s;
}

.float:nth-child(9) {
  animation-delay: 2.8s;
}

/* HOVER MANDA */
.hex:hover {
  animation: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
  .hex {
    width: 110px;
    height: 125px;
  }

  .hex:nth-child(odd) {
    margin-top: 25px;
  }
}

/* =========================
   ANIMACIÓN FLOTANTE
========================= */

@keyframes floatOrganic {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.03);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

/* ACTIVAR MOVIMIENTO */
.float {
  animation: floatOrganic 7s ease-in-out infinite;
}

/* 🔥 VARIACIÓN NATURAL (CLAVE) */
.float:nth-child(1) {
  animation-delay: 0s;
}

.float:nth-child(2) {
  animation-delay: 1s;
}

.float:nth-child(3) {
  animation-delay: 2s;
}

.float:nth-child(4) {
  animation-delay: 0.5s;
}

.float:nth-child(5) {
  animation-delay: 1.5s;
}

.float:nth-child(6) {
  animation-delay: 2.5s;
}

.float:nth-child(7) {
  animation-delay: 0.8s;
}

.float:nth-child(8) {
  animation-delay: 1.8s;
}

.float:nth-child(9) {
  animation-delay: 2.8s;
}

/* 🔥 HOVER DOMINA LA ANIMACIÓN */
.hex:hover {
  animation: none;
  transform: translateY(-15px) scale(1.08);
}