
/* ==========================
   HEADER
============================= */
.greenleaders-header {
  position: relative;
  width: 100%;
  height: 70px;
  background-color: #2E4639;
  border-bottom: 1px solid #D4A373;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  font-family: 'Poppins', sans-serif;
  z-index: 1000;
}

/* Contenedor del logo y texto */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Añadido para centrar horizontalmente */
  gap: 1rem;
  width: 100%; /* Asegura que el contenedor ocupe todo el ancho disponible */
  max-width: 300px; /* Opcional: limita el ancho máximo para mejor aspecto */
  margin: 0 auto; /* Centra el contenedor horizontalmente en su contenedor padre */
}

/* Imagen del logo */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
/* Ícono de menú hamburguesa */
.menu-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Íconos del header */
.header-icons {
  position: absolute;
  top: 1rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.language-selector {
  display: flex;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.language-icon {
  display: flex;
  align-items: center;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease;
}

.language-icon:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.language-icon.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

.language-icon span {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.login-icon {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.3);;
  transition: background-color 0.3s ease;
  display:inline-block;
  cursor:pointer;
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.15);;;
  -webkit-transition: ease-out 0.4s;
  -moz-transition: ease-out 0.4s;

}

.login-icon:hover {
  background-color: rgba(255, 255, 255, 0.15);;
}

.login-icon i {
  margin-right: 0.5rem;
}

.theme-icon {
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.theme-icon:hover {
  transform: rotate(180deg);
}
/* ==========================
   BARRA DE NAVEGACION
============================= */
.greenleaders-nav {
  width: 100%;
  background-color:#2E4639;
  border-bottom: 1px solid #2E4639;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.green-list {
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  font-family: 'Poppins', sans-serif;
}

.green-list li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

.green-list li a:hover {
  color: #b99119;
}
/* ==========================
   GALERIA
============================= */

.header-gallery {
position: relative;
height: 500px;
overflow: hidden;
width: 100%;
}
        
.gallery-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
background-size: cover;
background-position: center;
transform: scale(1.1); /* Iniciar con un poco de zoom */
}
        
.gallery-slide.active {
opacity: 1;
transform: scale(1); /* Volver al tamaño normal cuando está activo */
z-index: 1; /* Asegurar que el slide activo esté por encima */
}
        
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); /* Gradiente para mejor visibilidad del texto */
display: flex;
            flex-direction: column;
            justify-content:center;
            align-items: center;
            padding: 80px 40px;
            color: white;
            z-index: 2;
        }
        
        .overlay h1 {
            font-size: 3.5rem;
            font-weight: 700;
            color: white;
            font-family: "Poppins", sans-serif;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            transform: translateY(50px); /* Iniciar fuera de la vista */
            opacity: 0;
            transition: transform 1s ease-out 0.5s, opacity 1s ease-out 0.5s;
        }
        
        .overlay p {
            font-size: 1.8rem;
            max-width: 600px;
            color: white;
            font-family: "Poppins", sans-serif;
            margin-bottom: 30px; /* Corregido: eliminado el % y el top innecesario */
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            transform: translateY(50px); /* Iniciar fuera de la vista */
            opacity: 0;
            text-align: center;
            transition: transform 1s ease-out 0.7s, opacity 1s ease-out 0.7s;
        }
        .overlay.active h1,
        .overlay.active p {
            transform: translateY(0);
            opacity: 1;
        }
        
        .gallery-controls {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 10px;
            z-index: 3;
        }
        
        .gallery-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
        }
        
        .gallery-dot:hover {
            transform: scale(1.2);
        }
        
        .gallery-dot.active {
            background-color: white;
            transform: scale(1.2);
        }
        
        .gallery-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background-color: rgba(0, 0, 0, 0.3);
            color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 3;
            transition: background-color 0.5s ease, transform 0.5s ease;
        }
        
        .gallery-arrow:hover {
            background-color: rgba(0, 0, 0, 0.6);
            transform: translateY(-50%) scale(1.1);
        }
        
        .gallery-arrow.prev {
            left: 20px;
        }
        
        .gallery-arrow.next {
            right: 20px;
        }
        
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 50px 20px;
        }
        
        .main-content h2 {
            margin-bottom: 30px;
            text-align: center;
            font-weight: 700;
        }
        
        .main-content p {
            margin-bottom: 20px;
            font-weight: 400;
        }
        
        @media (max-width: 768px) {
            .header-gallery {
                height: 350px;
            }
            
            .overlay {
                padding: 40px 20px;
            }
            
            .overlay h1 {
                font-size: 2.5rem;
            }
            
            .overlay p {
                font-size: 1.2rem;
            }
            
            .gallery-arrow {
                width: 40px;
                height: 40px;
            }
        }

