body {
    font-family: 'Inter', sans-serif;
    /* Apply Inter font to the whole body */
}

.rolling-ball {
    animation: roll 1s linear infinite;
    transform-origin: center;
    display: inline-block;
}

.rolling-ball-small {
    animation: roll 1s linear infinite;
    transform-origin: center;
    display: inline-block;
    font-size: 1.2rem;
}

@keyframes roll {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading Overlay Styles */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0056B3;
    /* Matching navbar/footer blue */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-in-out;
    /* Smooth fade-out */
}

/* Main Content Wrapper for fade-in effect */
#mainContentWrapper {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Smooth fade-in */
}

/* Custom styles for the navbar */
.custom-navbar {
    background-color: #0056B3 !important;
    /* Specific blue background matching the image */
    padding-top: 1.5rem;
    /* Further increased padding for a larger navbar */
    padding-bottom: 1.5rem;
    /* Further increased padding for a larger navbar */
    position: sticky;
    /* Make navbar sticky */
    top: 0;
    /* Stick to the top */
    z-index: 1020;
    /* Ensure it stays above other content */
}

/* Styling for the navbar brand (logo and text) */
.navbar-brand img {
    filter: brightness(0) invert(1);
    /* Makes the logo white */
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    /* Make brand slightly larger */
}

/* Styling for navigation links */
.navbar-nav .nav-link {
    color: white !important;
    font-weight: bold;
    padding-left: 1.5rem;
    /* More padding for links */
    padding-right: 1.5rem;
    /* More padding for links */
    font-size: 1.2rem;
    /* Make links slightly larger */
}

/* Hover and active states for navigation links */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    /* Light transparent background on hover/active */
    border-radius: 0.25rem;
}

/* Centering the navigation items for larger screens */
@media (min-width: 992px) {

    /* Applies to 'lg' breakpoint (Bootstrap's large breakpoint) and up */
    .navbar-collapse {
        flex-grow: 1;
        /* Allow collapse content to grow */
        justify-content: space-between;
        /* Distribute items with space between */
    }

    .navbar-collapse .navbar-nav:first-child {
        margin-left: auto;
        /* Push first nav-group to center */
    }

    .navbar-collapse .navbar-nav:last-child {
        margin-right: 0;
        /* Ensure last nav-group is at the very right */
    }
}

/* Custom styling for the Modal menu (mobile hamburger menu) */
/* Bootstrap handles most modal styling, but we ensure colors match */
.modal-content {
    background-color: #0056B3;
    /* Ensure consistent blue background for modal */
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Separator line in header */
}

.modal-title {
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Styling for links within the Modal menu */
.modal-body .nav-link {
    color: white !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Hover and active states for Modal links */
.modal-body .nav-link:hover,
.modal-body .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
}

/* Styling for the close button in the Modal menu */
.modal-header .btn-close {
    filter: brightness(0) invert(1);
    /* Makes the close button white */
}

/* Carousel Custom Styles */
.carousel-item {
    height: 600px;
    /* Fixed height for the carousel items */
    background-size: cover;
    /* Cover the entire area */
    background-position: center;
    /* Center the background image */
    position: relative;
    /* Essential for positioning children */
    color: white;
    /* Default text color for the item */
}

/* Transparent overlay for text readability */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    /* Increased opacity for better contrast */
    z-index: 0;
    /* Place overlay behind the caption */
}

/* Styling for the carousel caption content */
.carousel-caption {
    position: absolute;
    /* Keep Bootstrap's absolute positioning */
    top: 0;
    /* Align to top */
    bottom: 0;
    /* Align to bottom */
    left: 0;
    /* Align to left */
    right: 0;
    /* Align to right */
    padding: 20px;
    /* Add padding inside the caption area */
    display: flex;
    /* Make it a flex container to center content */
    flex-direction: column;
    /* Stack children vertically */
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    text-align: center;
    /* Ensure text is centered */
    z-index: 1;
    /* Ensure text is above the overlay */
}

