/* General Body Styling */
body {
    background-color: #f4f9f8; /* Light minty green background */
    color: #333; /* Dark text for readability */
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
}

/***********************************************************************************************/

/*Home for Home*/
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

/* Alternate Background Colors */
.home-section-light-blue {
    background-color: #f0f9ff;
}

.home-section-light-grey {
    background-color: #f5f5f5;
}

.home-section-white {
    background-color: #ffffff;
}

/* Titles and descriptions */
.home-title {
    font-size: 2.5rem;
    color: #0078a8;
    margin-bottom: 20px;
}

.home-description {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    background-color: #0078a8;
    border-color: #0078a8;
    color: white;
    padding: 10px 20px;
}

.btn-primary:hover {
    background-color: #005f86;
}

/*Animation with delay in the direction*/
.fadeInDown, .fadeInUp, .fadeInLeft, .fadeInRight {
    opacity: 0;
    transition: opacity 2s ease, transform 2s ease;
}

.fadeInDown {
    transform: translateY(-50px);
}

.fadeInUp {
    transform: translateY(50px);
}

.fadeInLeft {
    transform: translateX(-50px);
}

.fadeInRight {
    transform: translateX(50px);
}

/* Class when the element go into the screen*/
.visible {
    opacity: 1;
    transform: translateX(0) translateY(0); /* To the original state back */
    transition: opacity 2s ease, transform 2s ease; /* Add 2 secons more */
}

/* Responsive desing */
@media (max-width: 768px) {

    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Solo en pantallas pequeñas */
    }

    nav {
        width: 100%; /* El navbar ocupará el 100% en móviles */
        box-sizing: border-box;
    }

    .container {
        max-width: 100%; /* Evitar desbordamiento en móviles */
    }

    .home-title {
        font-size: 2rem;
    }

    .home-description {
        font-size: 1rem;
    }

    /* Adjust Img in responsive mode */
    .img-fluid {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Space btw. img and text */
    .home-section .col-md-6.order-md-1 {
        padding-left: 20px;
    }
}

/********************************************************************************/

/* Navbar Styling */
.navbar {
    background-color: #0078a8 !important; /* Blue color matching the logo */
}

.navbar-brand {
    color: #ffffff !important; /* White text */
    font-weight: bold;
}

.nav-link {
    color: #ffffff !important; /* White text for nav links */
}

.nav-link:hover {
    color: #dff6ff !important; /* Lighter blue hover effect */
}

.navbar-toggler {
    border-color: #ffffff !important; /* White border for the toggler */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%288, 8, 8, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/****************************************************************************************************/
/* Footer Styling */
.footer-custom {
    background-color: #0078a8; /* Mint green background */
    color: #ffffff; /* White text */
}

.footer-custom a {
    color: #ffffff !important; /* White text for links */
    text-decoration: none; /* Remove underline for links */
}

.footer-custom a:hover {
    color: #dff6ff !important; /* Lighter blue hover effect */
    text-decoration: underline; /* Add underline on hover */
}

/* Section Titles */
h2 {
    color: #0078a8; /* Blue color for section titles */
}

/* Button Styling */
.btn-primary {
    background-color: #26d9b2 !important; /* Mint green background */
    border-color: #26d9b2 !important; /* Matching border */
    color: #ffffff !important; /* White text */
}

.btn-primary:hover {
    background-color: #1ca58d !important; /* Darker mint on hover */
    border-color: #1ca58d !important;
}


form input[type="submit"] {
    background-color: #1ca58d !important; /* Darker mint for the submit button */
    border-color: #1ca58d !important;
    color: #ffffff !important; /* White text */
}

form input[type="submit"]:hover {
    background-color: #16a47a !important; /* Slightly darker on hover */
    border-color: #16a47a !important;
}

/************************************************************************************************************/

/************************************************************************************************************/
/* Team Section Styling */
.team-card {
    background-color: #ffffff; /* White background for contrast */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for 3D effect */
    text-align: center; /* Center text */
    padding: 20px; /* Padding around content */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    height: 100%; /* Ensure cards are of equal height */
}

    .team-card:hover {
        transform: translateY(-10px); /* Slight lift on hover */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
    }

.team-photo {
    border-radius: 50%; /* Circular photos */
    width: 120px; /* Fixed size for uniformity */
    height: 120px; /* Fixed size */
    object-fit: cover; /* Ensure images fit nicely */
    margin-bottom: 15px; /* Space below the image */
}

.team-name {
    font-size: 1.2em; /* Larger font size for name */
    color: #0078a8; /* Primary color to match the theme */
    font-weight: bold; /* Bold text for emphasis */
    margin-bottom: 5px; /* Space below the name */
}

.team-role {
    font-size: 1em; /* Normal font size */
    color: #555; /* Grey color for differentiation */
    margin-bottom: 10px; /* Space below the role */
}

.team-description {
    font-size: 0.9em; /* Smaller font size for description */
    color: #666; /* Lighter grey for readability */
    line-height: 1.5; /* Spacing between lines */
}

/* Styling for 'Ver más' button */
.team-card .btn-primary {
    background-color: #0056b3; /* Match button color with theme */
    border: none;
    margin-top: 15px; /* Space above button */
    transition: background-color 0.3s ease;
}

    .team-card .btn-primary:hover {
        background-color: #004494; /* Darken button on hover */
    }

/************************************************************************************************************/
/* Individual Member Page Styling */
.miembro-equipo img {
    width: 100%;
    max-width: 250px;
    border-radius: 50%;
    margin-bottom: 20px; /* Space below image */
}

.miembro-equipo h1 {
    font-size: 2rem;
    color: #0056b3;
}

.miembro-equipo .cargo {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 10px;
}

.miembro-equipo .biografia {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

/************************************************************************************************************/
/* Responsiveness */
@media (max-width: 768px) {
    /* Ajustes para pantallas medianas y pequeñas */
    .team-card {
        padding: 15px;
    }

    .miembro-equipo h1 {
        font-size: 1.75rem;
    }

    .miembro-equipo .biografia {
        font-size: 0.95rem;
    }

    .team-photo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    /* Ajustes para pantallas muy pequeñas */
    .miembro-equipo h1 {
        font-size: 1.5rem;
    }

    .miembro-equipo img {
        max-width: 200px;
    }
}


/*************************************************************************************************/
/* Navbar Social Icons */
.navbar-nav .nav-link i {
    color: #ffffff; /* White color for the Icons */
    font-size: 1.2em; /* Adjust the size as it needed */
    padding: 0 8px; /* Space around the icon */
}

.navbar-nav .nav-link i:hover {
    color: #dff6ff; /*Smooth color when mouse over the icon*/
}

/* Logo Navbar */
.logo-img {
    height: 40px; /* Adjust height Icon*/
    width: auto; /* Keep the proportion*/
    border-radius: 5px; /* Border with round efect*/
}
/******************************************************************************************************/
/**Testimonio Style**/

#testimonios h2 {
    color: #0078a8; /* Blue color for title*/
    font-weight: bold;
    margin-bottom: 40px;
}

/* Color and style for cards */
#testimonios .card {
    background-color: #f9f9f9; 
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

#testimonios .card:hover {
    transform: translateY(-10px); /* Hover effect on mouseover*/
}

