/* Texto centrado y separado para positivoon.php */
.positivoon-texto {
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: center;
    max-width: 600px;
    font-size: 1.15rem;
    line-height: 1.7;
}
/********** Template CSS **********/
:root {
    --primary: #004055;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #000000;
    --koga: #033B86;
    --insti: #000000;
    --amarillologo: #ffbb00;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.back-to-down {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 100;
}

/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    color: var(--koga);
    background: var(--amarillologo)
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.container-loco{
    overflow-y: scroll; /* Habilita solo la barra lateral */
    overflow-x: hidden; /* Oculta la barra horizontal */
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

a.imagen i {
    margin-right: 8px; /* Ajusta el espacio entre el icono y el texto */
    font-size: 1.2em;
}

.text-center a.imagen {
    display: inline-grid;
    margin: 0px 20%;
}

.text-center .btn{
    display: inline-grid;
    margin: 0px 20%;
}

/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.logo-img {
    padding: 10px 0px 0px 10px;
    height: 200px;
    width: 200px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

/* LETRAS ACTIVAS E INACTIVAS*/
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--amarillologo);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }

    .logo-img {
    height: 130px;
    width: 130px;
}
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 29, 35, 0.562);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background: rgb(0,61,200);
    background: radial-gradient(circle, rgba(0,61,200,1) 28%, rgba(0,126,226,1) 85%);
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #585858;
}


/*** Causes ***/
.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}


.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--koga);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 200px;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 630px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.5);
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

.footer .copyright {
    padding: 10px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: var(--primary);
}

::-webkit-scrollbar {
    width: 20px;
  }

::-webkit-scrollbar-track {
    background-color: transparent;
  }

::-webkit-scrollbar-thumb {
    background-color: var(--koga);
  }

::-webkit-scrollbar-thumb {
    background-color: var(--koga);
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
  }
 
  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--koga);
  }

  /* Mobile Styles */
@media (max-width: 575.98px) {
    .navbar .nav-link {
        font-size: 14px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
    .logo-img {
    height: 100px;
    width: 100px;
}
}

/* Tablet Styles */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar .nav-link {
        font-size: 16px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }
}

/* Small Desktop Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar .nav-link {
        font-size: 18px;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption p {
        font-size: 1.5rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 992px) {
    .navbar .nav-link {
        font-size: 20px;
    }

    .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption p {
        font-size: 1.7rem;
    }
}

/* General Responsive Adjustments */
.container-xxl {
    padding-left: 15px;
    padding-right: 15px;
}

/* Adjustments for specific sections */
.causes-item {
    padding: 20px;
}

@media (max-width: 767.98px) {
    .causes-item {
        margin-bottom: 20px;
    }

    .logo-img {
    height: 115px;
    width: 115px;
}
}

.carousel {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative; /* Para posicionar correctamente elementos como flechas */
}

.carousel-item {
  flex: 0 0 auto; /* Asegura que cada item tenga un tamaño fijo dentro del contenedor */
  width: 100%; /* Ajusta cada item para ocupar todo el ancho del carrusel */
  transition: transform 0.5s ease; /* Animación suave para transiciones */
}

.carousel-container {
  display: flex;
  width: 100%;
  overflow: hidden; /* Evita que se vea contenido fuera del carrusel */
}

body {
  margin: 0;
  overflow-x: hidden; /* Evita el espacio en blanco horizontal */
}

img {
  width: 100%; /* Las imágenes siempre ocupan todo el ancho del contenedor */
  height: auto; /* Mantienen su proporción original */
}

@media (max-width: 575.98px) {
  #header-carousel .carousel-item {
    min-height: 100vh; /* que ocupe toda la pantalla */
  }

  #header-carousel .carousel-item img {
    width: 100%;
    height: 100vh; /* altura de pantalla */
    object-fit: cover; /* que llene el espacio sin deformarse */
  }
}
#header-carousel .carousel-item {
  min-height: 100vh;
}

#header-carousel .carousel-item img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.navbar-toggle-icon{
    z-index: 9998;
}
.navbar-toggler{
    z-index: 9999;
}


.fullscreen-menu.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.offcanvas-body a {
  padding: 8px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.2);
  color: rgb(0, 0, 0);
  text-decoration: none;
  transition: 0.5s;
  font-size: 1.1rem;
}

.offcanvas-body a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.btn-close {
  filter: brightness(200%);
  transform: scale(1.5);
}

@media (max-width: 575.98px) {
  .offcanvas-body a {
    font-size: 1.2rem;       /* letras más grandes */
    padding: 12px 0;         /* más espacio vertical */
  }

  .offcanvas-body .btn {
    font-size: 1.2rem;       /* también para botones */
    padding: 12px 0;
  }
}

.btn-outline-PORTAL{
    color:#000000;
    border-color:#175588;
    background-color: #178488;
}
.btn-outline-PORTAL:hover{
    color:#000;
    background-color:#173d88;
    border-color:#175588;
}

html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--highlight); /* o usa un amarillo institucional */
}

footer i {
  width: 20px;
  text-align: center;
}

footer .btn-sm {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575.98px) {
  footer .text-md-start {
    text-align: center !important;
  }

  footer .text-md-end {
    text-align: center !important;
  }
}

.conteudo-principal p,
.conteudo-principal ul,
.conteudo-principal li {
  color: black;
}

.conteudo-principal p,
.conteudo-principal ul,
.conteudo-principal li {
  color: black;
}

/*** WhatsApp Button ***/
.whatsapp-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  gap: 2px;
}

.whatsapp-button:hover {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  transform: scale(1.1);
  animation: none;
}

.whatsapp-button i {
  font-size: 28px;
  color: white;
}

.whatsapp-badge {
  color: white;
  font-size: 9px;
  font-weight: bold;
  text-align: center;
  line-height: 1.1;
  display: block;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}