body {
  /* Imagen de fondo */
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.584), rgba(0, 0, 0, 0.534)), /* capa oscura semitransparente */
    url('Asegurar-el-cuidado-del-medio-ambiente.jpg'); /* ruta de tu imagen */

  background-position: center; /* centra la imagen */
  background-repeat: no-repeat; /* evita que se repita */
  background-size: cover; /* cubre todo el viewport */
  background-attachment: fixed; /* fija el fondo al hacer scroll */

  margin: 0; /* elimina margenes por defecto */
  height: 100vh; /* altura completa de la ventana */

}






/* Contenedor horizontal para texto + calendario */
.contenedor-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 40px;               /* espacio entre columnas */
  padding-top: 40px;
  padding-bottom: 80px;

  flex-wrap: wrap;         /* para que sea responsive */
  justify-content: center; /* centra horizontalmente */
   background-color: #f8f5eb;
   padding-bottom: 40px;
   width: 100%;
   
}

/* Contenedor del texto y las imágenes juntos */
.texto-calendario, .imagenes-calendario {
  flex: 1 1 300px;         /* crecen y encogen, mínimo 300px */
  max-width: 600px;
  padding-bottom: 70px;
  padding-top: 50px;
}



.imagenes-calendario {
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
  grid-template-rows: repeat(2, 1fr);    /* 2 filas iguales */
  gap: 20px;                            /* espacio entre imágenes */
  width: 500px;                        /* ancho total del collage, ajusta según necesites */
  height: 500px;                   /* alto total del collage */
  padding-right: 30px;
}

.collage-grid img {
  width: 100%;                        /* que la imagen ocupe todo el ancho de la celda */
  height: 100%;                       /* que la imagen ocupe toda la altura de la celda */
  object-fit: cover;                  /* para que la imagen cubra el área sin distorsión */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.animar-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,1,.2,1);
}

.animar-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}




@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.texto-calendario, .collage-grid img {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.texto-calendario {
  animation-delay: 0.2s;
}

.collage-grid img:nth-child(1) { animation-delay: 0.4s; }
.collage-grid img:nth-child(2) { animation-delay: 0.6s; }
.collage-grid img:nth-child(3) { animation-delay: 0.8s; }
.collage-grid img:nth-child(4) { animation-delay: 1s; }

/* titulo del calendario------------------------------------------------------------------------------------------------------------------------------*/

/* Título */
#titulo-calendario {
  font-family: 'Marko One'; 
  font-size: 2rem;
  color: #3e321e;
  margin-bottom: 60px;
  margin-top: 10px;
  text-align: left;
  padding-left: 40px;
  size: 7rem;
  margin-left: 40px;
}
 

/* Estilos para el texto */
.texto-calendario {
  flex: 1;
  max-width: 1000px;
  font-size: 1rem;
  
  
}


/*parrafo calendario---------------------------------------------------------------------------------------------------*/
#parrafo-calendario{
 
  text-align: justify !important;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color:#5a492e;
  line-height: 1.6;
  text-align: left;        /* evita justify para mejor lectura */

    line-height: 1.6;
    
    /* Propiedades universalmente compatibles */
    word-spacing: 0.05em; /* Mejora el espaciado entre palabras */
    letter-spacing: 0.01em; /* Pequeño ajuste en el espaciado de letras */
    max-width: 600px;
    padding-left: 40px;
    font-weight: 800px;
    margin-left: 40px;

}


/* cuadro general del calendario----------------------------------------------------------------------------------------------------- */
#calendar {

  margin: 30px auto 30px 20px; /* 30px arriba, auto derecha (para empujar a la izquierda), 30px abajo, 20px izquierda */
  padding: 15px;
  margin-top: 200px; /* Ya estaba, pero lo reafirmo para que se vea claro */
  border-radius: 15px;
  background-color: #cedfbf;
  font-family: 'Poppins', sans-serif;
  margin: 30px auto;
  min-height: 350px;
   flex: 1;
  max-width: 600px;
  margin: 0; /* Elimina el centrado anterior */
  margin-left: 160px;


}