/* ==========================
   MARQUEE
============================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    background-color:#7b6f58 ;
    border-color:#808000 ;
   
}

.marquee {
    display: inline-block;
    color: white;
    padding: 10px 20px;
    font-family: "Poppins", sans-serif;
    border-radius: 5px;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-content {
    display: inline-block;
    padding: 5px 0;
    font-family: "Poppins", sans-serif;
    font-size: 24px; /* Tamaño de fuente más grande */
    line-height: 1.5; /* Mejora la legibilidad */
    font-weight: bold;
}

.marquee-content i {
    margin-right: 10px;
      font-size: 1.5em; /* Tamaño del icono más grande */
}

/*FRASE INICIAL*/

.intro-frase {
  background: white;
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid #808000;
;
}

.contenedor-frase blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: 2em;
  font-weight: 500;
  color: #424202;
  margin: 0 auto 20px;
  max-width: 800px;
  line-height: 1.4;
}

.autor {
  font-size: 1em;
  color: #808000;
  font-style: italic;
  font-family: "Roboto", sans-serif;
}


/* ==========================
   BIENVENIDO
============================= */
/* Sección destacada */
.highlight-section {
    background: #d7d9ce;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bolder;
    position: relative;
    z-index: 1;
    font-family: "Marko One", sans-serif;
    color: #424202;
    display: inline-block;
    border-bottom: 4px solid #bc8a5f; /* Línea teal decorativa */
    padding-bottom: 10px;
}

.teal-line {
    width: 50px;
    height: 4px;
    background-color:#bc8a5f;
    margin: 20px auto 0;
    animation: expandLine 1s ease-in-out;
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.highlight-section p {
    font-size: 1.5em;
    margin-bottom: 30px;
    position: relative;
    font-family: "Poppins", sans-serif;
    color: #5b4a2f;
    z-index: 1;
}

.icon-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
     gap: 40px 60px; 
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 20px;
    color:#8c7b6b;
    width: 150px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-button:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(91, 74, 47, 0.4); /* Teal glow */
}

.icon-button i {
    font-size: 2.5em;
    margin-bottom: 10px;
    color:#C9A063;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
}


.icon-button:hover i {
    transform: scale(1.2);
    color: #e6c824; /* Teal on hover */
}

.icon-button span {
    font-weight: bold;
    font-family: "Poppins", sans-serif;
    color: #424202;
}

.content-section {
    padding: 40px 20px;
    text-align: center;
}

.content-section h2 {
    color: white;
    margin-bottom: 20px;
}

.content-section p {
    color: #5b4a2f;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    margin: 40px 0 20px;
    color: #424202;
    font-size: 2em;
}

.leaf-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff" opacity="0.2"><path d="M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}

.leaf-1 {
    top: -30px;
    right: 10%;
    transform: rotate(10deg);
}

.leaf-2 {
    bottom: -40px;
    left: 5%;
    transform: rotate(-15deg);
}

.leaf-3 {
    top: 20px;
    left: -20px;
    transform: rotate(5deg);
}

/* Estilos para el modal personalizado */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    font-family: "Poppins", sans-serif;
}

.modal-content h2 {
    color: #5b4a2f;
    font-family: "Marko One", sans-serif;
    font-weight: bold;
    margin-top: 0;
    font-size: 1.8em;
}

.modal-content p {
    color: #5b4a2f;
    margin-top: 15px;
    font-size: 1.1em;
    line-height: 1.6;
}

.close-btn, .modal-content button {
    background-color: #a3cc5f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
    transition: background 0.3s;
}

.close-btn:hover, .modal-content button:hover {
    background-color: #1e664e;
}

/* ==========================
   GENERAL
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f8f5eb;
}
/*HOJAS FLOTANDO*/
.hojas-flotando {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hoja {
  position: absolute;
  font-size: 24px;
  opacity: 0.6;
  animation: flotar 10s linear infinite;
}

.hoja1 {
  left: 10%;
  animation-delay: 0s;
}
.hoja2 {
  left: 50%;
  animation-delay: 3s;
}
.hoja3 {
  left: 80%;
  animation-delay: 6s;
}

@keyframes flotar {
  0% {
    top: -10%;
    transform: rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    opacity: 0.5;
  }
  100% {
    top: 110%;
    transform: rotate(360deg) scale(1);
    opacity: 0;
  }
}


/* ==========================
   PROYECTOS Y DEFINICION CON PROYECTOS
============================= */
/* Título centrado fuera de cualquier contenedor */
h2.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color:#424202;
    text-align: center;
    margin: 60px auto 30px;
    padding: 0 20px;
    font-family: "Marko One", sans-serif;
}


