

.main-section {
    position: relative;
    height: 90vh;
    background: url('images/fondo_city.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    animation: fadeIn 2s ease-in-out;
    }

.main-section .content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    height: 100%;
}

.main-section .central-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* zona de noticias */

.navbar-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
  }
  
  /* Flip around the padding for proper display in narrow viewports */
  .navbar-wrapper > .container {
    padding-right: 0;
    padding-left: 0;
  }
  .navbar-wrapper .navbar {
    padding-right: 15px;
    padding-left: 15px;
  }
  .navbar-wrapper .navbar .container {
    width: auto;
  }
  
  
  /* CUSTOMIZE THE CAROUSEL
  -------------------------------------------------- */
  
  /* Carousel base class */
  .carousel {
    height: 83%;
    margin-bottom: 60px;
  }
  /* Since positioning the image, we need to help out the caption */
  .carousel-caption {
    z-index: 10;
  }
  
  /* Declare heights because of positioning of img element */
  .carousel .item {
    height: 500px;
    background-color: #777;
  }
  .carousel-inner > .item > img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 500px;
  }
  #newsSlider {
    max-width: 900px;
    margin: auto;
    height: 80vh;
}

#newsSlider .card {
    margin: 15px 0;
}


.carousel-indicators {
    list-style: none; /* Elimina el estilo de lista por defecto */
    padding-left: 0; /* Elimina el padding izquierdo */
    margin: 0; 
    top: 100%;
}

.carousel-indicators li {
    background-color: #333 !important; /* Color de fondo de los círculos */
    border-radius: 50% !important; /* Hace que sean círculos */
    width: 12px !important; /* Ancho del círculo */
    height: 12px !important; /* Alto del círculo */
    margin: 1px 5px !important; /* Espaciado entre los círculos */
    cursor: pointer !important; /* Cambia el cursor al pasar sobre los círculos */
    opacity: 0.5 !important; /* Opacidad de los círculos por defecto */
    transition: opacity 0.3s ease !important; /* Transición suave para la opacidad */
}


/* Estilo para el indicador activo */
.carousel-indicators .active {
    background-color: #007bff !important; /* Color del círculo activo */
    opacity: 1 !important; /* Opacidad completa para el círculo activo */
}


  
  /* MARKETING CONTENT
  -------------------------------------------------- */
  
  /* Center align the text within the three columns below the carousel */
  .marketing .col-lg-4 {
    margin-bottom: 20px;
    text-align: center;
  }
  .marketing h2 {
    font-weight: normal;
  }
  .marketing .col-lg-4 p {
    margin-right: 10px;
    margin-left: 10px;
  }
  
  
  /* Featurettes
  ------------------------- */
  
  .featurette-divider {
    margin: 80px 0; /* Space out the Bootstrap <hr> more */
  }
  
  /* Thin out the marketing headings */
  .featurette-heading {
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
  }
  
  
  /* RESPONSIVE CSS
  -------------------------------------------------- */
  
  @media (min-width: 768px) {
    /* Navbar positioning foo */
    .navbar-wrapper {
      margin-top: 20px;
    }
    .navbar-wrapper .container {
      padding-right: 15px;
      padding-left: 15px;
    }
    .navbar-wrapper .navbar {
      padding-right: 0;
      padding-left: 0;
    }
  
    /* The navbar becomes detached from the top, so we round the corners */
    .navbar-wrapper .navbar {
      border-radius: 4px;
    }
  
    /* Bump up size of carousel content */
    .carousel-caption p {
      margin-bottom: 20px;
      font-size: 21px;
      line-height: 1.4;
    }
  
    .featurette-heading {
      font-size: 50px;
    }
  }
  
  @media (min-width: 992px) {
    .featurette-heading {
      margin-top: 120px;
    }
  }
  .news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.news-label {
    display: block;
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.85em;
    text-transform: uppercase;
}

.news-address {
    margin-top: 15px;
    font-size: 0.8em;
    color: #555;
    text-align: center;
}

.card {
    position: relative;
    overflow: hidden;
}