.carousel-caption h5 {
    font-size: 3.5rem;
    /* Even larger heading for impact */
    font-weight: 800;
    /* Extra bold */
    margin-bottom: 1.5rem;
    /* More space below heading */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    /* Stronger text shadow */
    line-height: 1.2;
    /* Adjust line height for better readability */
}

.carousel-caption p {
    font-size: 1.5rem;
    /* Larger paragraph text */
    max-width: 900px;
    /* Wider text area */
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Stronger text shadow */
    line-height: 1.5;
    /* Adjust line height */
}

/* Responsive adjustments for carousel text */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
        /* Smaller height for mobile */
    }

    .carousel-caption h5 {
        font-size: 2.2rem;
        /* Adjusted for smaller screens */
        margin-bottom: 1rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
        /* Adjusted for smaller screens */
        max-width: 90%;
    }
}

/* Disciplines Section Styles */
.disciplines-section {
    padding: 60px 0;
    background-color: #e6ffe6;
    /* Light green background similar to the image */
    text-align: center;
}

.disciplines-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056B3;
    /* Blue color for heading */
    margin-bottom: 15px;
    position: relative;
    /* For underline positioning */
    display: inline-block;
    /* To make underline fit text width */
}

.disciplines-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    /* Position below text */
    width: 80px;
    /* Width of the underline */
    height: 4px;
    /* Thickness of the underline */
    background-color: #4CAF50;
    /* Green underline color */
    border-radius: 2px;
}

.disciplines-section .lead {
    font-size: 1.3rem;
    color: #495057;
    /* Darker gray for subheading */
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.discipline-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    /* White background for cards */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem;
    /* Padding inside the card */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align content to top */
    align-items: center;
    /* Center content horizontally */
    text-align: center;
    /* Center text within card */
    max-width: 350px;
    /* Set a max-width for the card */
    margin-left: auto;
    /* Center the card horizontally within its column */
    margin-right: auto;
    /* Center the card horizontally within its column */
    height: 100%;
    /* Ensure cards fill the height of their column */
}

.discipline-card:hover {
    transform: translateY(-10px);
}

.discipline-card .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0056B3;
    /* Blue color for card titles */
}

.discipline-card .card-text {
    font-size: 1.0rem;
    color: #495057;
    line-height: 1.4;
    /* Improve text readability */
}

/* Courses Section Styles */
.courses-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    /* Light background for the section, similar to the image */
}

.courses-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056B3;
    /* Blue color for heading, matches image */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
    /* Ensure heading is centered within container-fluid */
}

.courses-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
    /* Green underline color, matches image */
    border-radius: 2px;
}