/* Ícono */
.section-title i {
    color: #808000; /* Usa variable o color por defecto */
    font-size: 2.2rem;
}

/* Párrafo centrado fuera del contenedor */
.definicion-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-size: 1.5rem;
    font-family: "Poppins", sans-serif;
    line-height: 2.1;
    color: #4f4f4f;
    text-align: justify;
}

/* Highlight solo cambia color */
.highlight {
    color: #c9a063;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    h2.section-title {
        font-size: 1.7rem;
        flex-direction: column;
    }

    .section-title i {
        font-size: 1.7rem;
    }

    .definicion-text {
        font-size: 1.2rem;
        text-align: left;
    }
}
/*IMPORTANCIA*/
.fullwidth-section {
  background: white;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #2e7d32;
  border: 1px solid #808000;
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 10px;
  color: #1e664e ;
  font-family: "Marko One", sans-serif;
  font-weight: bolder;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 30%;
  height: 4px;
  background-color:#D4A373; /* mismo color que el borde decorativo */
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-header p {
  text-align: center;
  font-size: 1.5em;
  color: #1e664e ;
  font-weight: 500;
  margin-bottom: 40px;
  font-family: "Poppins", sans-serif;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.feature-item {
  background: white;
  border: 1px solid #d0e8d0;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

/* Efecto al pasar el mouse sobre la tarjeta completa */
.feature-item:hover {
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
  transform: translateY(-8px);
  border-color: 1px solid #229988;
}

/* Título animado al hacer hover */
.feature-item:hover h3 {
  color: #247c75 ;
  transition: color 0.3s ease;
  font-family: "Marko One",sans-serif;
}

.feature-item {
  background-color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  flex: 1 1 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


.feature-content h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #79a7a4;
  font-weight: 700;
  font-family: "Marko One",sans-serif;
}

.feature-content p {
  font-size: 1.2em;
  font-weight: 500;
  color: #1e664e;
  font-family: "Poppins", sans-serif;
}
.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  background-color:#247c75;
  color:white;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 8px rgba(34, 124, 117, 0.1);
}

/* Animación al pasar el mouse sobre la tarjeta */
.feature-item:hover .feature-icon {
  transform: rotate(15deg) scale(1.1);
  background-color:white;
  box-shadow: 0 8px 15px rgba(34, 124, 117, 0.2);
  color: #247c75;
}

/* Información adicional */
.info-proyecto {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out; /* Efecto de deslizamiento y desvanecimiento */
}

.info-proyecto.open {
  max-height: 1000px; /* Ajusta según el contenido */
  opacity: 1; /* Hace que la información sea visible */
}


#contenedorCasos {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s ease, opacity 0.7s ease;
}

#contenedorCasos.visible {
  max-height: 2000px;
  opacity: 1;
}