.card-header {
    position: relative;
    height: 0;
}

.card-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.volunteer-btn {
    background-color: #f15a24; 
    color: #fff; 
    border: none; 
    border-radius: 50px; 
    padding: 10px 20px; 
    font-size: 18px; 
    font-weight: bold; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.volunteer-btn:hover {
    background-color: #d9480f; 
    transform: scale(1.05); 
}

.volunteer-btn:focus {
    outline: none; 
    box-shadow: 0 0 5px #f15a24; 
}
/* Estilos generales */
.voluntariado {
  padding: 50px 0;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.voluntariado-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.voluntariado-image {
  flex: 1;
  margin-right: 30px;
}

.voluntariado-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.voluntariado-texto {
  flex: 1;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.voluntariado-texto h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.voluntariado-texto p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6em;
}
.btn-voluntariado {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff6f61;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-voluntariado:hover {
  background-color: #e05a50;
  transform: translateY(-2px);
}

.btn-voluntariado:active {
  background-color: #cc5149;
  transform: translateY(0);
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .voluntariado-container {
    flex-direction: column;
    text-align: center;
  }

  .voluntariado-image,
  .voluntariado-texto {
    margin-right: 0;
    width: 100%;
  }

  .voluntariado-texto h2 {
    font-size: 1.5em;
  }

  .voluntariado-texto p {
    font-size: 1em;
  }
}

/* Estilos para otra sección */
.inscripcion-abuelos {
  padding: 50px 0;
  background-color: #eaf2f8;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilos responsivos para inscripcion-abuelos */
@media (max-width: 768px) {
  .inscripcion-container {
    flex-direction: column;
  }

  .inscripcion-texto,
  .inscripcion-formulario {
    width: 100%;
    margin-right: 0;
  }

  .inscripcion-texto h2 {
    font-size: 1.5em;
  }

  .inscripcion-texto p {
    font-size: 1em;
  }
}

.about-us {
  text-align: center;
  padding: 40px 0;
}

.about-us h2 {
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: bold;
}

.about-us p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Ajustes para las tarjetas */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  max-width: 280px; /* Tamaño fijo para todas las tarjetas */
  margin-left: auto;
  margin-right: auto;
}

.card img {
  width: 100%;
  height: 317px; /* Ajustar la altura de la imagen */
 
  border-radius: 10px 10px 0 0;
}

.card-body {
  padding: 15px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
}

.card-text {
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (max-width: 992px) {
  .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .about-us h2 {
    font-size: 24px;
  }

  .card {
    max-width: 90%; /* Permite más flexibilidad en pantallas pequeñas */
  }

  .card img {
    height: 180px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-text {
    font-size: 13px;
  }
}


/*Mapa historico */
.mapa-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.mapa-interactivo {
  display: flex;
  width: 100%;
  max-width: 900px;
  gap: 30px;
}
.mapa-pasos {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.paso {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #7e57c2, #512da8);
  border: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}
.paso:hover {
  background: linear-gradient(135deg, #5e35b1, #311b92);
  transform: scale(1.1);
}
.paso.regresar {
  background: linear-gradient(135deg, #ff6b6b, #c62828);
}
.paso.regresar:hover {
  background: linear-gradient(135deg, #e53935, #b71c1c);
}
.linea, .linea-final {
  width: 4px;
  height: 30px;
  background: #7e57c2;
}
.linea-final {
  height: 20px;
  background: transparent;
}
.mapa-contenido {
  flex: 1;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: opacity 0.3s ease-in-out;
}
.mapa-contenido h2,
.mapa-contenido p,
.mapa-contenido img {
  transition: opacity 0.3s ease-in-out;
}
.mapa-contenido img {
  max-width: 100%;
  max-height: 197px;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para la sección de apoyo */
.apoyo {
  margin-top: 15px;
}
.apoyo p {
  font-size: 1.2em;
  font-weight: bold;
  color: #512da8;
}
.apoyo a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px;
  font-weight: bold;
  text-decoration: none;
  color: white;
}
.btn-voluntario {
  background: #ff6f61;
}
.btn-voluntario:hover {
  background: #2e7d32;
}
.btn-donar {
  background: #28a745;
}
.btn-donar:hover {
  background: #b71c1c;
}
.hidden {
  display: none;
}
/* Estilos Responsivos */
@media screen and (max-width: 768px) {
  .mapa-interactivo {
      flex-direction: column; /* Mantener la disposición en columna en pantallas pequeñas */
      gap: 10px; /* Reducir el espacio entre los elementos */
  }

  .mapa-pasos {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            flex-direction: row;
  }

  .paso {
      width: 40px; /* Reducir el tamaño de los botones en pantallas pequeñas */
      height: 40px;
      font-size: 1em; /* Reducir el tamaño del texto */
  }

  .mapa-contenido {
      padding: 15px; /* Reducir el padding para pantallas más pequeñas */
  }

  .mapa-contenido h2 {
      font-size: 1.5em; /* Reducir tamaño de fuente del título */
  }

  .mapa-contenido p {
      font-size: 1em; /* Reducir el tamaño de la fuente del párrafo */
  }

  .mapa-contenido img {
      max-width: 80%; /* Reducir el tamaño máximo de la imagen */
      max-height: 150px; /* Ajustar la altura máxima de la imagen */
  }

  .apoyo p {
      font-size: 1.1em; /* Reducir el tamaño del texto en la sección de apoyo */
  }

  .btn-voluntario {
      padding: 8px 16px; /* Reducir el tamaño de los botones */
      font-size: 1em; /* Reducir el tamaño de la fuente de los botones */
  }
}

@media screen and (max-width: 480px) {
  .mapa-pasos {
      gap: 10px; /* Reducir el espacio entre los botones */
  }

  .paso {
      width: 35px; /* Reducir el tamaño de los botones en pantallas más pequeñas */
      height: 35px;
      font-size: 0.9em; /* Reducir el tamaño del texto */
  }

  .mapa-contenido h2 {
      font-size: 1.3em; /* Ajustar el tamaño de la fuente del título */
  }

  .mapa-contenido p {
      font-size: 0.9em; /* Reducir el tamaño del texto en párrafos */
  }

  .mapa-contenido img {
      max-width: 90%; /* Ajustar el tamaño máximo de la imagen */
      max-height: 120px; /* Ajustar la altura máxima de la imagen */
  }

  .apoyo p {
      font-size: 1em; /* Ajustar tamaño de fuente */
  }

  .btn-voluntario {
      padding: 8px 12px; /* Ajustar tamaño de los botones */
      font-size: 0.9em; /* Ajustar tamaño de la fuente de los botones */
  }
}



.galeria {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.titulo-galeria {
  font-size: 2rem;
  color: #512da8;
  margin-bottom: 30px;
}

.galeria-contenido {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: all 0.3s ease;
}

.foto-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.foto-item img {
  width: 100%;
  height: 170px; /* O el tamaño que prefieras */
  object-fit: cover; /* Recorta la imagen sin deformarla */
  border-radius: 8px;
}


.foto-item:hover img {
  opacity: 0.8;
}

/* Indicador de carga */
.loading {
  text-align: center;
  font-size: 1.5rem;
  margin: 30px 0;
  display: none;
}.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

.modal-contenido {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 12px rgba(255, 255, 255, 0.2);
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}

.izquierda { left: 15px; }
.derecha { right: 15px; }

.flecha:hover {
  background: rgba(255, 255, 255, 0.3);
}
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

.izquierda {
  left: 15px;
}

.derecha {
  right: 15px;
}

.flecha:hover {
  background: rgba(255, 255, 255, 0.3);
}
@media (max-width: 1024px) {
  .galeria-contenido {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  }
  .main-section {
  
    height: 105vh;
}
}

@media (max-width: 768px) {
  .galeria-contenido {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  }
  .main-section {
   
    height: 105vh;
}
}

@media (max-width: 480px) {
  .galeria-contenido {
    grid-template-columns: repeat(2, 1fr); /* 3 columnas */
  }
  .main-section {
    height: 105vh;
}
}