/*** Spinner Start ***/
/*** Spinner ***/
.header-carousel {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.header-carousel-item {
  height: 100%;
  position: relative;
}

.header-carousel-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Esto hace que se adapte sin deformarse */
  top: 0;
  left: 0;
  z-index: 1;
}

.carousel-caption {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4); /* oscurece el fondo para mejor lectura */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@media (max-width: 768px) {
  .carousel-caption h4,
  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .button-wrapper a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/
/* Los spinners generalmente no necesitan ajustes responsivos, su tamaño es pequeño y su función es transitoria. */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}
/* Este botón ya está bien para responsive. 'px' absolutos están bien aquí porque es un elemento de UI fijo. */

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
.btn.btn-primary {
    color: var(--bs-white);
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.btn.btn-light {
    color: var(--bs-primary);
    border: none;
}

.btn.btn-light:hover {
    filter: green(5px); /* Ojo aquí: 'green(5px)' no es una propiedad válida de filter. Debería ser algo como brightness(), saturate(), hue-rotate() etc. Si es un error, corrígelo. */
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Topbar Start ***/
.topbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--bs-primary);
}

.topbar .dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.topbar .dropdown .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    padding-top: 11px;
    border: 0;
    transition: .5s;
    opacity: 1;
}
/* El Topbar generalmente se oculta o se simplifica en móviles. Si usas Bootstrap, el componente de Navbar ya maneja esto. Si es un componente custom, asegúrate de que su visibilidad o layout cambie con media queries. Actualmente no hay estilos que oculten o modifiquen el topbar para móviles, solo el dropdown. */
/* Considera ocultar el topbar completamente en móviles si es solo para info secundaria: */
/*
@media (max-width: 767px) {
    .topbar {
        display: none;
    }
}
*/

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-white);
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link,
.sticky-top.navbar-light .navbar-nav .nav-item .nav-link {
    padding: 10px 10; /* Ojo aquí: '10px 10' no es una propiedad válida, debería ser '10px 10px' o '10px 0' */
    color: var(--bs-dark);
}

.navbar-light .navbar-nav .nav-item .nav-link {
    color: var(--bs-white);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-item .nav-link:hover,
.navbar-light .navbar-nav .nav-item .nav-link.active  {
    color: var(--bs-primary);
}

/*** logo ***/
.navbar-light .navbar-brand img {
    width: 600px;    /* Cambia este valor para el ancho */
    height: 80px;    /* Cambia este valor para el alto */
    max-height: none; /* Elimina la restricción de altura máxima */
    transition: .5s;
    display: block;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 65px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}

/* @media (max-width: 991.98px) - Esto es para pantallas medianas y pequeñas */
@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative; /* Esto es bueno para móviles, evita que se superponga */
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark);
    }

    .navbar-light .navbar-nav .nav-item .nav-link {
        color: var(--bs-dark);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px; /* Buen ajuste para el logo en móviles */
        width: auto; /* Permite que el ancho se ajuste proporcionalmente */
    }
    /* Añadir ajuste para el margen del logo en móviles si está presente: */
    .navbar img { /* Asegúrate de que esta regla también afecte al logo general de la barra de navegación */
        margin-left: 15px; /* O a 0, según tu preferencia en móviles */
        width: auto; /* Permite que se ajuste */
        height: auto; /* Permite que se ajuste */
        max-height: 45px; /* Consistente con el ajuste de max-height de navbar-brand img */
    }
}

/* @media (min-width: 992px) - Esto es para pantallas grandes */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }

    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        z-index: 999;
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light);
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link::after {
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        width: 2px;
        height: 12px;
    }
}
/*** Navbar End ***/


/*** Carousel Hero Header Start ***/
.header-carousel .header-carousel-item img {
    object-fit: cover;
}