.caso h3{
  color: #298f6d;
  margin-bottom: 5px;
  font-weight: bold;
}
.caso {
  display: flex;
  flex-direction: column;
  background-color: white;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.caso img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.caso div {
  margin-left: 0;
}

@media (min-width: 768px) {
  .caso {
    flex-direction: row;
    align-items: center;
  }

  .caso div {
    margin-left: 20px;
  }
}

/* ==========================
   GALERÍA DE PROYECTOS
============================= */

    /* Contenedor general */
    #galeria-proyectos {
      padding: 2.5rem 1.5rem;
      max-width: 1140px;
      margin: 0 auto;
      font-family: "Poppins", sans-serif;
      background-color: #f8f5eb;
    }
    /* Título */
    #galeria-proyectos h2 {
      font-size: 1.8rem;
      font-weight: bold;
      margin-bottom: 2rem;
      text-align: center;
      color: #424202;
      position: relative;
    }
    #galeria-proyectos h2::after {
      content: '';
      width: 80px;
      height: 4px;
      background-color: #bc8a5f;
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 2px;
    }
    /* Contenedor expandible */
    #contenedorCasos {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.7s ease, opacity 0.7s ease;
    }
    #contenedorCasos.expandido {
      max-height: 2000px; /* Ajusta según el contenido */
      opacity: 1;
    }
    /* Contenedor de proyectos */
    .proyectos-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }
    /* Tarjetas individuales */
    .proyecto {
      background-color: white;
      border: 1px solid #e5e7eb;
      border-radius: 0.5rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      cursor: pointer;
      overflow: hidden; /* Evita desbordes por el zoom */
      width: 100%;
      max-width: 540px;
      margin-bottom: 2rem;
    }
    .proyecto:hover {
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    /* Imagen del proyecto */
    .proyecto-img {
      width: 100%;
      height: 12rem;
      object-fit: cover;
      border-top-left-radius: 0.5rem;
      border-top-right-radius: 0.5rem;
      transition: transform 0.4s ease;
    }
    .proyecto-img:hover {
      transform: scale(1.05);
    }
    /* Información */
    .proyecto-info {
      padding: 1rem;
    }
    .proyecto-titulo {
      font-size: 1.125rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      font-family: "Marko One", sans-serif;
      color: #272a58;
    }
    .proyecto-info p {
      font-size: 1rem;
      font-weight: 400;
      color: #4f4f4f;
      font-family: "Poppins", sans-serif ;
      line-height: 1.4;
      text-align: justify;
    }
    .proyecto-info h4 {
      font-size: 1.3em;
      color: #c9a063;
      margin-bottom: 5px;
      font-weight: bold;
    }
    /* Botón para mostrar más información */
    .toggle-info {
      color: #4f4f4f;
      background: none;
      border: none;
      cursor: pointer;
      font-family: "Poppins", sans-serif;
      text-decoration: underline;
      transition: all 0.3s ease-in-out;
      font-size: 0.95rem;
      margin-top: 10px;
    }
    .toggle-info:hover {
      opacity: 0.8;
      color: white;
      background-color: #deb982;
      padding: 5px 10px;
      border-radius: 4px;
    }
    /* Información adicional desplegable */
    .info-proyecto {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
    }
    .info-proyecto.open {
      max-height: 1000px;
      opacity: 1;
    }
    /* Animación de entrada para las tarjetas de proyecto */
    .proyecto {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    /* Animación de entrada para los proyectos */
    @keyframes slideIn {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }
    /* Esto lo añade el JS para mostrar animación */
    .proyecto.visible {
      opacity: 1;
      transform: translateY(0);
    }
    /* Contenedor de información adicional (desplegable) */
    .info-proyecto {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.5s ease, opacity 0.5s ease;
    }
    .info-proyecto.open {
      max-height: 200px; /* Ajustable según contenido */
      opacity: 1;
    }
    /* Botón animado al mostrar info */
    .toggle-info {
      transition: opacity 0.3s ease, background 0.3s ease;
    }
    /* Contenedor de los casos (Curitiba, Brooklyn...) */
    #contenedorCasos {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.7s ease, opacity 0.7s ease;
    }
    #contenedorCasos.visible {
      max-height: 1000px; /* Ajusta si agregas más contenido */
      opacity: 1;
    }

    /* Media queries para diferentes tamaños de pantalla */
    @media (min-width: 768px) {
      .proyecto {
        width: calc(50% - 10px); /* Dos tarjetas por fila en pantallas medianas */
      }
    }

    @media (min-width: 1024px) {
      .proyecto {
        width: calc(50% - 10px); /* Dos tarjetas por fila en pantallas grandes */
      }
    }

/* ==========================
   ANIMACIONES
============================= */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ==========================
   SECCIÓN: BENEFICIOS