.fc {
  font-size: 12px; /* reduce tamaño de texto general */
}

/* Celdas con borde negro */
.fc-daygrid-day {
  border: 1px solid #000000;
  background-color: #869b7f; /* este cambia el fondo del cuadro interior del calendario */
  transition: background-color 0.3s ease;
  width: 80px;
}

.fc-daygrid-day:hover {
  background-color: #a1c398;
  border-radius: 6px;
}

/* Encabezado de días */
.fc-col-header-cell-cushion {
  font-weight: normal;
  font-size: 1rem;
  color: white;
  background-color: #1d614a;
  border-width: 10;
  border-radius: 3;
  width: 100px;
 margin-right: 10px;
}

/* Números del día */
.fc-daygrid-day-number {
  
  color: white;
  text-align: right;
  font-size: 0.75rem; /* números del día más pequeños */
  padding: 2px 4px;
}

/* Día actual */
.fc-day-today {
  background-color: #b2ac88!important;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
}

/* Eventos */
.fc-event {
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.85rem;
  background-color: #04f143;
  color: white;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-event:hover {
  filter: brightness(1.05);
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Botones */
.fc .fc-button {
  background-color: #7b6f58;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 0 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.fc .fc-button:hover {
  background-color:#615642;

} 
/*final del cuadro general del calendario---------------------------------------------------------------------------------------------------*/









/* cuadro alado del calendario--------------------------------------------------------------------------------------------*/

.container-mb-5{

width: 100%; 


}

.calendar-container {
    position: relative;
    display: flex;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding-top: 180px;
    padding-bottom: 180px;

    /* Fondo en capas: degradado + imagen */
    background-image: 
        linear-gradient(to bottom, rgba(30, 102, 78, 0.501), rgba(30, 102, 78, 0.468)),
        url('ChatGPT Image 12 jun 2025, 21_25_58.png');

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; 
}

.calendar-container h1 {
    position: absolute;
    top: 20px; /* Ajusta la distancia desde arriba */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Para que quede encima */
    color: white; /* O el color que prefieras */
    margin: 0;
    font-family: 'Marko One';
}


.calendar {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Estilos del panel ------------------------------------ */
.details-container {
    width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    height: fit-content;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.details-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.calendar-icon {
    width: 16px;
    height: 16px;
}

.auth-links {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.auth-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

.auth-links a:hover {
    color: #333;
}

.details-content {
    padding: 0;
}

.appointment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.appointment-item:hover {
    background-color: #f8f8f8;
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.appointment-info p {
    font-size: 12px;
    color: #666;
}

.book-btn {
    background-color: #c9a063;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    opacity: "0.5;"; 
}

.book-btn:hover {
    background-color: #5a492e;
}

.details-footer {
    text-align: center;
    padding: 15px;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
}

.details-footer p {
    font-size: 10px;
    color: #999;
    margin-bottom: 2px;
}

.details-footer .brand {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

#imagen {
    display: none; /* Ocultamos la imagen original para el nuevo diseño */
}

/* Estilos para cuando se muestren las instituciones */
.institucion {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.institucion:last-child {
    border-bottom: none;
}

.institucion h3 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.institucion p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.institucion a {
    display: inline-block;
    background-color: #c9a063;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.institucion a:hover {
    background-color: #5a492e;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-container {
        flex-direction: column;
    }
    
    .details-container {
        width: 100%;
    }
}



 


  /*diseño del tootlip--------------------------------------------------------------------------------------------------------------------------------------*/

 #custom-tooltip {
  position: absolute;
  z-index: 2000;
  display: none;
  background: #e2e1e0;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  min-width: 400px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none;
}






/* Estilos para el contenedor principal de la sección-mapa---------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.contenedor-mapa {
    display: flex; /* Habilitamos flexbox para alinear los elementos */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    justify-content: space-between; /* Distribuye el espacio entre los elementos */
    align-items: flex-start; /* Alinea los elementos al inicio (arriba) */
    gap: 30px; /* Espacio entre los elementos flexibles */
    padding: 20px; /* Espacio interno para el contenedor */
    margin-top: 50px;
    margin-bottom: 100px;
}

/* Contenedor para el texto (título, párrafo, botón) */
.contenido-texto {
    flex: 1; /* Permite que este elemento crezca */
    min-width: 100px; /* Ancho mínimo para el texto */
    max-width: 40%; /* Limita el ancho del texto para dejar espacio a la imagen */
    text-align: left; /* Alinea el texto a la izquierda */
    padding-left:55px ;
    margin-top: 60px;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      color:whitesmoke
}

/* Estilos para el título */
#Mapa-am { /* Usamos el ID de tu h2 */
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
    font-family: 'Marko One';
    color:whitesmoke

}

/* Estilos para el párrafo */
.contenedor-mapa p {
    line-height: 1.6;
    margin-bottom: 20px; /* Espacio debajo del párrafo antes del botón */
    font-size: 20px;
    text-align: justify;

}

/* Estilos para la imagen */
.contenedor-mapa img {
    flex: 1; /* Permite que la imagen crezca */
    min-width: 300px; /* Ancho mínimo para la imagen */
    max-width: 40%; /* Limita el ancho de la imagen */
    max-height: 300px; /* Mantiene la proporción de la imagen */
    display: block; /* Elimina cualquier espacio extra debajo de la imagen */
    margin-left: 40px; /* Espacio a la izquierda de la imagen (entre texto e imagen) */
    margin-right: 30px; /* Espacio a la derecha de la imagen */
    box-sizing: border-box; /* Incluye el padding/margin en el ancho total */
    margin-top: 60px;
}

/* Estilos para el botón "Ver mapa" */
#mapa { 
    display: inline-block; /* Permite que el botón se ajuste al contenido */
    padding: 10px 15px;
    background-color: #247c75; /* Un color azul para el botón */
    color: white;
    text-decoration: none; /* Quita el subrayado si fuera un <a> */
    border: none; /* Elimina el borde predeterminado del botón */
    border-radius: 5px;
    cursor: pointer; /* Indica que es clickeable */
    font-size: 16px;
    font-family: "Poppins", sans-serief;
   
}

#mapa:hover {
    background-color:white ; 
    /* Color más oscuro al pasar el ratón */
    color: #247c75; 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
     transition: all 0.5s;
}

/* Media queries para hacer el diseño responsivo en pantallas más pequeñas */
@media (max-width: 768px) {
    .contenedor-mapa {
        flex-direction: column; /* Apila los elementos verticalmente */
        align-items: center; /* Centra los elementos apilados */
    }

    .contenido-texto,
    .contenedor-mapa img {
        max-width: 95%; /* Ocupa casi todo el ancho en pantallas pequeñas */
        margin: 0; /* Reinicia los márgenes para centrar */
    }

    .contenedor-mapa img {
        order: -1; /* Mueve la imagen arriba en pantallas pequeñas */
        margin-bottom: 20px; /* Espacio debajo de la imagen */
    }
}


/* ==========================
   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: inline-flex; /* si quieres que sea flex y en línea */
  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);
  cursor: pointer;
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.15);
  
  /* Transiciones con prefijos y estándar */
  -webkit-transition: background-color 0.4s ease-out;
  -moz-transition: background-color 0.4s ease-out;
  transition: background-color 0.4s ease-out;

 
}
 
