body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
html, body {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  
}

.snap-seccion {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  margin: 0;           /* ¡Clave! */
  padding: 0;          /* ¡Clave! */
  box-sizing: border-box;
}


p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-shadow: #000000;
  font-size: 3rem;
  margin-bottom: 1rem;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  height: 100%;
  overflow-y: auto;

}
/*encabe*/
/*manejadores*/
.scroll-container {

  overflow-y: scroll;
  height: 100vh;
}

.snap-seccion {
  scroll-snap-align: start;
  height: 100vh;
}

.con-overflow {
  overflow: hidden;

}
/*menu principal*/
/* estilos para navbar */

/* 1) Estado por defecto (primera sección) */
.custom-navbar {
  height: 170px;
  padding: 0;
  position: relative;
  transition: height 0.3s ease, padding 0.3s ease;
}

/* 2) Logo alineado verticalmente */
.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  height: 170px;
  padding: 0;
  transition: height 0.3s ease;
}
  height: 100px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
li{
  font-size: 1em;
}
.brand-logo{
  margin-right: 2%;
}
/* 3) Texto central */
.navbar-center {
  color:#e21e32;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* 4) Enlaces alineados verticalmente */
.custom-navbar .nav-link {
  font-size: 1.8em !important;
  color: #243778;
  line-height: 170px;
  transition: line-height 0.3s ease, font-size 0.3s ease;
}

.custom-navbar .nav-link:hover {
  color: #0056b3 !important;       /* un tono más oscuro de tu color primario */
  background-color: rgba(0, 123, 255, 0.1); /* fondo ligero al pasar el cursor */
  text-decoration: none;           /* quita subrayado si lo hay */
  border-radius: 0.25rem;          /* esquinas suaves en el hover */
}

/* 5) Toggler (hamburger) centrado vertical */
.custom-navbar .navbar-toggler {
  margin-top: calc((170px - 48px)/2);
  transition: margin-top 0.3s ease;
}

/* 6) Estado “shrink” (secciones posteriores) */
nav.custom-navbar.shrink {
  height: 80px !important;
}
nav.custom-navbar.shrink .navbar-brand {
  height: 80px !important;
}
nav.custom-navbar.shrink .brand-logo {
  height: 50px !important;
}
/* opcional: ocultar texto central al encoger */
/* nav.custom-navbar.shrink .navbar-center {
  opacity: 0;
} */
nav.custom-navbar.shrink .nav-link {
  line-height: 80px !important;
  font-size: 1.2em !important;
}
nav.custom-navbar.shrink .navbar-toggler {
  margin-top: calc((80px - 48px)/2) !important;
}

/* menu lateral */
.menu-lateral {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-right: 2px solid #73b9e3;
  padding: 10px 0;
  z-index: 9999;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.menu-lateral.visible {
  opacity: 1;
  pointer-events: auto;
}

.menu-lateral ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-lateral li {
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 400;
  color: #243778;
  
  font-size: 2rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu-lateral li:hover,
.menu-lateral li.activo {
  background-color: #73b9e3;
  font-weight: 600;
  color: white;
  font-weight: bold;
  border-left: 4px solid #1375bb;
}


/* botón siempre encima del inicio del menú */
#btnToggleMenu {
  position: absolute;     /* dentro de .menu-lateral */
  top: -3rem;           /* justo por encima del menú */
  left: 50%;              /* centrado horizontal */
  transform: translateX(-50%);
  z-index: 1000;
    font-size: 2rem;    
  background: #73b9e3;
  border: none;
  color: white;
  padding: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Al expandir, el botón se pega al borde izquierdo de la ventana */

.menu-lateral.collapsed ul li {
  display: none;
}

/* 2) … salvo el que tiene la clase .activo */
.menu-lateral.collapsed ul li.activo {
  display: block;
}

/* 3) Para que el contenedor reduzca su ancho al mínimo necesario */
.menu-lateral.collapsed {
  width: auto;
  padding: 5px 0;  /* opcional: ajusta el padding para que no se vea tan grande */
}

#intro {
  padding: 80px 20px;
  background-image: url(../img/f1.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.gotita {
  width: 12%;
  animation: flotar 3s ease-in-out infinite;
}
@keyframes flotando {
  0% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-20px); }
  100% { transform: translate(-50%, -50%) translateY(0); }
}

#gotaFlotante {
  position: fixed;
  left: 50vw;
  top: 80vh;
  width: 15vw; /* Ajusta el tamaño a gusto */
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  display: none;
  transition: opacity 0.3s;
  animation: flotando 2.2s ease-in-out infinite;
}
@keyframes flotando {
  0%   { transform: translate(-50%, -50%) translateY(0); }
  50%  { transform: translate(-50%, -50%) translateY(-20px); }
  100% { transform: translate(-50%, -50%) translateY(0); }
}

#gotaDistribucionFlotante {
 position: fixed;
  left: 50vw;
  top: 80vh;
  width: 15vw; /* Ajusta el tamaño a gusto */
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  display: none;
  transition: opacity 0.3s;
  animation: flotando 2.2s ease-in-out infinite;
}
.gota_viaje{
  display: none;
}