.header-carousel .header-carousel-item,
.header-carousel .header-carousel-item img {
    height: 550px;
}
/* Para que el carrusel se vea bien en móviles, 550px de altura puede ser demasiado. */
/* Sugiero reducir la altura en pantallas pequeñas. */
@media (max-width: 767px) {
    .header-carousel .header-carousel-item,
    .header-carousel .header-carousel-item img {
        height: 300px; /* Reducir la altura para móviles */
    }
}
@media (max-width: 480px) { /* Para pantallas aún más pequeñas */
    .header-carousel .header-carousel-item,
    .header-carousel .header-carousel-item img {
        height: 200px;
    }
}


.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev {
    bottom: 30px;
    left: 30px;
    margin-left: 80px;
}
.header-carousel .owl-nav .owl-next {
    bottom: 30px;
    left: 30px;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 0 0 100px 0 var(--bs-light);
    color: var(--bs-primary);
}


.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    padding-top: 120px;
    background: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .header-carousel .header-carousel-item .carousel-caption {
        padding-top: 45px;
    }
}

@media (max-width: 767px) {
    .header-carousel .owl-nav .owl-prev {
        left: 50%;
        transform: translateX(-50%);
        margin-left: -45px;
        /* Reducir tamaño de botones de navegación en móviles */
        width: 30px;
        height: 30px;
        font-size: 18px;
    }


    .header-carousel .owl-nav .owl-next {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 45px;
        /* Reducir tamaño de botones de navegación en móviles */
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    /* Ocultar texto grande en captions si es necesario para evitar desbordes */
    .header-carousel .header-carousel-item .carousel-caption h1 {
        font-size: 1.8rem; /* Ajustar tamaño de encabezado */
    }
    .header-carousel .header-carousel-item .carousel-caption p {
        font-size: 0.9rem; /* Ajustar tamaño de párrafo */
        display: none; /* Ocultar párrafos si no caben */
    }
    .header-carousel .header-carousel-item .carousel-caption .btn {
        padding: 0.5rem 1rem; /* Reducir padding de botones */
        font-size: 0.9rem;
    }
}


.header-carousel .header-carousel-item img {
    animation-name: image-zoom;
    animation-duration: 10s;
    animation-delay: 2s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transition: 2s;
}

@keyframes image-zoom {
    0%  {height: 100%; opacity: 0.9;}
    25% {height: 110%; opacity: 0.50;}
    50% {height: 115%; opacity: 1;}
    75% {height: 110%; opacity: 0.50;}
    100% {height: 100%; opacity: 0.9;}
}
/* Las animaciones generalmente no necesitan ajustes responsivos. */

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 140px 0 60px 0;
    transition: 0.5s;
}

@media (min-width: 992px) {
    .bg-breadcrumb {
        padding: 140px 0 60px 0;
    }
}

@media (max-width: 991px) { /* Este ya es un buen punto de ajuste para tablets y móviles */
    .bg-breadcrumb {
        padding: 60px 0 60px 0;
    }
    /* Asegúrate que el texto dentro del breadcrumb también se ajuste si es muy largo */
    .bg-breadcrumb h1 { /* Si tienes un h1 dentro, ajusta su tamaño */
        font-size: 2rem;
    }
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}
/*** Single Page Hero Header End ***/

/*** Service Start ***/
.service .service-item {
    background: var(--bs-light);
    border-radius: 10px;
    transition: 0.5s;
}

.service .service-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: 0.5s;
}

.service .service-item .service-img img {
    transition: 0.5s;
    width: 100%;
    height: 200px; /* Puedes ajustar la altura según tu preferencia */
    object-fit: cover;
}
/* 200px de altura puede estar bien, pero si las imágenes se ven muy cortadas o alargadas en móviles, podrías ajustar: */
@media (max-width: 767px) {
    .service .service-item .service-img img {
        height: 150px; /* Reducir altura para móviles si es necesario */
    }
}


.service .service-item:hover .service-img img {
    transform: scale(1.2);
}
/*** Service End ***/