.courses-section .lead {
    font-size: 1.3rem;
    color: #495057;
    /* Darker gray for subheading */
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.course-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    /* White background for cards */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem;
    /* Padding inside the card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute content and push button to bottom */
    align-items: flex-start;
    /* Align content to left, like in the image */
    text-align: left;
    /* Align text to left */
    max-width: 350px;
    /* Set a max-width for the card */
    margin-left: auto;
    /* Center the card horizontally within its column */
    margin-right: auto;
    /* Center the card horizontally within its column */
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-card .card-title {
    font-size: 1.5rem;
    /* Smaller title to fit, matching image */
    font-weight: 700;
    color: #0056B3;
    /* Blue color for card titles */
    margin-bottom: 10px;
}

.course-card .card-text {
    font-size: 1rem;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 15px;
}

.course-card .card-spots {
    font-size: 0.9rem;
    font-weight: bold;
    color: #28a745;
    /* Green color for available spots */
    margin-top: auto;
    /* Push spots to bottom if text is short */
    margin-bottom: 15px;
}

.course-btn {
    background-color: #28a745 !important;
    /* Green button color */
    border-color: #28a745 !important;
    color: white !important;
    font-weight: bold;
    border-radius: 8px;
    /* Rounded button */
    padding: 10px 20px;
    width: 100%;
    /* Button full width within card */
    text-transform: uppercase;
}

/* Styles for the "Todos los Cursos" button */
.all-courses-btn-container {
    display: flex;
    justify-content: center;
    /* Centrado horizontal */
    align-items: center;
    
}

.all-courses-btn {
    background-color: #0056B3 !important;
    /* Blue background matching navbar */
    border-color: #0056B3 !important;
    color: white !important;
    font-weight: bold;
    border-radius: 8px;
    padding: 15px 30px;
    /* Larger padding for a more prominent button */
    font-size: 1.2rem;
    /* Larger font size */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.all-courses-btn:hover {
    background-color: #003F80 !important;
    /* Darker blue on hover */
    transform: translateY(-3px);
    /* Slight lift effect on hover */
}

/* Motivational Section Styles */
.motivational-section {
    background-color: #0056B3;
    /* Blue background matching the image */
    padding: 80px 20px;
    /* Ample padding for content */
    text-align: center;
    color: white;
    /* White text */
}

.motivational-section h2 {
    font-size: 3.5rem;
    /* Large and bold title */
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    /* To center the underline */
}

.motivational-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    /* Position below text */
    width: 100px;
    /* Width of the underline */
    height: 5px;
    /* Thickness of the underline */
    background-color: #4CAF50;
    /* Green underline color */
    border-radius: 3px;
}

.motivational-section p {
    font-size: 1.4rem;
    /* Subtitle font size */
    max-width: 900px;
    /* Limit width for readability */
    margin: 0 auto;
    /* Center the paragraph */
    line-height: 1.6;
}

/* Responsive adjustments for motivational section */
@media (max-width: 768px) {
    .motivational-section {
        padding: 50px 15px;
        /* Adjust padding for smaller screens */
    }

    .motivational-section h2 {
        font-size: 2.5rem;
        /* Smaller title for mobile */
        margin-bottom: 20px;
    }

    .motivational-section h2::after {
        bottom: -10px;
        width: 80px;
        height: 4px;
    }

    .motivational-section p {
        font-size: 1.1rem;
        /* Smaller paragraph for mobile */
        max-width: 90%;
    }
}

/* Sports Fields Section Styles */
.fields-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    /* Light gray background */
    text-align: center;
}

.fields-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056B3;
    /* Blue color for heading */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
    /* Ensure heading is centered within container-fluid */
}

.fields-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
    /* Green underline color */
    border-radius: 2px;
}

.fields-section .lead {
    font-size: 1.3rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.field-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Align text inside card to left */
    margin-left: auto;
    /* Centrar la tarjeta en su columna */
    margin-right: auto;
    /* Centrar la tarjeta en su columna */
    max-width: 350px;
    /* Adjusted max-width for better visual appeal */
    height: 100%;
    /* Ensure cards fill height of their column */
}

.field-card:hover {
    transform: translateY(-10px);
}

.field-card img {
    width: 100%;
    height: 200px;
    /* Fixed height for images */
    object-fit: cover;
    /* Cover the area, crop if necessary */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    cursor: pointer;
    /* Indicate it's clickable */
}

.field-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Allow content to grow and push button to bottom */
}

.field-card .card-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0056B3;
    margin-bottom: 10px;
}

.field-card .card-text {
    font-size: 1rem;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
    /* Allow text to grow and push price/button down */
}

.field-card .card-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    /* Green color for price */
    margin-top: auto;
    /* Push price to bottom */
    margin-bottom: 15px;
}

.location-btn {
    background-color: #0056B3 !important;
    /* Blue button */
    border-color: #0056B3 !important;
    color: white !important;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 20px;
    width: 100%;
    text-transform: uppercase;
}

.reserve-btn {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 20px;
    width: 100%;
    text-transform: uppercase;
    margin-top: 10px;
    /* Space above the reserve button */
}