#testimonios .card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

#testimonios .card-text {
    color: #555; /*Softer text color */
}

#testimonios .rounded-circle {
    border: 2px solid #0078a8; /* Blue border for images */
    width: 80px;
    height: 80px;
}

#testimonios .text-muted {
    font-size: 0.875rem;
}

/***************************************************************************************************/

/*Styles for Hover Dropdown and Active Link */
/* Background color for dropdown menu */
.navbar .dropdown-menu {
    background-color: #0078a8; /* Same color as navbar */
}

/* Subitems color */
.navbar .dropdown-item {
    color: white !important; /* White text for subitems */
}

/* Hover effect for dropdown subitems */
.navbar .dropdown-item:hover {
    background-color: #005a7a; /* Darker blue on hover */
    color: white !important; /* Keep white text on hover */
}

/* Keep active subitem highlighted */
.navbar .dropdown-item.active {
    background-color: #005a7a; /* Highlight active item */
    color: white !important; /* White text for active item */
}

/****************************************************************************************/
/*Styles for the Testimonios Page */
/* Background color for the header section */
#testimonios-header {
    background-color: #f0f9ff; /* Light blue background */
    padding: 60px 0;
}

#testimonios-header h2 {
    font-size: 3rem;
}

#testimonios-header p {
    font-size: 1.2rem;
    margin-top: 20px;
}

#testimonios-header img {
    max-width: 100%;
    border-radius: 10px;
}

/* Background color for the list of testimonios */
#testimonios-list {
    background-color: #ffffff;
    padding: 60px 0;
}

/* Testimonio card styling */
#testimonios-list .card {
    transition: transform 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#testimonios-list .card:hover {
    transform: translateY(-10px);
}

#testimonios-list .card-img-top {
    border-radius: 50%;
}

#testimonios-list .card-title {
    font-size: 1.4rem;
}

#testimonios-list .testimonio-text {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit text to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 15px;
}

#testimonios-list .btn {
    background-color: #57B5F6;
    border: none;
    font-size: 1rem;
}

#testimonios-list .btn:hover {
    background-color: #45a3e6;
}

/* Responsive styles */
@media (max-width: 768px) {
    #testimonios-header h2 {
        font-size: 2rem;
    }

    #testimonios-header p {
        font-size: 1rem;
    }
}

/***********************************************************************/
/*Styles for Blog Page*/