/*** carrucel 2 ***/
@keyframes fadeInCarousel {
    from {
        opacity: 0;
        transform: translateY(300px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#carouselExampleFade {
    opacity: 0;
    animation: fadeInCarousel 1.2s ease-out forwards;
    /* Puedes ajustar la duración y el desplazamiento */
}
/* Esto es CSS para animación, no necesita ajuste responsivo directo a menos que la animación cause problemas de rendimiento en móviles. */


/*** carrucel 2 fin ***/


/*** Features Start ***/
.feature .feature-item {
    text-align: center;
    border-radius: 10px;
    background: var(--bs-light);
    border: 1px solid transparent;
    transition: 0.5s;
}

.feature .feature-item:hover {
    border: 1px solid var(--bs-primary);
}

.feature .feature-item .feature-icon {
    background: var(--bs-white);
    border-radius: 10px;
    display: inline-block;
}
/* Si estos son elementos de una grilla, asegúrate de que usen las clases de columnas de Bootstrap (col-sm-6, col-12, etc.) para que se apilen correctamente. Los estilos CSS aquí son más sobre la apariencia del item en sí. */


/*** Features End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-secondary);
}

.footer .footer-item {
    display: flex;
    flex-direction: column;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary);
}
/* El footer, al igual que los "features", se beneficiará de las clases de columna de Bootstrap (col-md-6, col-12) para que sus ítems se apilen correctamente en móviles. Los estilos CSS aquí son para la apariencia de los ítems del footer. */
/* Si el padding general del footer es mucho en móvil, ajusta: */
/*
@media (max-width: 767px) {
    .footer {
        padding: 30px 15px; // Reducir padding horizontal y vertical
    }
}
*/
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    background: var(--bs-dark);
}
/* Esto es solo color de fondo, no necesita ajuste responsivo. */
/*** copyright end ***/






/***************** voluntariado*************************/
.hover-grow {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.hover-blanco {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hover-blanco:hover {
    transform: scale(1.05);
    background-color: #ffffff !important;
    color: #cd480a !important;
    border-color: #939eaf !important;
}

.text-primary {
    color: #06a247 !important;
}

.text-secundary{
    color: #06a247 !important;
}

.img-carousel-wide {
    width: 100%;
    max-width: 300px; /* Si esto es parte de un carrusel, asegúrate que las imágenes tengan width: 100% en móvil */
    height: 100px; /* Altura fija puede causar problemas. Considera auto o una altura más pequeña en móvil. */
}
/* Sugerencia para img-carousel-wide en móvil: */
@media (max-width: 767px) {
    .img-carousel-wide {
        height: auto; /* Dejar que la altura se ajuste proporcionalmente */
        max-width: 100%; /* Asegurar que no exceda el ancho del contenedor */
    }
}


.navbar img {
    width: 120px;       /* Cambia este valor para el ancho */
    height: 100px;       /* Cambia este valor para el alto */
    max-height: none;    /* Elimina la restricción de altura máxima */
    transition: .5s;
    display: block;
    margin-left: 30px;   /* Desplaza la imagen hacia la derecha */
}
/* Ya tienes una media query para el logo de la navbar en 991.98px.
   Asegúrate de que `margin-left: 30px;` no cause problemas en pantallas pequeñas.
   Podrías añadir: */
@media (max-width: 991.98px) {
    .navbar img {
        margin-left: 0; /* Centrar o alinear a la izquierda en móviles */
        width: auto;
        height: auto;
        max-height: 45px; /* Mantener coherencia con .navbar-light .navbar-brand img */
    }
}


.fondo-cerus {
    background-color: #d5d5d5;
    padding: 2px;
    border-radius: 130px; /* Este radio de borde es muy grande y puede no verse bien en contenedores pequeños */
    margin-top: 10px; /* Este valor ajusta qué tanto se baja el bloque */
}
/* El border-radius de 130px puede ser problemático en anchos pequeños. Considera un `border-radius: 50%` para hacerlo circular si el contenedor es cuadrado, o un `border-radius: 10px` para esquinas redondeadas normales. */
/* Si este es un elemento que debe centrarse o tener padding específico: */
@media (max-width: 767px) {
    .fondo-cerus {
        border-radius: 10px; /* Reducir el radio de borde para que se vea mejor */
        padding: 10px; /* Ajustar padding */
    }
}


.faq-image {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    
}

.faq-image:hover {
    transform: scale(1.03);
}
/* El `faq-image` es la imagen al lado del acordeón. Sus dimensiones serán manejadas por la clase `col-lg-6` de Bootstrap.
   El `custom-image` tiene `max-width: 70%` y `margin-top: 50px;`. Estos valores podrían necesitar ajuste en móvil. */
/* Asegúrate que `max-width: 70%;` no hace la imagen demasiado pequeña en móvil. Tal vez `max-width: 90%` o `100%` sea mejor. */
/* El `margin-top: 50px;` podría empujar demasiado la imagen en vertical en móviles. */
.custom-image {
    max-width: 55%; /* Considera cambiar a 90% o 100% para móviles */
    margin-top: 30px; /* ajusta para subir la imagen */
}
@media (max-width: 767px) {
    .custom-image {
        max-width: 90%; /* Hace que la imagen ocupe más espacio en pantallas pequeñas */
        margin-top: 20px; /* Reduce el margen superior en móviles */
    }
}


.fp-section { /* Esto parece ser un padding general, quizás del acordeón o una sección */
    margin-top: 90px;
    padding-left: 30px;
}
/* 90px de margen superior y 30px de padding izquierdo pueden ser mucho en móviles. */
@media (max-width: 767px) {
    .fp-section {
        margin-top: 30px; /* Reduce el margen superior */
        padding-left: 15px; /* Reduce el padding izquierdo */
        padding-right: 15px; /* Añade padding derecho para consistencia */
    }
}



/*carrucel 1*/


/* Estilos por defecto (para móviles) */
#carouselExampleIndicators {
  width: 95%; /* Ocupa más espacio en pantallas pequeñas */
  max-width: 1280px;
  margin: 10px auto;
  border-radius: 10px;
  overflow:hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

#carouselExampleIndicators img {
  width: 100%; /* Asegura que la imagen llene el contenedor */
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

/* Estilos para pantallas más grandes (tablets y desktops) */
@media (min-width: 768px) {
  #carouselExampleIndicators {
    width: 70%; /* Vuelve al 70% en pantallas más grandes */
  }
}

/*acordion*/
/* Contenedor general del acordeón */
.accordion-flush {
    background-color: #fdfeff;
    border-radius: 12px;
    padding: 20px; /* El padding podría ser mucho en móviles */
}
@media (max-width: 767px) {
    .accordion-flush {
        padding: 15px; /* Reduce el padding para móviles */
    }
}

/* Cada item del acordeón */
.accordion-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    animation: fadeSlideIn 0.8s ease;
}

/* Botones del acordeón (títulos) */
.accordion-button {
    background-color: #ffffff;
    font-weight: 600;
    font-size: 18px; /* El tamaño de fuente puede ser grande en móviles */
    color: #000000;
    border-radius: 12px;
    padding: 16px 20px; /* El padding puede ser mucho en móviles */
    transition: background-color 0.3s ease, transform 0.2s ease;
}
@media (max-width: 767px) {
    .accordion-button {
        font-size: 16px; /* Ajusta el tamaño de la fuente para móviles */
        padding: 12px 15px; /* Reduce el padding */
    }
}


/* Hover visual */
.accordion-button:hover {
    background-color: #d0d0d0;
    transform: scale(1.01);
}

/* Botón abierto */
.accordion-button:not(.collapsed) {
    background-color: #cfe2ff;
    color: #000000;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.1);
}

/* Cuerpo del contenido desplegado */
.accordion-body {
    padding: 20px; /* El padding puede ser mucho en móviles */
    font-size: 16px; /* El tamaño de fuente puede ser grande en móviles */
    line-height: 1.7;
    color: #000000;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
}
@media (max-width: 767px) {
    .accordion-body {
        padding: 15px; /* Reduce el padding para móviles */
        font-size: 14px; /* Ajusta el tamaño de la fuente */
    }
}


/* Animación de entrada */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* video */
.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 90px 30px; 
  flex-wrap: wrap;
}