============================= */
.seccion-beneficios {
  background: white;
  padding: 60px 0;
  text-align: center;
  border: 1px solid #808000;
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-seccion {
  font-size: 2.5em;
  font-family: "Marko One", sans-serif;
  color: #1e664e;
  margin-bottom: 30px;
}

.contenedor-beneficios {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0 20px;
}

.tarjeta-beneficio {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1 1 250px;
  max-width: 350px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tarjeta-beneficio.visible {
  opacity: 1;
  transform: translateY(0);
}

.tarjeta-beneficio:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.icono-beneficio {
  font-size: 3.5em;
  color: #298f6d;
  margin-bottom: 20px;
}

.tarjeta-beneficio h3 {
  font-size: 1.5em;
  color: #1e664e;
  margin-bottom: 15px;
  font-family: "Marko One", sans-serif;
  font-weight: bold;
}

.tarjeta-beneficio p {
  font-size: 1em;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #1e664e;
}

@media (max-width: 768px) {
  .tarjeta-beneficio {
    flex: 1 1 100%;
  }
}

/* ==========================
   ANIMACIONES PERSONALIZADAS
============================= */

.item {
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.5s ease;
}

.item:nth-child(1) {
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.item:nth-child(2) {
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.item:nth-child(3) {
  animation: fadeInUp 0.6s ease 0.6s forwards;
}

.item:nth-child(4) {
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ==========================
   ESTILOS DE LOS BOTONES
============================= */

button {
  padding: 10px 20px;
  background-color: #5b8b56;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4a7c44;
}

/* ==========================
   EFECTOS DE CARGA Y DESPLEGUE
============================= */

.load-button {
  background-color: #7790bd;
  color: white;
  font-size: 16px;
  padding: 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.load-button:hover {
  background-color: #a3cc5f;
  transform: scale(1.05);
}

/* ==========================
   EFECTO DE MÁRGENES Y ESPACIADOS
============================= */

.margin-top {
  margin-top: 20px;
}

.margin-bottom {
  margin-bottom: 20px;
}

.padding-top {
  padding-top: 20px;
}

.padding-bottom {
  padding-bottom: 20px;
}

/* ==========================
   CONFIGURACIÓN DE LA TIPOGRAFÍA
============================= */

h1, h2, h3 {
  color: #1e664e;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
}

p {
  color: #1e664e;
  line-height: 1.7;
}

/* ==========================
   ANIMACIONES PERSONALIZADAS
============================= */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aparece al cargar */
.anim-show {
  opacity: 0;
  animation: fadeUpIn 0.8s ease forwards;
}

.anim-delay-1 {
  animation-delay: 0.2s;
}

.anim-delay-2 {
  animation-delay: 0.4s;
}

.anim-delay-3 {
  animation-delay: 0.6s;
}

/* ==========================
   SECCIÓN: COMO HACER PROYECTOS
============================= */
:root {
    --transition: all 0.4s ease-in-out;
}

/* HERO SECTION Styles */
.hero-section {
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-section:hover {
    background-color: rgba(255, 255, 255, 0.02); /* sutil cambio al pasar el cursor */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0 4rem;
    text-align: center;
    transition: var(--transition);
    transform: translateY(0);
}

.hero-section:hover .hero-content {
    transform: translateY(-5px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fondo-pasos.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
    transition: var(--transition);
}

.hero-section:hover .hero-bg {
    opacity: 0.3;
    transform: scale(1.02);
}


.hero-section:hover h1 {
    transform: translateY(-5px);
}
 

.tiiiitle{
    font-size: clamp(1rem, 2vw, 3.5rem); /* Responsive */
    margin-bottom: 2rem;
    max-width: 700px;
    font-family: "Marko One", sans-serif;
    margin-left: auto;
    color: #5b4a2f;
    font-weight: bold;
    margin-right: auto;
    transition:all 0.4s ease-in-out;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 3rem); /* Responsive */
    margin-bottom: 2rem;
    max-width: 800px;
    font-family: "Poppins", sans-serif;
    margin-left: auto;
    font-weight: 600;
    color: #5b4a2f;
    margin-right: auto;
    transition:all 0.4s ease-in-out;
}

.hero-section:hover .subtitle {
    transform: translateY(-3px);
}

.btn {
    display: inline-block;
    background-color: white;
    color: #c9a063;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.5s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.btn:hover {
    background-color: #c9a063;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

        /* Intro Section */
        .intro {
            padding: 5rem 0;
            background-color:#f8f5eb;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
        }

        .intro-content {
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .intro h2 {
            font-size: 2.5rem;
            color: #5b4a2f;
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
            font-family: "Marko One", sans-serif;
            text-align: center;
            transition: var(--transition);
        }

        .intro h2::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--accent-color);
            border-radius: 2px;
            transition: var(--transition);
        }

        .intro:hover h2 {
            transform: translateY(-5px);
        }

        .intro:hover h2::after {
            width: 100px;
        }

        .intro p {
            font-size: 1.1rem;
            color: #9e773e;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            font-family: "Poppins", sans-serif;
            margin-right: auto;
            font-weight: 600;
            transition: var(--transition);
        }

        .intro:hover p {
            transform: translateY(-3px);
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .steps {
            padding: 6rem 0;
            background-color:white;
            position: relative;
            border: 1px solid #808000;
        }

        .title-container {
            text-align: center;
            margin-bottom: 3rem;
        }

        .steps h2 {
            font-size: 2.5rem;
            color:#5b4a2f;
            position: relative;
            display: inline-block;
            font-family: "Marko One", sans-serif;
            animation: fadeIn 1s ease-in-out;
        }

        .steps h2::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background-color: #C9A063;
            border-radius: 2px;
            animation: slideIn 1s ease-in-out;
        }

        .step-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .step {
            background-color: white;
            border-radius: 15px;
            padding: 2.5rem;
            width: 100%;
            max-width: 350px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.05);
            animation: fadeInUp 0.5s ease-in-out;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .step:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .step::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background-color:#808000;
            border-radius: 5px 0 0 5px;
        }

        .step-number {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            font-family: "Poppins", sans-serif;
            height: 60px;
            background-color:#B2AC88;
            color: white;
            border-radius: 50%;
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 2;
            transition: var(--transition);
        }

        .step:hover .step-number {
            transform: scale(1.1);
        }

        .step h3 {
            color: #5b4a2f;
            font-size: 1.4rem;
            margin-bottom: 1rem;
            font-family: "Marko One", sans-serif;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .step p {
            color: #9e773e;
            text-align: center;
            position: relative;
            font-weight: 600;
            font-family: "Poppins", sans-serif;
            z-index: 2;
        }

        .step-icon {
            font-size: 3rem;
            color: #8f8f0b;
            margin-bottom: 1.5rem;
            text-align: center;
            position: relative;
            z-index: 2;
            transition: var(--transition);
        }

        .step:hover .step-icon {
            transform: scale(1.2);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes slideIn {
            from {
                width: 0;
            }
            to {
                width: 100px;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
            }
            .subtitle {
                font-size: 1.1rem;
            }
            .intro h2, .steps h2 {
                font-size: 2rem;
            }
            .step-container {
                flex-direction: column;
                align-items: center;
            }
            .step {
                max-width: 100%;
            }
        }

        /* Animación de desplazamiento suave */
        html {
            scroll-behavior: smooth;
        }


/* ==========================
   SECCIÓN: CHARTS
============================= */

        /* Hero Section */
        .hero-section2 {
            background-image: url("fondo.png");
            padding: 6rem 0;
            text-align: center;
            margin-bottom: 4rem;
            border-radius: 12px;
            transition: all 0.4s ease-in-out;
        }
        
.hero-section2:hover  {
    transform: scale(1.02);
}


.hero-section2:hover {
    background-color: rgba(203, 180, 107, 0.02); /* sutil cambio al pasar el cursor */
}
        .hero-content2 {
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem;
        }
        
        .hero-title2 {
            font-size: 2rem;
            color: #5A492E;
            font-family: "Marko One", sans-serif;
            margin-bottom: 1.5rem;
            font-weight: 600;
            animation: fadeInUp 1s ease forwards;
        }
        
        .hero-subtitle2 {
            font-size: 1.2rem;
            color: #5b4a2f;
            font-family: "Poppins", sans-serif;
            margin-bottom: 2rem;
            font-weight: 700;
            animation: fadeInUp 1s ease forwards;
            animation-delay: 0.2s;
        }
        
        .hero-description2 {
            font-size: 1.2rem;
            font-family: "Poppins", sans-serif;
            line-height: 1.8;
            font-weight: 500;
            color: #3e321e;
            margin-bottom: 1rem;
            animation: fadeInUp 1s ease forwards;
            animation-delay: 0.4s;
        }
        
        /* Stats Section */
        .stats-section {
            padding: 4rem 0;
            background-color: white;
            border: 1px solid #808000;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            margin-bottom: 4rem;
            transform: translateY(50px);
            opacity: 0;
            animation: fadeInUp 0.6s ease forwards;
            animation-delay: 0.3s;
        }
        
        .stats-container {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 4rem;
            justify-content: center;
        }
        
        .stat-card {
            background-color:#f8f9fa;
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
             box-shadow: 0 8px 20px rgba(0,0,0,0.25);
            transition: var(--transition);
            flex: 1;
            max-width: 300px;
            margin: 0 auto;
            transform: translateY(50px);
            opacity: 0;
            animation: fadeInUp 0.6s ease forwards;
        }
        
        .stat-card:nth-child(2) {
            animation-delay: 0.1s;
        }
        
        .stat-card:nth-child(3) {
            animation-delay: 0.2s;
        }
        
        .stat-card:nth-child(4) {
            animation-delay: 0.3s;
        }
        
        .stat-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }
        
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background-color: #229988;
            transition: var(--transition);
        }
        
        .stat-card:hover::before {
            width: 10px;
        }
        
        .stat-icon {
            font-size: 2.5rem;
            color: #247c75;
            margin-bottom: 1rem;
            transition: var(--transition);
        }
        
        .stat-card:hover .stat-icon {
            transform: scale(1.2);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 600;
            color: #1e664e;
            font-family: "Poppins", sans-serif;
            margin-bottom: 0.5rem;
            display: block;
            transition: var(--transition);
        }
        
        .stat-card:hover .stat-number {
            color:#229988;
        }
        
        .stat-title {
            font-size: 1rem;
            color: #1e664e;
            font-family: "Poppins", sans-serif;
            font-weight: 400;
            transition: var(--transition);
        }
        
        .stat-card:hover .stat-title {
            color: var(--dark-color);
        }
        
        .stat-description {
            font-size: 0.85rem;
            color: #2b906e;
            font-family: "Poppins", sans-serif;
            margin-top: 0.5rem;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
            opacity: 0;
        }
        
        .stat-card:hover .stat-description {
            max-height: 150px;
            margin-top: 0.5rem;
            opacity: 1;
        }
        
/* ==========================
   FOOTER
============================= */

 /*inico del footer*/
 .footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%; /* altura del degradado */
  background: linear-gradient(to bottom, rgba(87, 75, 41, 0.6), transparent);
  z-index: 1;
}

.footer {
  background: url('imagen_del_footer.png');
  background-size: cover; /* Asegura que cubra todo el espacio */
  color: white;
  position: relative; /* ¡No uses fixed aquí si hay contenido arriba! */
  overflow: hidden;
  min-height: 50px; /* Puedes ajustar según tu imagen */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

 
.footer-top-curve {
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: start; /* alinea todo al inicio (izquierda) */
  flex-wrap: wrap;
  max-width: 800px;
  margin-left: 50px; /* ajusta a tu gusto */
  margin-right: auto;
  z-index: 2;
  position: relative;
  padding-top: 90px;
}

.footer-column {
  flex: 1 1 250px;
  margin: 10px;
}
.footer-column h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: rgb(255, 255, 255); /* color de los títulos */
  font-family: "Marko One", sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* sombra suave */
}

 
.footer-column ul {
  list-style: none;
  padding: 0;
}
 
.footer-column ul li {
  margin-bottom: 8px;
}
 
.footer-column ul li a {
  color: rgb(247, 247, 247);
  text-decoration: none;
  font-size: 0.75em; /*letras de los enlaces*/
  font-family: 'Poppins', sans-serif;

}
 
.footer-column ul li a:hover {
  text-decoration: underline;
}
 
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8em;
  color: #18301b;/*color de las letras de abajo*/
}
 
.footer-bottom a {
  display: block;
  margin-top: 10px;
  color: none;
  text-decoration: none;
}
.footer-legal {
  background-color: #18301b; /* tono oscuro compatible con el footer */
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* línea sutil */
}
/*fin del footer*/
  #scrollToTopBtn {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 235px;
    right: 15px;
    background-color: #3333338a; /* Gris oscuro */
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px; /* Un poco redondeado */
    cursor: pointer;
    z-index: 1000;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
  }

  #scrollToTopBtn:hover {
    background-color: #555;
  }
/* Posicionar el botón de UserWay en esquina superior derecha */


/* ==========================
   Acciones en Casa
============================= */
.acciones-casa {
  margin: 3rem auto;
  padding: 2rem;
  max-width: 1250px;
  border: 1px solid #808000;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 90%;
}

.sectiond-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: "Marko One", sans-serif;
  text-align: center;
  color:#247c75;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 4rem;
  height: 0.25rem;
  background-color: #c9a063;
  margin: 0.5rem auto;
  border-radius: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}


.flip-card {
  perspective: 1000px;
  cursor: pointer;
  width: 100%;
   min-width: 250px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-card:hover .flip-card-inner,
.flip-card:active .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.flip-card-front {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.flip-card-back {
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
  color: var(--text-color);
  transform: rotateY(180deg);
  overflow: auto;
}

.icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #247c75;
  padding: 1rem;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: white;
}

.icon i {
  font-size: 2rem; /* Ajusta el tamaño interno del ícono */
}

.flip-card:hover .icon,
.flip-card:active .icon {
  transform: scale(1.1);
  background-color: rgba(59, 130, 246, 0.2);
}

.card-title {
  font-weight: 600;
  font-size: 1.25rem;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0.5rem;
  color: #1e664e;
}

.back-title {
  font-weight: 600;
  font-size: 1.25rem;
  font-family: "Poppins", sans-serif;
  margin-bottom: 1rem;
  color: #1e664e;
}

.back-text {
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #1e664e;
}

@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}


  @media (max-width: 768px) {
    .card-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1.5rem;
    }
  }

  @media (max-width: 480px) {
    .card-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  }