.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 */
}
  

.gallery-slide.slide1{

  background-image: url('barra/imagen 1.jpg');
}

.gallery-slide.slide2 {
  background-image: url('barra/imagen 2.jpg');
}

.gallery-slide.slide3 {
  background-image: url('barra/imagen 3.jpg');
}

.gallery-slide.slide4 {
  background-image: url('barra/imagen 4.jpg');
}

/*Para las instituciones del mapa --------------------------------------------------------------------------------------------------------------------------------------*/
#titulo-institucionesMAp{
text-align: center;
font-family: 'Marko One';
font-size: 30px;
padding-right: 50px;
padding-top: 89px;
padding-bottom: 50px;
font-size: 2.5rem;
color: #5d4b2c;





}
.contenedor-instituciones {
    padding-left: 140px;
    background-color: #f8f5eb;
    clip-path: polygon(0 60px, 50% 0, 100% 60px, 100% 100%, 0 100%);
    position: relative;
    z-index: 1;

    /* CAMBIO CLAVE: usa auto, no 100% */
    height: auto;
    padding-bottom: 110px;
    overflow: visible;
}

.container.swiper {
    /* CAMBIO CLAVE: quita overflow: hidden */
    overflow: visible;
    background: none;
    padding: 0;
    margin: 60px auto;
    max-width: 1100px;
    box-sizing: border-box;
}