.video-box {
  width: 100%;
  max-width: 780px; /* ✅ Más ancho que antes */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-box:hover {
  transform: scale(1.02);
}

.custom-video {
  width: 100%;
  height: 440px; /* ✚ Más largo verticalmente */
  object-fit: cover; /* Asegura recorte elegante si el video sobrepasa */
  display: block;
  border-radius: 0;
}







.img-expand-xl {
  width: 100%;
  max-width: 1800px;        /* Control visual sobre expansión */
  height: auto;
  display: block;
  margin: 0 auto;
  margin-top: var(--mt, -20px); /* Soporte para margen dinámico vía inline-style */
  transition: transform 0.4s ease;
}

.img-expand-xl:hover {
  transform: scale(1.03);   /* Microinteracción elegante */
}





/*objetivos*/

/* Animación de hover */
.centered-content {
    max-width: 1200px;
    margin-top: -30px; /* Un margen negativo puede ser problemático si no hay suficiente espacio */
    margin: -30px auto 0; /* Un margen negativo puede ser problemático si no hay suficiente espacio */
    padding: 50px; /* Mucho padding para móviles */
    background-color: #f8fbff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: center;
}
/* Sugiero ajustar el margen superior y padding para móviles */
@media (max-width: 767px) {
    .centered-content {
        margin-top: 20px; /* Ajusta a un valor positivo o más pequeño */
        padding: 20px; /* Reduce el padding */
    }
}


.centered-content:hover {
    transform: scale(1.02);
}


.animated-paragraph {
    font-size: 1.2rem; /* Puede ser grande para móviles */
    line-height: 1.6;
    margin-bottom: 40px; /* Mucho margen inferior para móviles */
    color: #000000;
}
@media (max-width: 767px) {
    .animated-paragraph {
        font-size: 1rem; /* Ajusta tamaño de fuente */
        margin-bottom: 20px; /* Reduce margen inferior */
    }
}

.animated-list {
    font-size: 1.1rem; /* Puede ser grande para móviles */
    margin-bottom: 20px;
    color: #000000;
    position: relative;
    padding-left: 30px; /* Padding de 30px puede ser mucho */
}
.animated-list::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0;
    color: #06a247;
    font-size: 1.2rem;
}
@media (max-width: 767px) {
    .animated-list {
        font-size: 0.95rem; /* Ajusta tamaño de fuente */
        padding-left: 20px; /* Reduce padding */
    }
    .animated-list::before {
        font-size: 1rem; /* Ajusta tamaño del icono */
    }
}


