@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #081b29;
    --secongbg-color: #112e42;
    --text-color:#ededed;
    --main-color: #00abf0;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    background: #003049;
    scroll-behavior: smooth;
}

.sticky-header {
    position: fixed; /* Change from sticky to fixed */
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: #212f3c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-bar {
    background-color: #b57a2a;
    z-index: 1035;
}

.social-media-icons a {
    font-size: 18px;
    text-decoration: none;
}

.main-nav {
    background-color: #212f3c;
}

.logo-img {
    height: 100px;
}

.nav-link {
    font-size: 16px;
    font-weight: bold;
    margin: 0 15px;
}

.menu-toggle {
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #212f3c;
    transition: left 0.3s;
    padding-top: 60px;
    z-index: 1040;
}

.sidebar .nav-link {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    background-color: #3b414d;
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}
@media (max-width: 520px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        display: flex;
        flex-direction: column;
    }

    .home-sci {
        width: 160px;
    }

    .home-sci a {
        width: 38px;
        height: 38px;
    }

    .sidebar {
        font-size: 10rem;
    }
}

/* Content */

/* Base styles */

.banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0 100px;
}

.gallery-text {
    background: url(/fondo3.png);
    background-size: cover;
}

.gallery-text h3{
    padding-top: 1rem;
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: white;
    
}

@media (max-width: 768px) {

    .gallery-text h3 {
        font-size: 3.5rem;
    }

    .gallery-text span {
        font-size: 1.5rem;
    }
}

.gallery-text span {
    color: #b57a2a;
    padding-top: 1rem;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.img-gallery {
    
    width: 80%;
    margin: 100px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    color: var(--main-color);
    background: url(/fondo3.png);
    background-size: cover;
}

.img-gallery img {
    width: 100%;
    cursor: pointer;
    transition: 1s ease;
}

.img-gallery img:hover {
    transform: scale(0.8);
    box-shadow: 0 32px 75px rgba(68, 77, 136, 0.2);
}



.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Adjust column width */
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-top: 125%; /* Adjust aspect ratio to make items longer */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333; /* Background color for visibility */
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.description {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    max-width: 90%;
    box-sizing: border-box;
}

.description:hover {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    max-width: 90%;
    box-sizing: border-box;
}

.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-size: 1.2rem;
    max-width: 90%;
    box-sizing: border-box;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}


/* Content */

.slider-container2 {
    overflow: hidden;
    position: relative;
    font-size: 1.3rem;
    font-weight: 23rem;
}

.slider2 {
    display: flex;
    animation: slide 60s infinite; /* Adjust timing as needed */
}

.slide2 {
    color: #081b29;
    flex: 0 0 100%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    background: #eda43d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.5rem; /* Adjust based on your design */
}


@keyframes slide {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-200%);
    }
    75% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(-400%);
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--secongbg-color);
}

.footer-text p {
    font-size: 1.3rem;
    color: white;
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
    text-decoration: none;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secongbg-color);
    z-index: -1;
    transition: .5s;
    
}

.footer-iconTop a:hover::before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

::-webkit-scrollbar{
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}
::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

/* css slider */

.img-gallery {
    
    width: 80%;
    margin: 100px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    color: var(--main-color);
    background: url(/fondo3.png);
    background-size: cover;
}

.img-gallery img {
    width: 100%;
    cursor: pointer;
    transition: 1s ease;
}

.img-gallery img:hover {
    transform: scale(0.8);
    box-shadow: 0 32px 75px rgba(68, 77, 136, 0.2);
}



.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Adjust column width */
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-top: 125%; /* Adjust aspect ratio to make items longer */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333; /* Background color for visibility */
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.description {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    max-width: 90%;
    box-sizing: border-box;
}

.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-size: 1.2rem;
    max-width: 90%;
    box-sizing: border-box;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Modal styles */
/* Modal styles */
.modal {
    display: none; /* Ensure the modal is hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 5rem;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Modal width */
    max-height: 90vh; /* Prevent the modal from being too tall */
    box-sizing: border-box;
    display: flex;
    flex-direction: row; /* Align children in a row by default */
    align-items: center;
    position: relative;
    max-width: 1200px; /* Optional: limit max width */
}

.modal-text {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    max-width: 50%;
}

.modal-image {
    flex: 1;
    display: flex;
    justify-content: center; /* Center image horizontally */
}