/* ==========================
   FRASE FINAL
============================= */
.frase-final {
  background: white;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #808000;
}

.frase-final p {
  font-family: 'Poppins', sans-serif;
  font-size: 2em;
  color: #424202;
  font-weight: 500;
  line-height: 1.4;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;

  /* Animación entrada */
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUpFrase 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animación más visible */
@keyframes fadeInUpFrase {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================
   SECCIONES CON IMÁGENES Y TEXTOS
============================= */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #a3cc5f;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.section img {
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* ==========================
   ESTILOS PARA EL FORMULARIO DE CONTACTO
============================= */

.form-group {
  margin-bottom: 15px;
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1px solid #5b8b56;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button[type="submit"] {
  background-color: #272a58;
  border: none;
  padding: 10px 20px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #7790bd;
}


/* ==========================
   RESPONSIVO A LOS EQUIPOS
============================= */
@media (max-width: 768px) {
  .definicion .contenido {
    flex-direction: column;
  }

  .contenedores {
    width: 100%;
  }

  .barra ul {
    flex-direction: column;
    align-items: center;
  }

  .footer-contenido {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2em;
  }

  .beneficios h3,
  .ejemplos h3 {
    font-size: 1.5em;
  }

  .barra ul li {
    margin: 5px 0;
  }
}

/* Estilos base del chatbot----------------------------------------------------------------------------------------------- */

/* Botón flotante para abrir el chat */
#chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #c1c1c1;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Imagen dentro del botón flotante */
#chat-toggle img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* Contenedor del chatbot */
#chat-container {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 360px;
  height: 480px;
  background: white;
  border-radius: 20px;
  border: 2px solid #10b981;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000; /* Para que el contenedor quede debajo del botón */
}

/* Cabecera del chat */
#chat-header {
  background-color: #10b981;
  color: white;
  padding: 10px;
  font-weight: bold;
  text-align: center;
}