/* Hover para agrandar cada elemento */
.hover-grow {
    transition: transform 0.3s ease;
}
.hover-grow:hover {
    transform: scale(1.05);
}

/* Animaciones base */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}
/* Las animaciones no necesitan ajustes responsivos directos. */


/* video cerus*/
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh; /* 90vh es mucho para un celular vertical, ocupará casi toda la pantalla */
}
/* Ajusta la altura del contenedor de video para móviles */
@media (max-width: 767px) {
    .video-container {
        height: 50vh; /* O un valor fijo como 300px */
        /* Asegúrate que el video mismo tenga max-width: 100% y height: auto */
        /* Si usas un iframe, puedes ajustar su tamaño: */
        /* .video-container iframe {
            width: 100%;
            height: 250px;
        } */
    }
}


.text-prin{
    font-size: 1.1rem; /* Puede ser grande para móviles */
    margin-bottom: 20px;
    color: #000000;
    position: relative;
    padding-left: 30px; /* Mucho padding para móviles */
}
/* Sugiero ajustar para móviles: */
@media (max-width: 767px) {
    .text-prin {
        font-size: 0.95rem;
        padding-left: 15px;
    }
}


/* Principios */
.principios {
    width: 100%;             /* La imagen ocupará el 100% del ancho de su contenedor */
    max-width: 720px;        /* Pero no excederá los 720px en pantallas grandes */
    height: auto;            /* Mantiene la proporción original de la imagen */
    display: block;          /* Elimina el espacio extra debajo si es un elemento inline-block */
    margin: 30px auto;       /* Centra la imagen horizontalmente y añade margen superior/inferior */
    border-radius: 12px;     /* Esquinas suaves */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); /* Sombra institucional ligera */
    transition: transform 0.3s ease; /* Transición suave para el efecto hover */
}