.modal-image img {
    max-width: 100%;
    height: auto;
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .modal-content {
        flex-direction: column; /* Stack text and image vertically */
    }

    .modal-text,
    .modal-image {
        max-width: 100%; /* Full width for mobile screens */
    }
    
    .modal-text {
        order: 1; /* Text appears first */
    }
    
    .modal-image {
        order: 2; /* Image appears second */
        margin-top: 20px; /* Space between text and image */
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%; /* Adjust width for tablets and smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 95%; /* Adjust width for mobile screens */
    }

    .modal-text,
    .modal-image {
        padding: 10px; /* Reduce padding for smaller screens */
    }
}

.banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url(/1.1.png) no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: 0.5s;
}

.banner::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.content {
    position: relative;
    max-width: 550px;
    display: none;
    visibility: hidden;
    transform: scale(0);
    transition: 0.5s;
}

.content.active {
    display: block;
    visibility: visible;
    transform: scale(1);
    transition: 0.5s;
}

.banner-title {
    max-width: 250px;
}

.banner .content h4 {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 30px;
}

.banner .content h4 span {
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.banner .content h4 span:first-child {
    padding-left: 0;
}

.banner .content h4 span:last-child {
    border-right: none;
}

.banner .content h4 span i {
    background: var(--main-color);
    color: #fff;
    padding: 0 8px;
    display: inline;
}

.banner .content p {
    font-size: 1em;
    font-weight: 300;
    line-height: 1.5em;
    color: #fff;
    margin: 10px 0 20px;
}

.banner .content .button {
    position: relative;
}

.banner .content .button a {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    background: var(--main-color);
    color: #fff;
    padding: 6px 20px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.5s;
    cursor: pointer;
    border-radius: 10px;
}

.banner .content .button a:nth-child(2) {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner .content .button a:hover:nth-child(2) {
    background: var(--main-color);
}

.banner .carousel-box .carousel-item {
    position: relative;
    min-width: 950px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 10px;
}

.carousel .carousel-item {
    width: 250px;
    cursor: pointer;
}

.directores {
    position: absolute;
    bottom: 50px;
    left: 100px;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 1.2rem;
    cursor: pointer !important;
    transition: 0.3s;
}

.directores:hover {
    color: var(--main-color);
}

.sci {
    position: absolute;
    bottom: 50px;
    right: 100px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.sci a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 25px;
    transition: .3s;
    cursor: pointer;
}

.sci a:hover {
    color: var(--main-color);
}

@media (max-width: 1024px) {
    .banner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px; /* Add padding to prevent content from touching edges */
    }

    .banner .content {
        max-width: 90vw; /* Ensure content fits within the viewport */
        padding: 0 10px; /* Add padding for better spacing */
        box-sizing: border-box;
    }

    .banner .content h4 {
        font-size: 1.2rem; /* Adjust font size for small screens */
        line-height: 1.4; /* Adjust line height for readability */
    }

    .banner .content p {
        font-size: 1rem; /* Adjust font size for small screens */
        line-height: 1.5; /* Adjust line height for readability */
    }

    .banner .content .button {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px; /* Add margin to separate buttons from text */
    }

    .banner .content .button a {
        margin: 5px 0; /* Adjust margin for better spacing */
    }

    .banner .carousel-box {
        display: none; /* Hide carousel box on small screens */
    }

    .banner .content p {
        display: none; /* Hide paragraph on small screens */
    }

    .banner .carousel-box .carousel-item {
        display: none; /* Hide carousel items on small screens */
    }
}

@media (max-width: 1024px) {
    .banner-inverted {
        display: flex;
        
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }

    .banner-inverted .content-inverted {
        max-width: 90vw;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .banner-inverted .content-inverted h4 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .banner-inverted .content-inverted p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .banner-inverted .content-inverted .button-inverted {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .banner-inverted .content-inverted .button-inverted a {
        margin: 5px 0;
    }

    .carousel-box-inverted {
        display: none;
    }
}

.count-down{
    display: flex;
    gap: 15px;
    padding: 10px 0;
}

.count-down .box {
    padding: 5px;
    background: #fff;
    border: 1px solid var(--bg-color);
    border-radius: 10px;
    text-align: center;
    flex:1 1 20px;
}

.count-down .box h3 {
    font-size: 50px;
    color: #333;
}

.count-down .box span {
    color: var(--secongbg-color);
    font-size: 20px;
}

@media(max-width:500px) {
    .count-down {
        gap: 5px;
    }
    .count-down .box h3 {
        font-size: 30px;
    }
    .count-down .box span {
        font-size: 15px;
    }
}


.date {
    margin-bottom: 20px;
    color: #fff;
}

.countdown {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.time-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.time-box span {
    font-size: 2.5rem;
    display: block;
    color: #333;
}

.time-box small {
    font-size: 1rem;
    color: #555;
}

@media (max-width: 600px) {
    .count-down {
        gap: 5px;
    }
    .count-down .box h3 {
        font-size: 30px;
    }
    .count-down .box span {
        font-size: 15px;
    }
}

/* For large laptops */
@media (min-width: 1025px) and (max-width: 1440px) {
    .banner {
        padding: 10rem 2rem; /* Adjust horizontal padding and add top padding for large laptops */
        flex-direction: column;
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center content horizontally */
        
    }

    .banner .content {
        max-width: 90vw; /* Ensure content fits within the viewport */
        padding: 0 10px; /* Add padding for better spacing */
        box-sizing: border-box;
        justify-content: center;
    }

    .banner .content h4 {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
        line-height: 1.4; /* Adjust line height for readability */
    }

    .banner .content p {
        font-size: 1rem; /* Adjust font size for smaller screens */
        line-height: 1.5; /* Adjust line height for readability */
    }

    .banner .content .button {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px; /* Add margin to separate buttons from text */
    }

    .banner .content .button a {
        margin: 5px 0; /* Adjust margin for better spacing */
    }

    .banner .carousel-box .carousel-item {
        display: none; /* Hide the largest image on large laptops and down */
    }

    .banner .banner-title {
        display: block; /* Ensure the small image remains visible */
    }

    .directores {
        display: none; /* Hide Directores button on larger laptop screens */
    }
}

/* For small laptops and devices */
@media (max-width: 1024px) {
    .banner {
        padding: 10rem 2rem;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center content horizontally */
    }

    .banner .content {
        max-width: 90vw; /* Ensure content fits within the viewport */
        padding: 0 10px; /* Add padding for better spacing */
        box-sizing: border-box;
    }

    .banner .content h4 {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
        line-height: 1.4; /* Adjust line height for readability */
    }

    .banner .content p {
        font-size: 1rem; /* Adjust font size for smaller screens */
        line-height: 1.5; /* Adjust line height for readability */
    }

    .banner .content .button {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px; /* Add margin to separate buttons from text */
    }

    .banner .content .button a {
        margin: 5px 0; /* Adjust margin for better spacing */
    }

    .banner .carousel-box {
        display: none; /* Hide carousel box on smaller screens */
    }

    .banner .directores {
        display: none; /* Hide Directores button on smaller devices */
    }
}

@media (max-width: 375px) {
    .banner .sci {
        display: none; /* Hide social media icons on small screens */
    }
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: white;
}

.calendar-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2em;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
}

.calendar-header h2 {
    color: #4362f8;
    flex: 1; /* Allow title to take available space */
    text-align: center;
    text-transform: capitalize;
}

.calendar-layout {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 1em;
}

.day {
    background: #e7e7e7;
    padding: 1em;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.day:hover {
    background: #d1d1d1;
    transform: scale(1.05);
}

.day.active {
    background: #4362f8;
    color: #fff;
}

.event-detail {
    margin-top: 1em;
    padding: 1em;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 600px) {
    .calendar-layout {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on small screens */
    }

    .day {
        padding: 0.5em; /* Reduce padding */
        font-size: 1.8em; /* Smaller font size */
    }

    .calendar-header h2 {
        font-size: 2.5em; /* Adjust title size */
    }
}

@media (max-width: 400px) {
    .calendar-layout {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on very small screens */
    }

    .day {
        padding: 0.4em; /* Further reduce padding */
        font-size: 1.5em; /* Even smaller font size */
    }
}

.calendar-header button {
    padding-left: 10rem;
    padding-right: 10rem;
}

.event-detail p {
    font-size: 2rem;
}
.event-detail h3{
    font-size: 1.5rem;
}

.donation-button {
    margin-left: 20px; /* Space between social icons and the donation button */
}

.donation-button .btn {
    display: flex;
    align-items: center;
    padding: 0.5em 1em; /* Padding for the button */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s, transform 0.3s;
}

.donation-button .btn:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light background on hover */
    transform: scale(1.05); /* Slight grow effect on hover */
}


.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: all .5s ease;
}

.reveal.active {
    transform: translateY(0px);
    opacity: 1;
}