/*******************************/
/********* General CSS *********/
/*******************************/
body {
    color: #444444;
    font-weight: 400;
    background: #ffffff;
    font-family: 'Barlow', sans-serif;
}

h1,
h2, 
h3, 
h4,
h5, 
h6 {
    color: #202C45;
}

a {
    color: #202C45;
    transition: .3s;
    cursor: pointer;
}

a:hover,
a:active,
a:focus {
    color: #E81C2E;
    outline: none;
    text-decoration: none;
}

.btn.btn-custom {
    padding: 10px 30px 12px 30px;
    text-align: center; 
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background: #E81C2E;
    border: none;
    border-radius: 60px;
    box-shadow: inset 0 0 0 0 #202C45;
    transition: ease-out 0.5s;
    -webkit-transition: ease-out 0.5s;
    -moz-transition: ease-out 0.5s;
}

.btn.btn-custom:hover {
    color: #E81C2E;
    background: #202C45;
    box-shadow: inset 200px 0 0 0 #202C45;
}

.btn:focus,
.form-control:focus {
    box-shadow: none;
}

.container-fluid {
    max-width: 1366px;
}

.otros-enlaces {
  text-decoration: none;
  color: black;
}

[class^="flaticon-"]:before, [class*=" flaticon-"]:before,
[class^="flaticon-"]:after, [class*=" flaticon-"]:after {   
    font-size: inherit;
    margin-left: 0;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/**********************************/
/*********** Nav Bar CSS **********/
/**********************************/
.nav-bar {
    text-align: center;
    background: #202C45;
}

.nav-bar.nav-sticky {
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    z-index: 999;
}

.nav-bar .navbar {
  padding: 20px 0;
  background: #202C45 !important;
  transition: .3s;
}

.nav-bar.nav-sticky .navbar {
    padding: 5px 0;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    padding: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #E81C2E;
}

.nav-bar .dropdown-menu {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: #f8f9fa;
}

.nav-bar .btn.btn-custom {
    color: #202C45;
    background: #ffffff;
    box-shadow: inset 0 0 0 0 #E81C2E;
}

.nav-bar .btn:hover {
    color: #ffffff;
    background: #E81C2E;
    box-shadow: inset 200px 0 0 0 #E81C2E;
}

@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link,
  .navbar-dark .navbar-nav .nav-link:focus,
  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link.active {
      padding: 5px 0;
  }
  
  .nav-bar .dropdown-menu {
      box-shadow: none;
  }
  
  .nav-bar .btn {
      display: none;
  }
}

/*******************************/
/********** About CSS **********/
/*******************************/
.about {
    position: relative;
    width: 100%;
    padding: 45px 0 15px 0;
}

.about .about-content {
    margin-bottom: 30px;
}

.about .about-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 25px;
}

.about .about-content ul li {
    margin-bottom: 5px;
}

.about .about-content ul li i {
    margin-right: 8px;
}

.about .container img {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #ffffff;
    margin-bottom: 45px;
}

/* Adaptación para móviles */
@media screen and (max-width: 768px) {
    .about {
        padding: 30px 15px 10px 15px; /* Menos padding horizontal */
    }

    .about .about-content {
        margin-bottom: 20px;
    }

    .about .about-content ul li {
        font-size: 14px; /* Texto un poco más pequeño si es necesario */
    }

    .about .container img {
        min-height: 250px; /* Reducimos altura mínima en móviles */
        margin-bottom: 30px;
    }
}


/*******************************/
/********* Footer CSS **********/
/*******************************/
.footer {
    position: relative;
    padding: 20px;
    background: #202C45;
}

.footer .copyright {
    text-align: center;
}

.footer .copyright p {
    margin: 0;
    color: #ffffff;
}

.footer .copyright p a {
    color: #E81C2E;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer .copyright p a:hover {
    color: #ffffff;
}

/* Adaptación para móviles */
@media screen and (max-width: 768px) {
    .footer {
        padding: 20px;
    }

    .footer .copyright p {
        font-size: 14px; /* Texto más pequeño para móviles */
        line-height: 1.4;
    }

    .footer .copyright p a {
        display: inline-block;
        word-break: break-word; /* Por si hay enlaces largos */
    }
}

/* MODALS 
================================================== */
.modal.fade-scale {
  transform: scale(0);
  opacity: 0;
  transition: all 0.25s linear;
}

.modal.fade-scale.show {
  opacity: 1;
  transform: scale(1);
}

.modal.fade-scale .modal-dialog {
  margin-top: 50px;
  transition: all 0.25s ease-in-out;
  transform: translate(0, 0%);
}
  
  .modal-header {
    height: 400px;
  }
  
  .modal-header .rectangle {
    position: absolute;
    right: -20px;
    top: -20px;
    height: 40px;
    width: 40px;
    background-color: #196fc2;
    color: #ffffff;
    box-shadow: none;
    border: 0;
    opacity: 1;
  }
  
  .modal-header .rectangle:hover {
    background-color: #ffffff;
    color: #196fc2;
    border-color: #196fc2;
  }
  
  .modal-header,
  .modal-footer {
    padding: 0;
  }
  
  .modal-footer {
    border-top: 0;
  }
  
  .modal-footer .btn:hover {
    background-color: #ffffff;
    color: #196fc2;
    border-color: #196fc2;
  }
  
  .modal-content {
    padding: 0;
    border-radius: 0;
    border: 0;
  }
  
  .modal-content p {
    margin: 15px 0 0;
  }
  
  .modal-content .btn {
    width: 100%;
    border-width: 1px 0 0 0;
  }
  
  @media only screen and (max-width: 767px) {
    /* MODALS */
    .modal-dialog {
      margin: 30px 30px 10px 10px;
    }
    .modal-header .rectangle {
      right: -18px;
      top: -18px;
      height: 36px;
      width: 36px;
    }
  }
  /* Cuadros de voluntariados */
  .carrusel-voluntariado {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .flecha-izquierda-pasar, .flecha-derecha-pasar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1;
  }
  
  .flecha-izquierda-pasar {
    left: 0;
  }
  
  .flecha-derecha-pasar {
    right: 0;
  }
  
  .carrusel-voluntariado-contenedor {
    white-space: nowrap;
    transition: transform 0.3s ease;
  }
  
  .carrusel-voluntariado-contenedor img {
    display: inline-block;
    width: 100%;
  }
  
  .flecha-izquierda-pasar, .flecha-derecha-pasar {
    font-size: 100px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .flecha-izquierda-pasar:hover, .flecha-derecha-pasar:hover {
    color: #555;
  }