@keyframes flotar {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}


/*columnas*/
.tuberia-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
}
section.snap-seccion {
  height: 1080px;
}

.cuatro-columnas {
  display: grid;
  grid-template-columns: 10% 40% 40% 10%;
  height: 100vh;
  width: 100%;
  background-image: url(/img/f2.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.cuatro-columnas{
background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}
#fase-paramo {
  background-image: url('../svg/PARAMO.svg');

}
#fase-conduccion{
   background-image: url('../svg/CONDUCCION.svg');
  
}
#fase-generacion{
   background-image: url('../svg/generacion.svg');
  
}
#fase-potabilizacion{
   background-image: url('../svg/potabilizacion.svg');
  
}
#fase-distribucion{
   background-image: url('../svg/distribucion.svg');
  
}
#fase-uso{
   background-image: url('../svg/uso.svg') !important;
  
}
#fase-saneamiento{
   background-image: url('../svg/saneamiento.svg');
  
}
#fase-final{
   background-image: url('../svg/final.svg') !important;
  
}



.col {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  
  text-align: center;
  padding: 1rem;
}



.columna1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 85vh;
  align-self: center;
  box-sizing: border-box;
  padding: 0;
  min-height: 0;
}

.columna2 {
  display: flex;
  height: 85vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
 
}


.gota_oculta{
  display: none!important;
}
.modal{
  z-index: 10000;
}
/*img*/
.imagen-columna1 {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}
.imagen-ecoamigo {
   border-radius: 30px;
  border: 4px solid white; /* ✅ BORDE BLANCO ALREDEDOR */
  box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.2); /* ✅ SOMBRA SUAVE */
  background-color: #cecece;

     width: 70%;
  height: 70%;
    object-fit: contain;
    object-position: center;
  
}

/*Modales*/
/* Modal al 50% de ancho */
.modal-dialog.modal-50 {
  max-width: none;   /* anula el max-width de Bootstrap */
  width: 50vw;       /* 50% del ancho del viewport */
}

/* Asegura scroll interno si el carousel excede en altura */
.modal-dialog.modal-50 .modal-content {
  max-height: 90vh;
  overflow: hidden;
}
/* Centrar el título y recolorear la X de cierre */
#miModal .modal-header {
  display: flex;
  justify-content: center;  /* centra los hijos horizontalmente */
  position: relative;       /* para posicionar la X */
}

/* Asegura que el título quede realmente centrado */
#miModal .modal-title {
  margin: 0 auto;
}

/* Recolorea la X del botón de cierre */
#miModal .modal-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  /* SVG inline con stroke rojo (#e21e32) */
  background-image: url("data:image/svg+xml;charset=utf8,\%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E\%3Cpath stroke='%23e21e32' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 2l12 12M14 2L2 14'/%3E\%3C/svg%3E");
}


/* burbujas*/
.burbuja-prueba {
  width: 80%;
  background-color: #fff;
  border-radius: 30px 30px 30px 10px; /* Bordes tipo burbuja */
  padding: 20px;
  color: black;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); /* Sombra más suave */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  border: 1px solid #e0e0e0; /* Borde sutil */
}
.text-start { 
  color: #1375bb;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; /* un poco más de peso */
  font-size: 2.5rem; /* un poco más grande */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px; /* más espacio entre letras */
  
  transition: all 0.3s ease; /* transición suave para efectos hover */
  text-align: center!important; 
}