.elementor-background-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.fadeInDown, .fadeInLeft {
    animation-duration: 1s;
    animation-fill-mode: both;
    opacity: 0;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effect only for BlogCardHover section */
#BlogCardHover .card {
    transition: transform 0.3s ease;
}

#BlogCardHover .card:hover {
    transform: translateY(-10px); /* Lift effect on hover */
}

/***************************************************************************************/
/*Styles for Test Page*/
/* Background color for the combined sections */
#test-section {
    background-color: #e0f7fa; /* Light blue background */
}

/* Card styling */
#test-section .test-card {
    transition: transform 0.3s ease;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#test-section .test-card:hover {
    transform: translateY(-10px); /* Hover effect for cards */
}

#test-section .test-card-img {
    max-width: 150px;
}

#test-section .test-card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#test-section .test-card-text {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    #test-section .elementor-heading-title {
        font-size: 2rem;
    }
}

/************************************************************************/
/* Background color for the header section */
#ebooks-header {
    background-color: #f0f9ff; /* Light blue background */
    padding: 60px 0;
}

#ebooks-header h2 {
    font-size: 3rem;
}

#ebooks-header p {
    font-size: 1.2rem;
    margin-top: 20px;
}

#ebooks-header img {
    max-width: 100%;
    border-radius: 10px;
}

/* Background color for the list of ebooks */
#ebooks-list {
    background-color: #ffffff;
    padding: 60px 0;
}

/* Ebook card styling */
#ebooks-list .card {
    transition: transform 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#ebooks-list .card:hover {
    transform: translateY(-10px);
}

#ebooks-list .card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#ebooks-list .card-title {
    font-size: 1.4rem;
}

#ebooks-list .card-text {
    font-size: 1rem;
    margin-bottom: 15px;
}

#ebooks-list .btn {
    background-color: #57B5F6;
    border: none;
    font-size: 1rem;
}

#ebooks-list .btn:hover {
    background-color: #45a3e6;
}

/* Responsive styles */
@media (max-width: 768px) {
    #ebooks-header h2 {
        font-size: 2rem;
    }

    #ebooks-header p {
        font-size: 1rem;
    }
}

/*************************************************************************************************/
/*Styles for Quienes Somos Page*/
/* Specific styles for the About Us page */
.quienes-somos-section-light-blue {
    background-color: #f0f9ff;
    padding: 100px 0;
}

.quienes-somos-section-white {
    background-color: #ffffff;
    padding: 15px 0;
}

.quienes-somos-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0078a8; /* Blue color */
}

.quienes-somos-subtitle {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0078a8; 
}

/* Ensuring that all sections have the same minimum height */
.quienes-somos-section {
    min-height: 100vh; /* All sections will have a minimum of 100vh (full window height) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

/* Dark Celestial Section (Our Commitment) */
.quienes-somos-section-dark-blue {
    background-color: #c3e0f9;
}

/*Grey color Section*/
.quienes-somos-section-light-grey {
    background-color: #f5f5f5;
}

/* Diagonal Separator */
.diagonal-separator {
    height: 60px;
    background: linear-gradient(120deg, #c3e0f9 50%, #f5f5f5 50%);
    position: relative;
    z-index: 1;
    margin-top: -1px; /* Slight overlap to eliminate gaps */
}


/* Responsive styling específico para Quienes Somos */
@media (max-width: 768px) {
    .quienes-somos-title {
        font-size: 2rem;
    }

    .quienes-somos-subtitle {
        font-size: 1.5rem;
    }
}
/*********************************************************************************/
/* General Contact Section */
.contact-section {
    background-color: #56C1FF; /* Light blue background */
    padding: 60px 0;
    min-height: 100vh; /* Ensure section covers at least the full screen height */
    display: flex;
    align-items: center; /* Center content vertically */
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Contact Info */
.contact-info {
    color: white;
    flex-basis: 45%;
}

.contact-info h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #d1eaff; /* Light blue when hovered */
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    flex-basis: 45%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    padding: 15px;
    background-color: #56C1FF;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #3DA8E0;
}

@media (max-width: 768px) {
    .contact-container {
        display: flex;
        flex-direction: column-reverse; /* Mostrar el formulario arriba */
    }

    .contact-info, .contact-form {
        width: 100%; /* Asegurar que ambas secciones ocupen todo el ancho */
        margin-bottom: 20px; /* Espaciado entre las secciones */
    }
}

/**********************************************************************/
/* Proyect */
.project-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.project-card img {
    border-radius: 8px 8px 0 0;
}

.project-card .btn-primary {
    background-color: #0078a8;
    border: none;
    transition: background-color 0.3s ease;
}

.project-card .btn-primary:hover {
    background-color: #005f86;
}
/****************************************************************************************/
/* Estilos para las tarjetas de los posts */
.card {
    max-height: 400px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title, .card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.diagonal-separator-2 {
    background-color: #ffffff;
    height: 100px;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    margin-bottom: -1px;
}

/**********************************************************************************************/
/* Styles for the individual member page */