/* ESTILOS GLOBALES */

section {
    scroll-margin-top: 80px; 
    
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    width: 100%;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

#wrapper {
    overflow-x: hidden;
    width: 100%;
}


.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}


* {
    max-width: 100%;
    box-sizing: border-box;
}


.row {
    margin-left: 0;
    margin-right: 0;
}

/* COMPONENTES REUTILIZABLES */
.section-title {
    font-weight: 800;
    color: #053f5b;
    margin-bottom: 2rem;
    text-align: center;
}

.btn-custom {
    background-color: #cb6868;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-custom:hover {
    background-color: #a85555;
    color: white;
    transform: scale(1.05);
}

.img-fluid {
    border-radius: 15px;
}

.badge-custom {
    display: inline-block;
    background-color: #fce4e4;
    color: #cb6868;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.small-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #cb6868;
    font-weight: 700;
    margin-bottom: 10px;
}

/* NAVBAR */
.navbar {
    padding: 10px 0;
    background-color: #ceecf4 !important;
}

.navbar-collapse {
    justify-content: space-between;
}

.nav-links {
    list-style: none;
    background-color: #ffffff;
    padding: 10px 30px;
    border-radius: 50px;
    margin: 0;
}

.nav-links li a {
    margin: 0 15px;
    text-decoration: none;
    color: #053f5b;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #cb6868;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #053f5b;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-icons img {
    width: 22px;
    filter: brightness(0) invert(1);
}

.social-icons a:hover {
    background-color: #cb6868;
    transform: scale(1.1);
}

/* SECCIÓN HERO */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), 
                url('../img/fondo1.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: lighten; 
}

.hero-title {
    color: #053f5b;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* SECCIÓN NOSOTROS */
.nosotros {
    background-color: #053f5b; 
    padding-top: 50px;
}

.contenedor-olas {
    width: 100%;
    background-image: url('../img/fondo2.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 60px 15px;
    border-bottom: none !important;
}

.nosotros img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.nosotros h2 {
    color: #b5dbe8;
    margin-bottom: 20px;
    font-weight: 600;
}

.nosotros h3 {
    color: #cb6868;
    font-weight: 800;
    font-style: italic;
    margin-top: 20px;
}
.nosotros h4 {
    color: #cb6868;
    font-weight: 700; 
    margin-top: 30px; 
    margin-bottom: 15px; 
    display: inline-block; 
    padding-bottom: 5px;
}

#nosotros .container .row .col-md-8 p {
    color: #ffffff;
    line-height: 1.6;
}


#nosotros p {
    color: #ffffff !important;
    line-height: 1.6;
}


#nosotros .contenedor-olas p {
    color: #053f5b !important;
    font-weight: 400;
}

.enfoque-titulo {
    font-size: 18px;
    font-weight: 500;
}

.filosofia-texto {
    font-weight: 500;
    font-style: italic;
}

.mision-vision-texto {
    color: #053f5b !important;
    font-weight: 400;
}

.espacio-extra {
    margin-bottom: 150px !important;
}

/* SECCIÓN SERVICIOS */
#servicios h5 {
    color: #053f5b;
}

.service-card-wrapper {
    position: relative;
    height: 100%;
    transition: transform 0.3s ease;
    padding-top: 60px;
}

.service-card-wrapper:hover {
    transform: translateY(-5px);
}

.icon-floating {
    width: 120px;
    height: 120px;
    background-color: #ceecf4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.icon-floating img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.service-card-body {
    background-color: #fff;
    padding: 70px 30px 30px 30px;
    border-radius: 40px;
    text-align: center;
    height: 100%;
    border: none;
    z-index: 1;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* SECCIÓN DIVULGACIÓN */
#divulgacion {
    
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), 
                url('../img/fondo3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: lighten; /* Integra el gradiente blanco con la cuadrícula */
    width: 100%;
    overflow-x: hidden;
}


.swiper {
    width: 100%;
    padding: 60px 0;
    overflow: hidden; 
}


.swiper-wrapper {
    margin-left: auto;
    margin-right: auto;
}

.card-flip {
    perspective: 1000px;
    height: auto;
    min-height: 450px;
    transition: transform 0.3s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    min-height: 450px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
}

.card-original {
    background-color: #d1ecf4;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow: hidden;
    padding: 0;
}

.card-original img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
}

.card-original p {
    padding: 15px;
    color: #053f5b;
    margin: 0;
}

.card-original .btn-custom {
    margin: 10px auto 20px auto;
    padding: 8px 30px;
    min-width: 120px;
}

.card-back {
    background-color: #d1ecf4;
    color: rgb(0, 0, 0);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
    padding: 20px;
    overflow-y: auto; 
    text-align: left; 
}


.card-back h3 {
    font-size: medium;
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: 700;
    color: #053f5b;
}

.card-back p {
    font-size: medium;
    margin-bottom: 10px;
    line-height: 1.3;
}

/*  SECCIÓN CURSOS */
.course-card {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.list-unstyled li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #555;
}

/* SECCIÓN TESTIMONIOS */


.testimonials-section {
    background-color: #053f5b;
    padding-bottom: 120px !important; 
}

.testimonials-section h5 {
    color: #053f5b;
    font-weight: 700;
    font-size: small;
}

.user-info p {
    color: #ffffff !important;
}

.user-info small {
    color: #ffffff;
}


.testimonial-card p {
    color: #000000 !important;
    font-weight: 400;
    font-size: 0.9rem; 
}

.testimonial-group {
    display: flex;
    flex-direction: column;
    height: 100%; 
    position: relative;
    margin-bottom: 40px;
}

.testimonial-card {
    background-color: #b5dbe8;
    border: 4px solid #cb6868; 
    border-radius: 15px;
    padding: 20px;
    position: relative;
    color: #000000;
    flex-grow: 1; /* Esto hace que todas las tarjetas de una fila crezcan igual */
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -24px; 
    left: 30px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #cb6868;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transform: scale(1.1);
}

.stars {
    color: #c86868;
}

.testimonial-group {
    margin-bottom: 30px;
}

/* Footer */

.footer-custom {
    background-color: #b5dbe8;
    color: #333333; 
    padding-top: 90px;
    padding-bottom: 20px;
}

.footer-custom h5 {
    color: #053f5b !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-custom a,p  {
    color: #333333 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: #000000 !important;
    font-weight: bold;
}

.social-icon {
    width: 30px;
    filter: brightness(0.2); 
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}


.footer-custom hr {
    border-top: 1px solid #212c30;
}

/* MEDIA QUERIES */
@media (max-width: 1100px) {
    .nav-links li a {
        margin: 0 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        background-color: white;
        padding: 20px;
        margin-top: 10px;
        border: 1px solid #eee;
        border-radius: 10px;
    }

    .nav-links {
        background-color: transparent !important;
        flex-direction: column;
        padding: 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }

}

@media (max-width: 768px) {
    .course-img {
        min-height: 250px; 
    }
    .course-card .p-4 {
        padding: 20px !important; 
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        margin-top: 15px;
        background-color: #f8f9fa; 
        padding: 15px;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .swiper {
        padding: 30px 0; 
    }
}


@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex-grow: 0; /* En móviles deja que cada una tome su propio alto */
    }
    
    .testimonial-group {
        margin-bottom: 40px;
    }
}