.bubble-container {
  background-color: #e0f7ff;
  border-radius: 25px;
  padding: 50px 30px;
  max-width: 80%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: auto;
  line-height: 1.6;
}

.bubble-container::before {
  content: "";
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  position: absolute;
  left: 30px;
  bottom: -15px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid #e0f7ff;
}

#btnAccion {
  padding: 1rem 2.5rem;
  font-size: 1.5rem;
  border-radius: 12px;
}
.btn-continuar{
  background-color: #e21e32 !important;
  border-radius: none;
  
}
.btn-pausa{
  background-color: #1375bb !important;
  border-radius: none;
}
/* Agrandar un poco los botones de “Fin” y “Pausar” */
#btnFinal,
#btnNarracionFinal {
  /* Aumenta el tamaño de la fuente */
  font-size: 2rem;        /* antes quizá eran 1rem */

  /* Aumenta el “relleno” interno */
  padding: 0.75rem 1.5rem;    /* antes: .5rem 1rem, por ejemplo */

  /* (Opcional) Añade un poco de border-radius extra */
  border-radius: 0.375rem;    /* antes: .25rem */
}



.burbuja-prueba.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.burbuja-narrativa {
  background: #e0f7ff;
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 90%;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
  text-align: center;
}

.botones {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.botones .btn {
  padding: 0.5rem 1rem;
}
/**gota*/
.gota-generacion{
  width: 30%;
}
.gota-oculta {
  opacity: 0;
  pointer-events: none;
}
.gota-tamano{
  width: 50em;
}
.gota-aparece {
  animation: gotaAparece 3s ease-out forwards;
}

@keyframes gotaAparece {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gota-caida {
  from {
    transform: translateY(-100vh);
    /* empieza arriba de la pantalla */
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.gota-caida {
  animation: gota-caida 1.2s ease-out forwards;
}



.gota-animada {
  animation: pulso 1.5s infinite;
  cursor: pointer;
}

@keyframes pulso {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}
.gota-prueba {
  margin: 0;
  max-width: 80%;
  max-height: 30vh;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.narrador-gota {
  margin-bottom: 1rem;
}

.gotita-narradora {
  height: 60px;
  width: auto;
}


/*conduccion*/
.img-conduccion {
  display: none;
}    
/*patabilizacio*/

.uno {
  position: relative;
  height: 85vh;      
  overflow: hidden;   
}


#carouselPotabilizacion {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Cada “card” apilada en absoluto */
#carouselPotabilizacion .card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem;
  
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Placeholder azul (índice 0) */
#carouselPotabilizacion .card.placeholder {

  opacity: 1;           /* Se ve hasta que se muestre slide 1 */
}

/* Slide activo */
#carouselPotabilizacion .card.activo {
  opacity: 1;
}

/* Título dentro de cada slide real */
#carouselPotabilizacion .card h2 {
  color: #1375bb;
  content: "";
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2em;
  margin: 0.75rem 0 0.5rem 0;
 
}

.carousel-wrapper {
  display: flex;
  align-items: center;      /* Centra verticalmente */
  justify-content: center;  /* Centra horizontalmente */
  height: 100vh;            /* Usa todo el alto para centrar, sin que el carrusel lo ocupe */
  width: 100%;
}

#carouselPotabilizacion {
  position: relative;
  width: 600px;   /* o el tamaño que desees */
  height: 400px;
}

/* Párrafo dentro de cada slide real */
#carouselPotabilizacion .card p {
 color: #243778;
  content: "";
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.4;
}
/* La tarjeta padre debe tener altura fija o relativa */
.card {
  height: 300px; /* o el valor que necesites */
  position: relative;
}

/* Carrusel interno: 50% de la altura de .card */
.inner-carousel {
  position: relative;
  width: 100%;
  height: 70%;       /* ocupa la mitad de la .card */
  overflow: hidden;
}

/* Mantener la lógica de posición absoluta para los slides */
.inner-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;      /* ocupa el 100% del .inner-carousel */
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;

}

.inner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inner-card.activo {
  opacity: 1;
}



/* Botones del carrusel interno */
.inner-prev,
.inner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  user-select: none;
}

.inner-prev { left: 0.5rem; }
.inner-next { right: 0.5rem; }

