@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;
}

.home {
    padding-top: 260px; /* Adjust padding to prevent content from hiding under the fixed header */
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    width: 20%; /* Adjust this percentage for desired cropping */
    height: auto;
    object-fit: cover;
  }

  
  #bg-video {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: 
        linear-gradient(to top, transparent, black 20%),
        linear-gradient(to bottom, transparent, black 20%);
    mask-image: 
        linear-gradient(to top, transparent, black 20%),
        linear-gradient(to bottom, transparent, black 20%);
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
  }
  
  .centered-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 50%; /* Adjust max-width as needed */
    height: auto;
  }


  .header2 {
    margin-top: auto;
    text-align: right;
    font-size: 24px;
    background-color: #0b103b;
  }

.slider {
    width: 75vw;
    height: auto;
    margin: auto;
    overflow: hidden;
    padding-top: 1rem;
}

.slider .slide-track {
    display: flex;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 40s linear infinite;
    width: calc(200px * 14);
    
}

.slider .slide {
    width: 200px;
    display: flex;
    justify-content: center;
    justify-items: center;
    
}

.slider .slide img {
    width: 100%;
    justify-content: space-between;
    margin: 1px;
    padding: 1px;
    max-width: 10rem;
}

@keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(calc(-200px * 7));
        transform: translateX(calc(-200px * 7));
    }
}

.post-headers{
    padding-top: 10rem;
}

section .home-2{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    display: flex;
    align-items: center;
    padding: 0 9%;
}

.home-content {
    max-width: 60rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.home-content span {
    color: var(--main-color);
}

.home-content .text-animate {
    position: relative;
    width: 32.8rem;
}

.home-content .text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    color: white;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}
.btn-box{
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover {
    color: var(--main-color)
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
    background: var(--main-color);
}


.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before{
    width: 100%;
}

.home-sci {
    position: absolute;
    padding-top: 4rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

/* Laptops */
@media (max-width: 1366px) and (min-width: 1024px) {
    html {
        font-size: 65%; /* Adjust font size for larger devices */
    }

    .home-content h1 {
        font-size: 5.5rem;
    }

    .home-content .text-animate h3 {
        font-size: 2.8rem;
    }

    .home-content p {
        font-size: 1.4rem;
    }

    .btn-box {
        width: 30rem;
    }

    .btn-box .btn {
        width: 14rem;
    }

    .home-sci {
        width: 140px;
    }

    .home-sci a {
        width: 36px;
        height: 36px;
    }
}


@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;
    }
}

.video-container-2 {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

#bg-video-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    background-size: cover;
    filter: brightness(0.7);
}

.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%);
    }
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding-top: 3rem;
    padding-bottom: 5rem;
}



.video-item {
    display: flex;
    flex: 1 1 calc(50% - 20px); /* 2 items per row */
    flex-direction: column;
    gap: 15px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-text {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    color: #333;
}

.video-text h2 {
    font-size: 2rem; /* Larger title */
    margin-bottom: 15px;
}

.video-text span {
    color: var(--main-color);
}

.video-text p {
    font-size: 1.2rem; /* Larger description */
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-item {
        flex-direction: column;
        align-items: center;
    }

    .video-item:nth-of-type(odd) .video-text {
        order: 2;
    }

    .video-item:nth-of-type(even) .video-text {
        order: 1;
    }
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.title-vid h3 {
    padding-top: 1rem;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: white;
}

.title-vid span{
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #00abf0;
}

.gallery-text {
    background: url(/fondo3.png);
    background-size: cover;
    padding-top: 15vh; /* Use viewport height for responsiveness */
    padding-top: calc(15rem + 5vw); /* Combine rem and vw for better scaling */
}

.gallery-text h3{
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: white;
    
}

.gallery-text span {
    color: #b57a2a;
    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(/imagenes/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;
}

.slider-container2
.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);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(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;
    animation: fadeIn 0.5s ease-in-out; /* Add animation */
}

.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 */
    }
}


.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);
}



.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 */
}