.principios:hover {
    transform: scale(1.04);  /* Microinteracción visual sutil al pasar el mouse */
}

/* Media Queries para ajustes específicos en pantallas más pequeñas (opcional, pero útil) */
@media (max-width: 768px) { /* Para tabletas y móviles */
    .principios {
        margin: 20px auto; /* Reducir un poco el margen en móviles si es necesario */
        /* Si la imagen se ve demasiado grande incluso al 100%, podrías limitarla un poco más: */
        /* width: 95%; */
    }
}

@media (max-width: 480px) { /* Para móviles más pequeños */
    .principios {
        margin: 15px auto; /* Más reducción de margen si se desea */
        /* width: 90%; */ /* Si necesitas que sea aún más pequeña en dispositivos muy pequeños */
    }
}


 /* img valores  */

.img-valores {
  display: block;                 /* Permite aplicar margin auto */
  margin-left: auto;             /* Centra horizontalmente */
  margin-right: auto;
  width: 70%;                    /* Ajuste responsivo */
  height: auto;
  max-width: none;
}




 /* img derechos  */

.img-derechos {
  display: block;                 /* Permite aplicar margin auto */
  margin-left: auto;             /* Centra horizontalmente */
  margin-right: auto;
  width: 40%;                    /* Ajuste responsivo */
  height: auto;
  max-width: none;
}
.img-derechos:hover {
  transform: scale(1.05);
}




/*logo footer*/

.logo-heading { /* Este parece ser el logo dentro de un heading o un elemento similar, no el de la navbar */
    width: 260px;       /* Tamaño personalizado */
    height: auto;       /* Mantiene la proporción */
    vertical-align: middle;
    margin-top: -10px;
}
/* 260px puede ser mucho para el footer en móvil. */
@media (max-width: 767px) {
    .logo-heading {
        width: 180px; /* Reduce el tamaño del logo en el footer para móviles */
        margin-top: 0; /* Elimina margen negativo si causa problemas */
    }
}



/*baneer voluntariado*/

.banner-voluntariado {
 height: 200px; /* Ajusta según tu diseño */
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.custom-image_1 {
    max-width: 80%;
}


/*carrucel ultimo*/
#carouselExampleFade .carousel-item img {
    height: 330px; /* Ajusta según tu diseño */
    object-fit: cover;
    width: 100%;
    border-radius: 20px;
      margin-top: 10px;
    margin-top: -6px; /* Margen negativo puede ser problemático */
}
/* 300px de altura puede ser mucho en móviles, y el margin-top -6px puede ser problemático. */
@media (max-width: 767px) {
    #carouselExampleFade .carousel-item img {
        height: 180px; /* Reduce la altura para móviles */
        margin-top: 0; /* Elimina margen negativo */
    }
}
@media (max-width: 480px) {
    #carouselExampleFade .carousel-item img {
        height: 150px;
    }
}


/*contador*/
.visit-box {
    background-color: #f97316;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 250px; /* Esto lo hace responsivo, bueno */
    margin: 20px auto;
    font-family: 'Segoe UI', sans-serif;
}

.visit-label {
    font-size: 18px; /* Puede ser grande */
    margin-bottom: 10px;
    font-weight: 500;
}

.visit-count {
    font-size: 32px; /* Puede ser grande */
    font-weight: bold;
    animation: popIn 0.6s ease;
}
/* Ajustar tamaños de fuente para el contador en móviles: */
@media (max-width: 767px) {
    .visit-label {
        font-size: 16px;
    }
    .visit-count {
        font-size: 28px;
    }
}