.inner-prev:hover,
.inner-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------
   Botones de control del carrusel principal
------------------------------------------------------------ */
#carouselPotabilizacion .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  user-select: none;
}

#carouselPotabilizacion .carousel-control.prev {
  left: 1rem;
}

#carouselPotabilizacion .carousel-control.next {
  right: 1rem;
}

#carouselPotabilizacion .carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
/*pie*/

.footer {

    background-color: #243778;

    color: #fff;

    padding: 20px;

    font-size: 0.9rem;

}

/* Grid principal del pie de página */

.footer-grid {

    display: grid;

    grid-template-columns: 35% 30% 35%;

    gap: 20px;

    align-items: start;

    padding-bottom: 20px;

}

/* Primera columna: logos en dos columnas internas */

.footer-col1 .logo-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

}

.logo {

    width: 100%;

    max-width: 150em;

}

/* Segunda columna: enlaces útiles */

.footer-col2 .footer-links {

    list-style: none;

    padding: 0;

}

.footer-col2 .footer-links li a {

    color: #000000;

    text-decoration: none;

    padding: 5px 0;

    display: block;

}

.footer-col2 .footer-links li a:hover {

    color: #ff9800;

}

/* Tercera columna: información de la empresa y redes sociales */

.footer-col3 .company-info {

    list-style: none;

    padding: 0;

}

.footer-col3 .company-info li {

    display: flex;

    align-items: center;

    gap: 10px;

}

.footer-col3 .company-info i {

    font-size: 1.2rem;

}

.social-icons {

    margin-top: 15px;

}

.social-icons a {

    font-size: 2rem;

    margin-right: 10px;

    text-decoration: none;

    color: #fff;

    transition: color 0.3s;

}

.social-icons a svg {

    width: 1em;

    height: 1em;

    fill: currentColor;

}

.social-icons a:hover {

    color: #fff;

}

/*RECURSOS GRID PÁGINASEVUNDARIA*/

.grid-container2 {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin-top: 10%;

    align-content: center;

    gap: 20px;

    width: 80%;

    max-width: 1800px;

    margin: 10% auto;

    

}

.grid-item2 {

    background-color: #ffffff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s, box-shadow 0.3s;

    text-align: center;

    padding: 20px;

}

.grid-item2:hover {

    transform: translateY(-10px);

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);

}

.grid-item2 img {

    width: 100%;

    height: auto;

    border-radius: 10px 10px 0 0;

}

.grid-item2 h3 {

    font-size: 1.2rem;

    margin: 15px 0 10px;

}

.grid-item2 p {

    font-size: 1rem;

    color: #555;

    margin-bottom: 15px;

}

.grid-item2 button {

    padding: 10px 20px;

    font-size: 1rem;

    color: #ffffff;

    background-color: #030c33;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    transition: background-color 0.3s;

}

.grid-item button:hover {

    background-color: #020618;

}
/* grid modulos*/
.grid-container2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 10%;
    align-content: center;
    gap: 20px;
    width: 80%;
    max-width: 1800px;
    margin: 10% auto;
    
}
.grid-item2 {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 20px;
}
.grid-item2:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.grid-item2 img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}
.grid-item2 h3 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
}
.grid-item2 p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}
.grid-item2 button {
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    background-color: #030c33;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.grid-item button:hover {
    background-color: #020618;
}
#titulo-alcantarillado {
    color: #fff;
}
#btnFinal{
  display: none!important;
}