/* Área de mensajes */
#chat-messages {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 10px;
  background-color: #f0fdf4;
}


/* Entrada de texto */
#chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

#chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}

#chat-input button {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

/* Estilo de burbujas de mensaje */
.message {
  position: relative;
  padding-left: 50px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 70%;
  word-wrap: break-word;
  /* Para que el texto quede bien alineado dentro de la burbuja */
  white-space: pre-wrap;
}

.bot {
  background-color: #bbf7d0;
  align-self: flex-start;
  text-align: left;
}

.user {
  background-color: #86efac;
  align-self: flex-end;
  text-align: right;
}

/* Que las imágenes dentro de los mensajes no sean gigantes */
.message img {
  position: absolute; /* La “saca” del flujo normal */
  top: -10px; /* Ajusta para que quede encima */
  left: -40px; /* O right, según dónde quieras que esté */
  width: 40px; /* Tamaño de la imagen */
  height: 40px;
  border-radius: 50%; /* Para que sea redonda */
  border: 2px solid white; /* Borde para destacar */
  background-color: white; /* Fondo para que se vea bien */
  z-index: 1100; /* Que esté arriba */
}

/* Contenedor de preguntas sugeridas */
#suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  background-color: #f0fdf4;
  border-top: 1px solid #ccc;
}

