/********** Template CSS **********/
:root {
    --primary: #EB8D48;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #001D23;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #202020;
}
h1, h2 {
    font-weight: bold;
    color: #003366;
}


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


/*** 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(--primary);
    background: transparent;
}

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

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

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

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


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

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

.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;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@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;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(5, 60, 71, 0.3);
    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;
    }
    h1 {
        font-size: 1.5rem;
    }
    .btn-primary {
        font-size: 16px;
        padding: 8px 15px;
    }
}


.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), url(../img/carousel-1.webp) center center no-repeat;
    background-size: cover;
}

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


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


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: 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(--primary);
    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: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    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: 25px 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);
}

.service-item {
    border-radius: 10px; /* Bordes suavemente redondeados */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Sombras para darle profundidad */
}

.btn-outline-primary {
    border-radius: 20px; /* Bordes más redondeados */
    transition: 0.3s;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}


  /* MEJORAS SUJERIDAS POR COPILOT */

/* Paleta de colores y fondo */
body {
    background-color: #F9F9F9;
    color: #1C1C1C;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

/* Títulos */
h1, h2, h3 {
    color: #003366;
    font-weight: 700;
    text-transform: uppercase; /* Color vibrante */
}

p {
    color: #1C1C1C; /* Negro carbón para mayor claridad */
    font-size: 16px;
    line-height: 1.6; /* Espaciado óptimo */
    letter-spacing: 0.5px;
}


/* Contenedor de secciones */
.section {
    background-color: #FFFFFF;
    padding: 60px 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Contenedor de servicios */
.service-item {
    background-color: #003366;
    color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.1);
}

/* Botones */
.btn-outline-primary, .btn-primary {
    border: 2px solid #EB8D48;
    color: #EB8D48;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.btn-outline-primary:hover, .btn-primary:hover {
    background-color: #EB8D48;
    color: #202020;
}

.btn-primary {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #E63946; /* Rojo vibrante */
    color: white;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #EB8D48; /* Dorado oscuro */
    color: #1C1C1C;
    transform: scale(1.05);

}


/* Imágenes */
img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.05);
}

/* Barra de desplazamiento */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9F9F9;
}

::-webkit-scrollbar-thumb {
    background: #EB8D48;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EB8D48;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



  .whatsapp-container {
    position: fixed;
    bottom: 90px; /* AJUSTE PARA SUBIR EL BOTÓN */
    right: 25px;
    z-index: 9999;
  }

  .whatsapp-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }

  .whatsapp-btn img {
    width: 38px;
    height: 38px;
  }

  .whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  }

  /* Tooltip */
  .whatsapp-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .whatsapp-btn:hover + .whatsapp-tooltip {
    opacity: 1;
  }


  .tabs-container {
    max-width: 1100px;
    margin: 40px auto 20px auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: Arial, sans-serif;
  }

  .tab-btn {
    padding: 12px 25px;
    border-radius: 8px;
    background: #eee;
    cursor: pointer;
    font-size: 16px;
    border: none;
    transition: 0.25s ease;
  }

  .tab-btn.active {
    background: #EB8D48;
    color: white;
    font-weight: bold;
  }

  .courses-4-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
  }

  .course-card-4 {
    background: #fff;
    width: 260px;
    border-radius: 18px;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eee;
    text-align: center;
  }

  .course-card-4:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  }

  .course-title-4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
  }

  .course-features-4 {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
  }

  .course-features-4 li {
    margin-bottom: 10px;
    color: #444;
    font-size: 15px;
    display: flex;
    align-items: center;
  }

  .course-features-4 li::before {
    content: "✔";
    color: #EB8D48;
    margin-right: 8px;
    font-weight: bold;
  }

  .course-price-4 {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #1a7f37;
    margin-bottom: 20px;
  }

  .course-btn-4 {
    display: block;
    text-align: center;
    background: #EB8D48;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.25s ease;
  }

  .course-btn-4:hover {
    background: #d9793c;
  }

  /* Fondo del spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Ocultar suavemente */
.spinner-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

/* Contenedor */
.spinner-box {
  text-align: center;
  animation: fadeIn 0.5s ease;
}

/* Imagen fija */
.spinner-image {
  width: 500px;
  height: 500px;
  object-fit: contain;
  margin-bottom: 0px;
  margin-top: 0px;
}

/* Barra de carga */
.progress-bar-container {
  width: 400px;
  height: 10px;
  background: #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  margin-top: -180px;

}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: #EB8D48;
  animation: loadBar 3s forwards ease-in-out;
}

/* Animaciones */
@keyframes loadBar {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