.swiper-wrapper {
   
    justify-content:center; /* tarjetas a la derecha */
    gap: 24px; /* espacio entre tarjetas */
    display: flex;
  align-items: stretch; 
  
 
    
}


/* Los items individuales del slide. Ahora apuntamos directamente a .card-item */
.card-item {
    
  
    -webkit-user-select: none; /* Para navegadores WebKit antiguos */
    -moz-user-select: none;    /* Para Firefox */
    -ms-user-select: none;     /* Para Internet Explorer/Edge */
 
    background: white;
  padding: 18px;
  user-select: none;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 470px; /* fuerza misma altura */
  box-sizing: border-box;
  max-width: 280px;
    
}
 
.card-item .card-link {
    display: block; /* Asegura que el enlace ocupe todo el espacio de la tarjeta */
    text-decoration: none; /* Elimina el subrayado por defecto del enlace */
    color: inherit; /* Hereda el color del texto */
}
 
 
.card-item .card-link:active {
    cursor: grabbing;
}
 
.card-item .card-link:hover {
    border-color: #5372F0;
}
 
.card-item .card-link .card-image {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
 
.card-item .card-link .badge {
    color:white;
    width: fit-content;
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 50px;
    font-weight: 500;
    background: #7b6f58;
    margin: 16px 0 18px;
}
 
/* Mantén las clases de badge específicas */
.card-item .card-link .badge-designer {
    color: #B22485;
    background: #F7DFF5;
}
 
.card-item .card-link .badge-marketer {
    color: #B25A2B;
    background: #FFE3D2;
}
 
.card-item .card-link .badge-gamer {
    color: #205C20;
    background: #D6F8D6;
}
 
.card-item .card-link .badge-editor {
    color: #856404;
    background: #fff3cd;
}
 
.card-item .card-link .card-title {
    color: #5b4a2f;
    font-size: 1rem;
    font-family: 'Marko One';

}
 
.card-item .card-link .card-description {
    color: #9e773e; /* Un color más suave para la descripción */
    font-size: 0.9rem;
    margin-bottom: 10px; /* Espacio antes del botón */
    text-align: justify;
    font-family:  'Poppins', sans-serif;
    display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

   
}
 
 
.card-item .card-link .card-button {
    height: 35px;
    width: 35px;
    color: #7b6f58;
    margin: 30px 0 5px;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #5372F0;
    transform: rotate(-45deg);
    transition: 0.4s ease;
    display: flex; /* Para centrar la flecha si es necesario */
    align-items: center;
    justify-content: center;
}
 
.card-item .card-link:hover .card-button {
    color: #fff;
    background: #5372F0;
}
 
/* Estilos de Swiper JS (puntos de paginación y botones de navegación) */
.swiper-pagination-bullet { /* Sin .card-wrapper aquí, ya que Swiper los posiciona fuera de él */
    height: 13px;
    width: 13px;
    opacity: 0.5;
    background:  #5d4b2c;
}
 
.swiper-pagination-bullet-active {
    opacity: 1;
}
 .swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.85); /* Más pequeño por defecto */
  width: 50px;
  height: 50px;
  color: #3e321e;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 3;
  /* Asegúrate de que solo uno de left o right esté activo en cada botón */
}