@keyframes popIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/*imagen actores */
.centered-content img { /* Esto probablemente se refiere a la imagen dentro del .centered-content */
    width: 80%; /* 80% está bien para responsive */
    height: auto;
    max-width: none;
}




/* imagenes niveles*/

.card-title {
    color: #ffffff;
    font-size: 1.9rem; /* Puede ser grande en móviles */
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    margin-bottom: 0.5rem;
}
/* Ajustar font-size para móviles: */
@media (max-width: 767px) {
    .card-title {
        font-size: 1.2rem;
    }
}

.nivel-card:hover .card-title {
    transform: scale(1.05);
}
.nivel-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nivel-card:hover {
    transform: scale(1.05);
}

.sombra-card {
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.fondo-basico {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.fondo-basico-light {
    background-color: #d4edda;
}

.fondo-medio {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.fondo-medio-light {
    background-color: #fff3cd;
}

.fondo-avanzado {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.fondo-avanzado-light {
    background-color: #f8d7da;
}

/* Para las tarjetas de niveles (nivel-card), si están en una grilla de Bootstrap, ya deberían apilarse.
   Si no, asegúrate de que sus contenedores usen `display: flex; flex-wrap: wrap;` y que cada tarjeta tenga un `flex-basis` o `width` adecuado para móviles (ej. 100%). */


/* imagen modalidades de voluntariado*/
.img-modalidad {
    display: block;
    margin: 0 auto;
    width: 50%; /* 50% puede ser demasiado pequeño en móviles */
    max-width: none;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
/* Ajustar el ancho para móviles: */
@media (max-width: 767px) {
    .img-modalidad {
        width: 90%; /* Ocupa más espacio en móviles */
    }
}


/* img OPERATIVIZACIÓN */

.imagen-contenedor {
    overflow: visible; /* Generalmente, esto está bien, pero cuidado si un elemento hijo desborda */
}
.imagen-Operativizacion {
    width: 80%; /* 80% está bien para responsive */
    max-width: none;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}
.text-ope{
    font-size: 1.1rem; /* Puede ser grande para móviles */
    margin-bottom: 20px;
    color: #000000;
    position: relative;
    padding-left: 30px; /* Mucho padding */
}
/* Ajustar texto y quizás imagen para móviles */
@media (max-width: 767px) {
    .text-ope {
        font-size: 0.95rem;
        padding-left: 15px;
    }
}


/* requisitos */
.mcontenedor-voluntariado {
    display: flex;
    flex-wrap: wrap; /* Ya lo tienes, excelente! */
    align-items: center;
    justify-content: space-between;
    gap: 3rem; /* Puede ser mucho en móviles */
    padding: 3rem 2rem; /* Mucho padding en móviles */
    background: linear-gradient(to bottom right, #f8f9fa, #e3e6ec);
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    animation: fadeInSection 1.5s ease both;
}
/* Ajustar espaciado para móviles: */
@media (max-width: 767px) {
    .mcontenedor-voluntariado {
        gap: 1.5rem; /* Reduce el espacio entre elementos */
        padding: 1.5rem 1rem; /* Reduce el padding general */
        border-radius: 15px; /* Quizás un poco menos redondeado */
    }
}


/* 🧠 Texto */
.texto-voluntariado {
    flex: 1 1 500px; 
    animation: slideInLeft 1.8s ease both;
}

.titulo-requisitos {
    font-size: 2rem; /* Puede ser grande para móviles */
    margin-bottom: 1rem;
    color: #ffffff; /* Asegúrate que este color sea legible sobre el fondo del contenedor en el HTML */
    position: relative;
}

.titulo-requisitos::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 60px;
    height: 4px;
    background-color: #0daf15;
    border-radius: 2px;
}
/* Ajustar tamaño de fuente del título para móviles: */
@media (max-width: 767px) {
    .titulo-requisitos {
        font-size: 1.5rem;
    }
    .titulo-requisitos::after {
        width: 40px; /* Reducir la línea decorativa */
    }
}


.intro-requisitos {
    font-size: 1.1rem; /* Puede ser grande para móviles */
    margin-bottom: 1.5rem;
    color: #495057;
}
/* Ajustar font-size para móviles: */
@media (max-width: 767px) {
    .intro-requisitos {
        font-size: 1rem;
    }
}


.lista-requisitos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-requisitos li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #343a40;
    line-height: 1.5;
}

.lista-requisitos li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    color: #28a745;
    font-size: 1.1rem;
}
/* Estos tamaños están bien, pero puedes ajustarlos si lo ves necesario. */


/* 🖼 Imagen */
.imagen-voluntariado {
    flex: 1 1 350px; /* También un buen flex-basis, hará que ocupe 100% en móvil */
    display: flex;
    justify-content: center;
    animation: slideInRight 2s ease both;
}

.imagen-voluntariado img {
    width: 100%;
    max-width: 500px; /* Esto es un `max-width` global. El `width: 100%` en el `img` de `imagen-voluntariado` ya lo hace responsivo. */
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.imagen-voluntariado img:hover {
    transform: scale(1.05);
}

/* ✨ Animaciones */
@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* actividades */

.galeria-voluntariado {
    margin-top: 60px; /* Puede ser mucho en móvil */
    padding: 1rem 2rem; /* Mucho padding en móvil */
}
/* Ajustar para móvil: */
@media (max-width: 767px) {
    .galeria-voluntariado {
        margin-top: 30px;
        padding: 1rem;
    }
}


.imagen-miniatura img.hover-img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%; /* Esto es bueno para responsive */
}

.hover-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.caption-img {
    margin-top: 0.5rem;
    font-size: 1rem; /* Puede ser un poco grande para leyenda en móvil */
    color: #555;
}
/* Ajustar font-size para móviles: */
@media (max-width: 767px) {
    .caption-img {
        font-size: 0.85rem;
    }
}


/* Reconocimientos */

/* 🧭 Espaciado general */
.contenedor-actividades {
    margin-top: 60px; /* Puede ser mucho */
    padding: 1rem;
}
/* Ajustar para móvil: */
@media (max-width: 767px) {
    .contenedor-actividades {
        margin-top: 30px;
        padding: 0.5rem;
    }
}


/* ✨ Animación de entrada */
.animacion-entrada {
    animation: fadeInLeft 0.8s ease forwards;
}

/* 🎯 Título */
.titulo-actividades {
    font-size: 2.5rem; /* Muy grande para móviles */
    text-align: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}
/* Ajustar tamaño de fuente: */
@media (max-width: 767px) {
    .titulo-actividades {
        font-size: 1.8rem;
    }
    @media (max-width: 480px) {
        .titulo-actividades {
            font-size: 1.5rem;
        }
    }
}


.titulo-actividades:hover {
    transform: scale(1.05);
}

.animated-tex::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0;
    color: #06a247;
    font-size: 1.2rem;
}
/* 📄 Texto */
.texto-actividades {
    font-size: 1.3rem; /* Puede ser grande */
    margin-top: 1rem;
    line-height: 1.2;
    color: #000000;
    background-color: #f9f9f9;
    padding: 1.5rem; /* Puede ser mucho */
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
/* Ajustar para móviles: */
@media (max-width: 767px) {
    .texto-actividades {
        font-size: 1rem;
        padding: 1rem;
    }
}


.texto-actividades:hover {
    transform: scale(1.02);
}

/* 🖼️ Imagen con efecto */
.imagen-actividades {
    text-align: center;
    padding: 1rem;
}

.imagen-hover {
    max-width: 90%; /* Esto es bueno */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagen-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* 📱 Responsividad */
@media (max-width: 768px) { /* Este ya es un buen breakpoint */
    .contenido-actividades {
        flex-direction: column; /* Apila los elementos, excelente! */
    }

    .imagen-actividades {
        margin-top: 2rem;
    }
}

/* 🎬 Animación personalizada */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}




/* Galería de imágenes */
.image-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.image-row img {
  width: 160px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image-row img:hover {
  transform: scale(1.05);
}