/* Event Section Styles - Reusing .disciplines-section for background */
.event-section {
    padding: 60px 0;
    background-color: #e6ffe6;
    /* Light green background similar to the disciplines section */
    text-align: center;
}

.event-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056B3;
    /* Blue color for heading */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.event-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
    /* Green underline color */
    border-radius: 2px;
}

.event-section .lead {
    font-size: 1.3rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.event-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Align card content to the left */
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.event-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    /* Allows the body to grow and push details to bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align content to the top */
}

.event-card .card-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0056B3;
    margin-bottom: 10px;
    text-align: left;
}

.event-card .card-info {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #495057;
    margin-bottom: 8px;
    text-align: left;
}

.event-card .card-info i {
    margin-right: 8px;
    color: #28a745;
    /* Green color for icons */
}

.event-card .event-details {
    font-size: 1rem;
    color: #495057;
    line-height: 1.4;
    margin-top: 15px;
    /* Space above details */
    text-align: left;
    margin-bottom: 15px;
    /* Space before the button */
    flex-grow: 1;
    /* Allow details to grow and push button down */
}

.event-details-btn {
    background-color: #0056B3 !important;
    /* Blue button */
    border-color: #0056B3 !important;
    color: white !important;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 20px;
    width: 100%;
    text-transform: uppercase;
    margin-top: auto;
    /* Push button to the bottom */
}

/* Memories Section Styles */
.memories-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    /* Light background similar to the image */
    text-align: center;
}

.memories-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056B3;
    /* Blue color for heading */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.memories-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
    /* Green underline color */
    border-radius: 2px;
}

.memories-section .lead {
    font-size: 1.3rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.memory-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    position: relative;
    /* For positioning overlay */
    cursor: pointer;
    height: 250px;
    /* Increased uniform height for all memory cards */
}

.memory-card:hover {
    transform: translateY(-10px);
}

.memory-card img {
    width: 100%;
    height: 100%;
    /* Image fills the fixed height of the card */
    object-fit: cover;
    border-radius: 15px;
    /* Apply rounded corners to the image as well */
    transition: filter 0.3s ease;
}

.memory-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    border-radius: 15px;
    /* Match card border-radius */
}

.memory-card:hover .card-overlay {
    opacity: 1;
    /* Visible on hover */
}

.memory-card .card-overlay h5 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0 15px;
    /* Add padding to prevent text from touching edges */
}

.memory-card .card-overlay p {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 15px;
    /* Add padding to prevent text from touching edges */
}

/* Modal specific styles */
#imageModal .modal-content {
    background-color: white;
    /* Changed to white for better readability of text */
    color: black;
    /* Ensure text is black on white background */
}

#imageModal .modal-header .btn-close {
    filter: none;
    /* Reset filter for close button in white modal */
}

.modal-body .modal-image-info {
    color: black;
    text-align: center;
    margin-top: 15px;
}

.modal-body .modal-image-info h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-body .modal-image-info p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer Styles */
.main-footer {
    background-color: #0056B3;
    /* Blue background matching the image */
    color: white;
    padding: 50px 0 20px;
    /* Top padding 50px, bottom 20px for copyright */
    font-size: 0.95rem;
}

.main-footer h5 {
    color: white;
    font-weight: bold;
    margin-bottom: 25px;
    /* More space below heading */
    font-size: 1.3rem;
    /* Larger heading for footer sections */
}