.swiper-button-prev {
  left: 20px;
}

.swiper-button-next {
  right: 20px;
}



/* Responsive media query code for small screens */
@media (max-width: 768px) {
    .container.swiper { /* Ajustar el margen del contenedor principal del swiper */
        margin: 0 10px 25px;
    }
    .swiper-button-prev,
    .swiper-button-next {
        display: none; /* Ocultar los botones de navegación en pantallas pequeñas */
    }
}









@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/*=============== VARIABLES CSS para las fundaciones del calendario ===============*/

#titulo-fundaciones{

  font-family:'Marko One';
  font-size: 2rem;
  color: #2E4639; 
  text-align: center;
  padding-top: 20px;
  padding-bottom: 50px;

}



:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(82, 60%, 28%);
  --title-color: hsl(0, 0%, 15%);
  --text-color: hsl(0, 0%, 35%);
  --body-color: hsl(0, 0%, 95%);
  --container-color: hsl(0, 0%, 100%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --h2-font-size: 1.25rem;
  --small-font-size: .813rem;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1120px) {
  :root {
    --h2-font-size: 1.5rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  background-color: var(--body-color);
  color: var(--text-color);
}

img {
  display: block;
  max-width: 100%;
  max-height: 200px;
}

/*=============== CARD ===============*/

.fondo-blanco {
  width: 100%;
  background-color: #f8f5eb;
  position: relative;
  z-index: 1;
}



.container  {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  background-color: #f8f5eb;
  padding-bottom: 150px;
  width: 100%;

  
}

.card__container {
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
 

}
.card__article {
  position: relative;
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 1.5rem;
}

.card__data {
  width: 280px;
  background-color: var(--container-color);
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

.card__description {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

.card__title {
  font-size: var(--h2-font-size);
  font-weight: 500;
  color: var(--title-color);
  margin-bottom: .75rem;
}

.card__button {
  text-decoration: none;
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--first-color);
}

.card__button:hover {
  text-decoration: underline;
}

/* Naming animations in hover */
.card__article:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.card__article:hover {
  animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
  animation: remove-data 1s forwards;
}

/* Card animation */
@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .card__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}


/* Para pantallas grandes desde 1024px */
@media screen and (min-width: 1024px) {
  .card__container {
    grid-template-columns: repeat(3, 1fr);
  }


  .card__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .card__img {
    width: 348px;
  }
  .card__data {
    width: 316px;
    padding-inline: 2.5rem;
  }
} 

/*======================================
=====Mensaje en medio de fundaciones y mapa===*/

.mensaje-inspiracion {
  background-color: #1e664e; /* verde fondo */
  width: 100%;
  padding: 3rem 1rem; /* mejor que height fija */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cuadro-inspiracion {
  background-color: blanchedalmond;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 1800px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

#inspiracion {
  color: #1a1a1a;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  margin: 0;
  font-weight: bold;
}


/*cositas cayendo*/
.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;
  }
} 

/* 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;
}
/*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;
  position: fixed;
  bottom: 25px;
  right: 15px;
  padding: 10px 14px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1000;
}

#scrollToTopBtn:hover {
  background-color: #555;
}


/* 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;
}
/*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: 600px;
  line-height: 1.4;
}

.autor {
  font-size: 1em;
  color: #808000;
  font-style: italic;
  font-family: "Roboto", sans-serif;
}


/* fin de la barra de navegacion vertical----------------------------------------------------------------------------------*/