/* General Body and Container Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Vertical layout for header, content, footer */
    overflow-x: hidden; /* Prevent horizontal scroll */
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Page Wrapper for Sidebar and Main Content */
.page-wrapper {
    display: flex; /* Horizontal layout for sidebar and main content */
    flex: 1; /* Takes remaining space between header and footer */
}

/* Top Bar Styling */
.top-bar {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0d47a1; /* Dark blue */
    color: white;
    padding: 19px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000; /* Ensure it's on top */
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 30px; /* Space between title and WhatsApp button */
}

.whatsapp-button {
    background-color: #25d366; /* WhatsApp green */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.search-icon {
    font-size: 1.2em;
    cursor: pointer;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0; /* Start from the very top */
    left: 0;
    width: 250px;
    height: 100vh; /* Full viewport height */
    background-color: #2c3e50; /* Darker blue/gray */
    color: white;
    padding-top: 110px; /* Space for logo and top bar overlap */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1001; /* Higher than top bar to appear on top */
    transition: transform 0.3s ease-in-out; /* For mobile menu animation */
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-logo img {
    width: 80px; /* Adjust as needed */
    height: auto;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.718);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    background-color: #34495e; /* Slightly lighter on hover/active */
}

/* Main Content Styling */
.main-content {
    margin-left: 250px; /* To make space for the sidebar */
    padding-top: 50px; /* To make space for the top bar */
    flex-grow: 1; /* Allows it to take up remaining space */
    width: calc(100% - 250px); /* Ensure proper width calculation */
}