@media (max-width: 991.98px) {
  .menu-lateral.collapsed ul li.activo{
    display: none;
  }
  .burbuja-prueba{
    display: none;
  }
  /*pie*/
    .footer-grid {
        grid-template-columns: 1fr; 
    
    }
    .footer-col1 .logo-grid, 
    .footer-col2 .footer-links, 
    .footer-col3 .company-info {
        display: block; 
    }
    .social-icons a {
        margin-right: 5px; 
    }
    /*grid*/
    .dis{
      margin-top: -50%;
    }
    .grid-container2 {
        grid-template-columns: 1fr; /* Cambia a una sola columna para pantallas pequeñas */
        margin: 5% auto; /* Reduce el margen superior/inferior */
    }

    .grid-item2 {
        padding: 15px; /* Ajusta el padding para una mejor visualización en pantallas más pequeñas */
    }
    .custom-navbar {
    height: 100px;
  }

  .custom-navbar .navbar-brand {
    height: 100px;
  }

  .custom-navbar .brand-logo {
    height: 60px;
  }

  .custom-navbar .nav-link {
    line-height: 100px;
    font-size: 1.2em;
  }

  .custom-navbar .navbar-toggler {
    margin-top: calc((100px - 48px)/2);
  }

  .navbar-center {
    font-size: 1rem;
  }

  .custom-navbar .navbar-collapse {
    position: absolute;  
    top: 100%;            
    left: 0;
    width: 100%;
    background-color: #fff !important;  
    z-index: 1000;        
    padding-top: 1rem;    
    padding-bottom: 1rem;
  }
  .custom-navbar .navbar-collapse .navbar-nav {
    background-color: transparent;
  }
  .custom-navbar .navbar-collapse .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;  
    gap: 1rem;            
  }

  
  .custom-navbar .navbar-collapse .nav-link {
    text-align: center;
    width: 100%;           
  }
   .modal-dialog.modal-50 {
    width: 90vw;       
    margin: 1rem auto; 
  }
  .navbar-toggler-icon{
  color: red;
}
}


@media (max-width: 768px) {
  p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .text-start, p, .texto-burbuja {
    font-size: 1rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .imagen-columna1 {
    width: 30%;
  }

  #btnColumna1 {
    font-size: 0.8rem !important;
  }

  .columna1 {
    margin-top: 20%;
  }

  .gotita {
    width: 20vh;
    animation: flotar 3s ease-in-out infinite;
  }

  .bubble-container {
    font-size: 1.9rem;
  }

  .gota-prueba {
    max-height: 15vh !important;
  }

  .saneamiento {
    margin-top: -15%;
  }

  li {
    font-size: 1.5em;
  }

  .imagen-ecoamigo {
    width: 50%;
  }

  .cuatro-columnas {
    grid-template-columns: 100%;
    grid-auto-rows: 1fr;
    height: 100vh;
    width: 100%;
  }

  .col-10 {
    display: none;
  }

  .columna1 {
    height: 50vh;
    align-self: stretch;
    justify-content: flex-start;
    padding: 0;
    min-height: 0;
  }

  .imagen-columna1 {
    width: 80%;
    max-width: 300px;
    height: 20vh;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }

  #btnColumna1 {
    flex: 0 0 auto;
    margin: 0.75rem 0;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    width: 70%;
    max-width: 240px;
  }

  .columna2 {
    height: 50vh;
    align-self: stretch;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-y: auto;
  }

  .navbar-center {
    display: none;
  }

  .nav-link {
    background-color: red;
  }

  .burbuja-prueba {
    width: 90%;
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    flex: 0 0 auto;
  }

  .gota-prueba {
    max-width: 60%;
    max-height: 25vh;
    margin-bottom: 0.4rem;
  }

  .botones {
    flex: 0 0 auto;
    gap: 0.75rem;
    margin-top: 0.4rem;
  }

  .botones .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  #fase-conduccion .img-conduccion {
    width: 60% !important;
    max-width: 150px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .columna-conduccion {
    background-image: none;
  }

  #fase-conduccion.cuatro-columnas {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
  }

  #fase-conduccion .col-10 {
    display: none;
  }

  #fase-conduccion .columna-conduccion,
  #fase-conduccion .columna2 {
    display: contents;
  }

  #fase-conduccion .img-conduccion {
    order: 1;
    width: 80%;
    max-width: 300px;
    height: 30vh;
    object-fit: cover;
    margin: 1rem auto;
  }

  #fase-conduccion #burbujaConduccion {
    order: 2;
    width: 90%;
    font-size: 1.8rem;
    margin: 0.5rem auto;
  }

  #fase-conduccion .gota-prueba {
    order: 3;
    max-width: 60%;
    max-height: 25vh;
    object-fit: contain;
    margin: 0.5rem auto;
  }

  #fase-conduccion .botones {
    order: 4;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 0.5rem auto;
  }

  #fase-conduccion .botones .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  #fase-conduccion {
    overflow-y: auto;
  }

  .img-conduccion {
    height: 10vh !important;
  }
}