.main-footer p {
    color: rgba(255, 255, 255, 0.85);
    /* Slightly transparent white for body text */
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

.main-footer ul li {
    margin-bottom: 12px;
    /* Space between list items */
}

.main-footer ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer ul li a:hover {
    color: white;
    text-decoration: underline;
}

.main-footer .contact-info div {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    /* Space between contact items */
}

.main-footer .contact-info i {
    color: #4CAF50;
    /* Green color for icons */
    margin-right: 15px;
    /* More space for icons */
    font-size: 1.2rem;
    /* Larger icons */
}

.main-footer .social-icons a {
    color: white;
    font-size: 1.5rem;
    /* Larger social icons */
    margin-right: 20px;
    /* Space between social icons */
    transition: color 0.3s ease;
    /* Smooth transition for color change */
}

/* Hover colors for social media icons */
.main-footer .social-icons a.fa-facebook-f:hover {
    color: #3b5998;
    /* Facebook blue */
}

.main-footer .social-icons a.fa-twitter:hover {
    color: #1DA1F2;
    /* Twitter blue */
}

.main-footer .social-icons a.fa-instagram:hover {
    color: #E1306C;
    /* Instagram reddish-pink */
}

.main-footer .social-icons a.fa-youtube:hover {
    color: #FF0000;
    /* YouTube red */
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Thin white separator line */
    padding-top: 20px;
    margin-top: 30px;
    /* Space above the line */
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    /* Lighter copyright text */
    font-size: 0.9rem;
}

/* Responsive adjustments for footer */
@media (max-width: 767.98px) {
    .main-footer {
        padding: 40px 15px 20px;
    }

    .main-footer .col-md-4 {
        margin-bottom: 30px;
        /* Space between columns on smaller screens */
    }

    .main-footer .col-md-4:last-child {
        margin-bottom: 0;
    }

    .main-footer h5 {
        text-align: center;
        margin-bottom: 15px;
    }

    .main-footer p,
    .main-footer ul,
    .main-footer .contact-info {
        text-align: center;
    }

    .main-footer .contact-info div {
        justify-content: center;
    }

    .main-footer .social-icons {
        text-align: center;
        margin-top: 20px;
    }
}

/* Course Filter Section Styles */
.course-filter-section {
    padding: 60px 0;
    background-color: #e6ffe6;
    text-align: center;
}

.course-filter-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056B3;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.course-filter-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
    border-radius: 2px;
}

.course-filter-section .lead {
    font-size: 1.3rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.filter-buttons .btn {
    background-color: #0056B3;
    color: white;
    border: 1px solid #0056B3;
    border-radius: 20px;
    padding: 8px 20px;
    margin: 5px;
    transition: all 0.3s ease;
}

.filter-buttons .btn:hover,
.filter-buttons .btn.active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

/* Course Item Transition Styles for Filtering */
.course-item {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.course-item.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    /* Disable interactions when hidden */
}


/* Formulario de Inscripción Styles */
.registration-form-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.registration-form-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056B3;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.registration-form-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
    border-radius: 2px;
}

.registration-form-section .lead {
    font-size: 1.3rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.registration-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.registration-form .form-label {
    font-weight: bold;
    color: #495057;
}

.registration-form .form-control,
.registration-form .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
}

.registration-form .btn-submit {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 1.1rem;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.registration-form .btn-submit:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
    display: none;
    /* Hidden by default */
}

/* Scroll Reveal Effect Styles */
.scroll-reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    /* Start slightly below */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* Smooth transition */
}

.scroll-reveal-visible {
    opacity: 1;
    transform: translateY(0);
    /* Move to original position */
}


.curso-card {
    border: 1.5px solid #0d6efd;
    /* azul Bootstrap primario */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.15);
    /* sombra azul suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
}

.curso-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.curso-card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

.curso-card .card-text {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 0.5rem;
}

.curso-card .card-text strong {
    color: #333;
}

.curso-card .estado-activo {
    color: #28a745;
    /* verde */
    font-weight: 600;
}

.curso-card .estado-inactivo {
    color: #dc3545;
    /* rojo */
    font-weight: 600;
}

/* Para que la tarjeta tome todo el alto de la columna padre */
.curso-card-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Responsive: ajusta el ancho y separación */
@media (min-width: 576px) {
    .curso-card-container {
        padding: 0.5rem;
    }
}

.consulta-cursos-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0056B3;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.consulta-cursos-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
    border-radius: 2px;
}