.content-section {
    padding: 40px;
    margin-bottom: 0px;
    background-color: white;
    /* border-radius: 20px; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Inicio Section Specific */
.inicio-section, .inicio-section1, .inicio-section2, .inicio-section3, 
.inicio-section4, .inicio-section5, .inicio-section6, .inicio-section7{
    /* background-image: url('imagenes/portada.bmp');  */
    background-size: cover;
    background-position: center;
    min-height: 500px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0; /* Remove default padding for full image coverage */
    box-shadow: none; /* Remove box shadow for this section */
}

.inicio-section {
    background-image: url('imagenes/portada.jpeg'); /* Your background image */
    
}

.inicio-section1 {
    background-image: url('imagenes/equipo-trabajo.jpeg'); /* Your background image */
    
}

.inicio-section2 {
    background-image: url('imagenes/que-hacemos.jpeg'); /* Your background image */
    
}

.inicio-section3 {
    background-image: url('imagenes/red-institucional.jpg'); /* Your background image */
    
}

.inicio-section4 {
    background-image: url('imagenes/albergues-temporales.png'); /* Your background image */
    
}

.inicio-section5 {
    background-image: url('imagenes/ligadeinteres.jpeg'); /* Your background image */
    
}

.inicio-section6 {
    background-image: url('imagenes/contactanos.jpg'); /* Your background image */
    
}

.inicio-section7 {
    background-image: url('imagenes/bolsa-empleo-bg.jpg'); /* Your background image for Bolsa de Empleo */
    
}

.inicio-section .overlay, .inicio-section1 .overlay, .inicio-section2 .overlay, 
.inicio-section3 .overlay, .inicio-section4 .overlay, .inicio-section5 .overlay, .inicio-section6 .overlay, .inicio-section7 .overlay {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent overlay for text readability */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px;
}

.inicio-section h1, .inicio-section1 h1, .inicio-section2 h1, 
.inicio-section3 h1, .inicio-section4 h1, .inicio-section5 h1, .inicio-section6 h1, .inicio-section7 h1 {
    font-size: 4em;
    margin: 0;
}

.country-flags {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.country-flags img {
    width: 80%; /* Adjust flag size */
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* Welcome Section Specific */
.welcome-section {
    background-color: #f8f9fa;
}

.welcome-content {
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-content h2 {
    color: #0d47a1;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.welcome-content p {
    color: #333;
    line-height: 1.8;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.welcome-content p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #0d47a1;
}

/* Quienes Somos Section Specific */
.quienes-somos-section h2 {
    color: #0d47a1;
    text-align: center;
    margin-bottom: 30px;
}

.quienes-somos-section h3 {
    color: #333;
    text-align: center;
}

.quienes-somos-section h4 {
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

.who-we-are-content p {
    line-height: 1.6;
    margin-bottom: 30px;
}

.mission-vision-values {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.mission-vision-values .card {
    flex-basis: calc(33% - 40px); /* Approx 3 cards per row with gap */
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
     
}

.mission-vision-values .card img {
    width: 100%; /* Adjust icon size */
    height: auto;
    margin-bottom: 15px;
    border-radius: 20%;
}

.mission-vision-values .card h3 {
    color: #0d47a1;
    margin-top: 0;
}

/* Map Section (Cobertura de Atención, Red Institucional) */

.map-section {
    background-color: #ffffff;
    margin-bottom: 0; /* No space between header and map */
    padding: 40px 10%;
}

.map-section1 {
    background-color: #0d47a1;
    margin-bottom: 0; /* No space between header and map */
    padding: 20px;
    color: white;
}

.map-section .map-header {
    background-color: #0d47a1;
    color: white;
    
    border-radius: 8px 8px 0 0;
    margin-bottom: 0; /* No space between header and map */
    padding: 20px 20px;
}

.map-section h2 {
    margin: 0;
    font-size: 1.5em;
    display: inline-block;
}

.map-section span {
    font-size: 0.9em;
    margin-left: 10px;
}

.map-section p {
    font-size: 1.1em;
    margin-top: 5px;
}

.google-map-embed {
    border-radius: 0 0 8px 8px;
    overflow: hidden; /* To apply border-radius to iframe */
}

.google-map-embed iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.map-pin-icon {
    text-align: center;
    margin-bottom: 15px;
}

.map-pin-icon img {
    width: 60px; /* Adjust pin icon size */
    height: auto;
}

/* Calendar Section (Ligas de Interés) */
.calendar-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px 5%;
} 


.calendar-section .calendar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-section .calendar-header button {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #eee;
    cursor: pointer;
}

.calendar-section .calendar-header .calendar-icons {
    margin-left: auto; /* Pushes icons to the right */
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-section .calendar-header select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.google-calendar-embed iframe {
    width: 100%;
    height: 600px;
    border: 0;
}

.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

.calendar-footer img {
    height: 25px; /* Adjust Google Calendar logo size */
    width: auto;
}

/* Footer Styling */
.site-footer {
    
    background-color: #f5f4f3;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 20px;
    padding-left: 270px;
    font-size: 0.9em;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto; /* Pushes footer to bottom */
}

.site-footer p strong{
    font-size: 1.5em;
}

/* Initially hide hamburger icon for larger screens */
.hamburger-menu-icon {
    display: none !important;
}

/* --- Responsive Design (Mobile - Hamburger Menu) --- */

/* Hide sidebar and adjust main content for smaller screens */
@media (max-width: 768px) {


    .whatsapp-button {
    font-size: 12px;
}


    .top-bar-content span {
   font-size: 0.8em;
}

    .inicio-section h1, .inicio-section1 h1, .inicio-section2 h1, 
    .inicio-section3 h1, .inicio-section4 h1, .inicio-section5 h1, .inicio-section6 h1, .inicio-section7 h1 {
    font-size: 2em;
}


    .site-footer {
    padding-left: 0px;
}
    

    .mission-vision-values .card img {
    width: 50%; /* Adjust icon size */
    height: auto;
    
}

    .inicio-section {

    min-height: 300px; /* Adjust as needed */
 
}
    .sidebar {
        transform: translateX(-250px); /* Hide sidebar by default */
        top: 60px; /* Adjust to be below the top bar */
        height: calc(100% - 60px); /* Adjust height */
    }

    .sidebar.open {
        transform: translateX(0); /* Show sidebar when open */
    }

    .main-content {
        margin-left: 0; /* Main content takes full width */
    }

    .top-bar-content {
        padding-left: 0; /* No extra padding for top bar content */
    }

  

    .top-bar {
        justify-content: flex-start; /* Align items to the start */
        gap: 15px;
    }

    /* Add a hamburger icon for mobile */
    .hamburger-menu-icon {
        display:block !important; /* Show hamburger icon */
        font-size: 1.5em;
        cursor: pointer;
        margin-right: 15px;
    }

    .sidebar-logo {
        display: none; /* Hide logo in mobile sidebar */
    }

    .mission-vision-values .card {
        flex-basis: 100%; /* Stack cards vertically on small screens */
    }
}



/* --- Equipo de Trabajo Page Styles --- */

/* Hero Section for Equipo de Trabajo */
.equipo-hero-section {
    background-image: url('path/to/equipo_background.jpg'); /* Background image similar to screenshots */
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.equipo-hero-section .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.equipo-hero-section h1 {
    font-size: 3.5em;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Country Flags Section */
.country-flags-section {
    background-color: white;
    padding: 20px 0;
    margin-bottom: 0;
}

.country-flags-section .country-flags {
    position: static;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
}

.country-flags-section .country-flags img {
    width: 45px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Team Members Section */
.team-members-section {
    padding: 40px;
    background-color: white;
}

.team-member {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.team-member:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.member-avatar {
    flex-shrink: 0;
    margin-right: 30px;
}

.avatar-placeholder {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4 0%, #8e44ad 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-placeholder::before {
    content: '\f007'; /* FontAwesome user icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 60px;
    color: white;
}

.member-info {
    flex: 1;
}

.member-info h2 {
    color: #4285f4;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.member-degree {
    font-weight: bold;
    color: #333;
    margin: 5px 0;
    font-size: 1.1em;
}

.member-title {
    font-weight: bold;
    color: #333;
    margin: 5px 0;
    font-size: 1.1em;
}

.member-specialty {
    color: #666;
    margin: 5px 0;
    font-style: italic;
}

.member-institution {
    color: #666;
    margin: 5px 0;
    font-weight: 600;
}

.member-masters {
    color: #666;
    margin: 5px 0;
    font-weight: bold;
}

.member-description {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
    text-align: justify;
}

.member-experience {
    margin: 15px 0;
    padding-left: 0;
}

.member-experience li {
    color: #555;
    line-height: 1.6;
    margin: 8px 0;
    list-style-type: disc;
    margin-left: 20px;
    text-align: justify;
}

/* Link icon styling */
.member-info h2 .fas.fa-link {
    color: #4285f4;
    font-size: 0.8em;
    margin-left: 10px;
}

/* Responsive adjustments for team page */
@media (max-width: 768px) {
    .equipo-hero-section h1 {
        font-size: 2.5em;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .member-avatar {
        margin-right: 0;
        margin-bottom: 20px;
        align-self: center;
    }
    
    .avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .avatar-placeholder::before {
        font-size: 40px;
    }
    
    .country-flags-section .country-flags {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .country-flags-section .country-flags img {
        width: 35px;
    }
}

/* --- Carousel Styles --- */
.carousel-container {
    margin-bottom: 40px;
    max-width: 548px;
    margin-left: auto;
    margin-right: auto;
}

.carousel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: white;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive carousel */
@media (max-width: 768px) {



.carousel-slide.active {
    opacity: 1;
}

    
    .carousel-btn {
        padding: 10px 15px;
        font-size: 1em;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* --- Servicios Page Styles --- */

/* Hero Section for Servicios */
.servicios-hero-section {
    background-image: url('path/to/servicios_background.jpg'); /* Background image similar to screenshots */
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.servicios-hero-section .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.servicios-hero-section h1 {
    font-size: 3.5em;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Servicios Content */
.servicios-content {
    padding: 40px;
    background-color: white;
}

.servicio-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.servicio-item:last-child {
    margin-bottom: 0;
}

.servicio-image {
    flex-shrink: 0;
    width: 300px;
}

.servicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.servicio-content {
    flex: 1;
}

.servicio-content h2 {
    color: #4285f4;
    font-size: 2em;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.servicio-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.servicio-content p strong {
    color: #333;
    font-weight: bold;
}

.servicio-content ul {
    margin: 15px 0;
    padding-left: 0;
}

.servicio-content ul li {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
    list-style-type: disc;
    margin-left: 20px;
    text-align: justify;
}

/* Responsive adjustments for servicios page */
@media (max-width: 768px) {
    .servicios-hero-section h1 {
        font-size: 2.5em;
    }
    
    .servicio-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .servicio-image {
        width: 100%;
    }
    
    .servicio-image img {
        height: 250px;
    }
    
    .servicios-content {
        padding: 20px;
    }
    
    .servicio-content h2 {
        font-size: 1.5em;
    }
}

/* --- Albergues Temporales Page Styles --- */

/* Hero Section for Albergues Temporales */

.albergues-content {
    flex: 1;
}

.albergues-hero-section {
    background-image: url('path/to/albergues_background.jpg'); /* Background image similar to screenshots */
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.albergues-hero-section .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.albergues-hero-section h1 {
    font-size: 3.5em;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Albergues Content */
.albergues-content {
    padding: 40px;
    background-color: white;
}

.albergues-description {
    margin-bottom: 40px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.albergues-description p {
    color: #333;
    line-height: 1.6;
    font-size: 1.1em;
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
}

.albergues-description ul {
    margin: 15px 0;
    padding-left: 20px;
}

.albergues-description ul li {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
    list-style-type: disc;
    margin-left: 20px;
    text-align: justify;
}

.casas-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.casa-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 0;
}

.casa-icon {
    flex-shrink: 0;
}

.location-pin {
    width: 80px;
    height: 100px;
    background-color: #dc3545; /* Red color like in screenshots */
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* .location-pin::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #dc3545;
} */

.location-pin i {
    color: white;
    font-size: 1.8em;
    transform: rotate(45deg);
}

.casa-info {
    flex: 1;
}

.casa-info h3 {
    color: #333;
    font-size: 1.5em;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.casa-info p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* Responsive adjustments for albergues page */
@media (max-width: 768px) {
    .albergues-hero-section h1 {
        font-size: 2.5em;
    }
    
    .casa-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .casa-icon {
        align-self: center;
    }
    
    .location-pin {
        width: 60px;
        height: 80px;
    }
    
    .location-pin i {
        font-size: 1.4em;
    }
    
    .albergues-content {
        padding: 20px;
    }
    
    .casa-info h3 {
        font-size: 1.3em;
    }
}

/* --- Red Institucional Page Styles --- */

/* Hero Section for Red Institucional */

.red-hero-section {
    background-image: url('path/to/albergues_background.jpg'); /* Background image similar to screenshots */
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.red-hero-section .overlay {
   background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.red-hero-section h1 {
    font-size: 3.5em;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Red Institucional Content */
.red-content {
    padding: 40px;
    background-color: white;
}


.red-description {
   margin-bottom: 40px;
    text-align: center;
}

.red-description p {
      color: #333;
    line-height: 1.6;
    font-size: 1.1em;
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
}




.instituciones-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.institucion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.institucion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.institucion-logo {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.institucion-logo img {
    max-width: 170px;
    max-height: 170px;
    object-fit: contain;
}

.institucion-item h3 {
    color: #333;
    font-size: 1.2em;
    margin: 0;
    font-weight: bold;
    line-height: 1.3;
}

/* Responsive adjustments for red institucional page */
@media (max-width: 768px) {
    .red-hero-section h1 {
        font-size: 2.5em;
    }
    
    .instituciones-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .institucion-logo {
        width: 100px;
        height: 100px;
    }
    
    .institucion-logo img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .red-content {
        padding: 20px;
    }
    
    .institucion-item h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {

        .mission-vision-values .card img {
    width: 90%; /* Adjust icon size */
    height: auto;
    
}

    .instituciones-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- Ligas de Interés Page Styles --- */

/* Hero Section for Ligas de Interés */
.ligas-hero-section {
    background-image: url('path/to/ligas_background.jpg'); /* Background image with migrants */
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.ligas-hero-section .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ligas-hero-section h1 {
    font-size: 3.5em;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Alert Section */
.ligas-alert-section {
    background-color: #2196f3;
    color: white;
    padding: 30px 40px;
    margin-bottom: 0;
}

.alert-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.alert-content h2 {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.alert-content h2 i {
    color: #ffc107;
    margin: 0 10px;
}

.alert-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

/* Ligas Content */
.ligas-content {
    padding: 40px;
    background-color: white;
}

.institucion-card {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.institucion-card:last-child {
    margin-bottom: 0;
}

.institucion-header {
    background-color: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
     display: flex;
    flex-direction: column;
    align-items: center;
}

.institucion-header img {
margin-bottom: 10px;
width: 370px;
max-height: 150px;
}

.institucion-logo-large {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.institucion-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: bold;
}

.institucion-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.visitar-btn {
    display: inline-block;
    background-color: #2196f3;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.visitar-btn:hover {
    background-color: #1976d2;
}

.institucion-info {
    padding: 30px;
}

.institucion-info h3 {
    color: #333;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: bold;
    text-align: center;
}

.institucion-info h4 {
    color: #333;
    font-size: 1.2em;
    margin: 20px 0 15px 0;
    font-weight: bold;
}

.institucion-info p {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
    text-align: justify;
}

.institucion-info p strong {
    color: #333;
    font-weight: bold;
}

/* Responsive adjustments for ligas page */
@media (max-width: 768px) {
    .ligas-hero-section h1 {
        font-size: 2.5em;
    }
    
    .ligas-alert-section {
        padding: 20px;
    }
    
    .alert-content h2 {
        font-size: 1.3em;
    }
    
    .alert-content p {
        font-size: 1em;
    }
    
    .ligas-content {
        padding: 20px;
    }
    
    .institucion-header {
        padding: 20px;
    }
    
    .institucion-logo-large {
        width: 120px;
    }
    
    .institucion-header h2 {
        font-size: 2em;
    }
    
    .institucion-subtitle {
        font-size: 1em;
    }
    
    .institucion-info {
        padding: 20px;
    }
    
    .institucion-info h3 {
        font-size: 1.2em;
    }
    
    .institucion-info h4 {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .ligas-hero-section h1 {
        font-size: 2em;
    }
    
    .alert-content h2 {
        font-size: 1.2em;
    }
    
    .alert-content h2 i {
        margin: 0 5px;
    }
    
    .institucion-header h2 {
        font-size: 1.8em;
    }
    
    .institucion-logo-large {
        width: 100px;
    }
}

/* --- Contáctanos Page Styles --- */

/* Hero Section for Contáctanos */
.contactanos-hero-section {
    background-image: url('path/to/contactanos_background.jpg'); /* Background image with office/call center */
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.contactanos-hero-section .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contactanos-hero-section h1 {
    font-size: 3.5em;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Contáctanos Content */
.contactanos-content {
    padding: 80px 40px;
    background-color: white;
    min-height: 400px;
}

.contact-options {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 60px;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h2 {
    color: #333;
    font-size: 1.5em;
    margin: 0;
    font-weight: bold;
    line-height: 1.3;
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.facebook-link,
.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facebook-link {
    background-color: #1877f2;
    color: white;
}

.whatsapp-link {
    background-color: #25d366;
    color: white;
}

.facebook-link:hover,
.whatsapp-link:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.facebook-link i,
.whatsapp-link i {
    font-size: 3.5em;
}

/* Responsive adjustments for contactanos page */
@media (max-width: 768px) {
    .contactanos-hero-section h1 {
        font-size: 2.5em;
    }
    
    .contactanos-content {
        padding: 60px 20px;
    }
    
    .contact-options {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info h2 {
        font-size: 1.3em;
    }
    
    .facebook-link,
    .whatsapp-link {
        width: 100px;
        height: 100px;
    }
    
    .facebook-link i,
    .whatsapp-link i {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .contactanos-hero-section h1 {
        font-size: 2em;
    }
    
    .contact-info h2 {
        font-size: 1.2em;
    }
    
    .facebook-link,
    .whatsapp-link {
        width: 80px;
        height: 80px;
    }
    
    .facebook-link i,
    .whatsapp-link i {
        font-size: 2.5em;
    }
}

/* --- Bolsa de Empleo Page Styles --- */

/* Bolsa de Empleo Content */
.bolsa-empleo-section {
    background-color: white;
    padding: 40px;
}

.bolsa-empleo-content {
    max-width: 1000px;
    margin: 0 auto;
}

.bolsa-header {
    text-align: center;
    margin-bottom: 40px;
}

.bolsa-header h1 {
    color: #0d47a1;
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
}

.finalidad-section {
    margin-bottom: 40px;
}

.finalidad-section h2 {
    color: #0d47a1;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.finalidad-section p {
    color: #333;
    line-height: 1.6;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.importante-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0d47a1;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.importante-box h3 {
    color: #0d47a1;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.importante-box h3 i {
    margin-right: 10px;
}

.importante-box p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.importante-box p:last-child {
    margin-bottom: 0;
}

.bolsa-image-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
}

.bolsa-process-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.registro-section {
    background-color: #f0f8ff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #0d47a1;
}

.registro-box {
    text-align: center;
}

.registro-box h3 {
    color: #0d47a1;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.registro-box h3 i {
    margin-right: 10px;
}

.registro-box p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.registrate-btn {
    background-color: #ffc107;
    color: #333;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    text-transform: uppercase;
}

.registrate-btn:hover:not(:disabled) {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.registrate-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.privacy-checkbox {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-checkbox label {
    color: #333;
    font-size: 1em;
    cursor: pointer;
}

.privacy-checkbox a {
    color: #0d47a1;
    text-decoration: underline;
    font-weight: bold;
}

.privacy-checkbox a:hover {
    color: #1976d2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background-color: #0d47a1;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0d47a1;
    box-shadow: 0 0 5px rgba(13, 71, 161, 0.3);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel,
.btn-submit {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.btn-submit {
    background-color: #0d47a1;
    color: white;
}

.btn-submit:hover {
    background-color: #1976d2;
}

/* Privacy Modal Specific Styles */
.privacy-modal {
    max-width: 800px;
}

.privacy-content {
    line-height: 1.6;
}

.privacy-content h3 {
    color: #0d47a1;
    font-size: 1.2em;
    font-weight: bold;
    margin: 25px 0 15px 0;
}

.privacy-content p {
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

.privacy-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-content ul li {
    color: #555;
    margin: 8px 0;
    line-height: 1.6;
}

/* Success/Error Messages */
.message {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: bold;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments for Bolsa de Empleo */
@media (max-width: 768px) {
    .inicio-section7 h1 {
        font-size: 2em;
    }
    
    .bolsa-empleo-section {
        padding: 20px;
    }
    
    .bolsa-header h1 {
        font-size: 2em;
    }
    
    .finalidad-section h2 {
        font-size: 1.5em;
    }
    
    .registro-section {
        padding: 20px;
    }
    
    .registrate-btn {
        font-size: 1em;
        padding: 12px 25px;
    }
    
    .privacy-checkbox {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bolsa-header h1 {
        font-size: 1.8em;
    }
    
    .finalidad-section h2 {
        font-size: 1.3em;
    }
    
    .importante-box {
        padding: 15px;
    }
    
    .registro-section {
        padding: 15px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3em;
    }
    
    .modal-body {
        padding: 15px;
    }
}