/* Botones de preguntas sugeridas */
#suggestions button {
  background-color: #d1fae5;
  border: none;
  padding: 5px 10px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

#suggestions button:hover {
  background-color: #bbf7d0;
}

/* barra de navegacion vertical----------------------------------------------------------------------------------*/
.subtitulo {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
  /* Título del encabezado */
header h1 {
  margin-top: 10px;
  font-size: 3.0em;
  color: #808000; /* Puedes cambiar si tu fondo es muy claro */
  font-family: "Marko One", sans-serif;
  letter-spacing: 5px; /* Aumenta el espacio entre letras */
}
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra horizontalmente */
  padding: 15px;
  text-align: center; /* Asegura que el texto también quede centrado */
  font-family: "Poppins", sans-serif;
  
}

#profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background-color: #ccc;
}
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 255px;
  height: 100%;
  background-color: #685e4a;
  color: white;
  transition: 0.3s;
  padding-top: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  z-index: 1000;
  overflow-y: auto;  /*es para que sea mas para abajo */
}


.sidebar.active {
  left: 0;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

/* Botón de cierre (tres puntos) */
.contenedor-close-boton {
  text-align: right;
  padding-right: 5px;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  color: white;               /* Ícono en blanco */
  background-color: #685e4a;  /* Fondo marrón */
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  display: inline-block;
}


.profile-section {
  text-align: center;
  padding: 15px;
}

#profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

#profile-upload {
  display: none; /* Oculta input real */
}

.upload-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #555;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.upload-btn:hover {
  background-color: #666;
}

#user-account {
  margin-top: 10px;
  font-size: 14px;
}

.sidebar-menu {
  list-style: none;
  padding: 10px 20px;
}

.sidebar-menu li {
  margin: 15px 0;
}

.sidebar-menu a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px;
  border-radius: 4px;
  font-family:"Poppins", sans-serif; /*-------------------------------fuente de la barra lateral*/

}

.sidebar-menu a:hover {
  background-color: #444;
}