@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff0009;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content img {
    max-width: 350px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    border-radius: 85px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 9998;
    transition: all 0.3s ease;
    padding: 5px 20px;
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .navbar {
        width: 90%;
    }
}

@media (max-width: 769px) {
    .navbar {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 10px 20px;
        top: 0%;
        background: rgb(255, 255, 255);
    }

    .navbar-brand {
        display: flex;
        align-items: center;
    }

    .collapse {
        position: fixed;
        top: 60px; 
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .collapse.show {
        left: 0;
    }

    .nav-link {
        display: block;
        color: #000 !important;
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .donation-btn {
        display: none;
    }
}

@media screen and (max-width: 769px) {
    .mobile-nav-icon {
        position: absolute;
        font-size: 23px;
        border: 1px solid;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        color: #000000;
        right: 25px;
        top: 50px;
    }
}

@media (max-width: 768px) {
    .nav-link {
        color: #000 !important;
    }
}

.navbar.scrolled {
    background: #ff0009;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled .mobile-nav-icon {
    color: #ffffff;
}

.navbar.scrolled .social-icons a:hover {
    color: #000000;
}

.navbar.scrolled .navbar-toggler {
    color: #ffffff;
}

.navbar.scrolled .nav-link {
    color: #ffffff !important;
}

.navbar.scrolled .nav-link:hover {
    color: #000 !important;
}

.navbar.scrolled .donation-btn {
    background: linear-gradient(90deg, #ffffff, #ffffff);
    color: #000000;
}

.navbar-brand {
    color: #fff;
    font-weight: bold;
    font-size: 2rem;
}

.navbar-brand img {
    max-height: 50px;
    margin-right: 15px;
}

.nav-link {
    font-size: 1.2rem;
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link:hover, .dropdown-item:hover {
    color: #ff0009 !important;
}

.social-icons {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ff0009;
}

.dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
}

.navbar-nav .nav-item {
    margin-right: 2rem;
}

.navbar-nav.me-auto {
    margin-right: auto;
}

.navbar-brand img {
    max-height: 95px;
}

.donation-btn {
    background: linear-gradient(90deg, #ff0009, #000000);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    margin-left: 1rem;
    transition: background 0.3s ease;
}

.donation-btn:hover {
    background: linear-gradient(90deg, #000000, #ff0009);
    color: #fff;
}

.banner {
    background: url('../img/galeria/alcaldes.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 150px 30px;
    text-align: left;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #000000;
    opacity: 0.3;
    z-index: 1;
}

.banner > * {
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.banner .btn {
    margin-right: 15px;
}

.nosotros {
    background: url('../img/galeria/ampe9.png') no-repeat center center/cover;
    color: #fff;
    padding: 150px 30px;
    text-align: left;
    position: relative;
    min-height: 87vh;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.nosotros h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 100px;
}

@media screen and (max-width: 769px) {
    .nosotros {
        min-height: 70vh;
    }
    .nosotros h2 {
        margin-bottom: 300px;
    }
}

.nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #000000;
    opacity: 0.3;
    z-index: 1;
}

.nosotros > * {
    position: relative;
    z-index: 2;
}

.nosotros h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 100px;
}

.nosotros .typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    font-size: 4rem;
    font-weight: bold;
}

.nosotros span {
    display: inline-block;
    width: 100%;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.nosotros .typewriter {
    display: block;
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .nosotros .typewriter {
        display: none;
    }
}

@media screen and (min-width: 1024px) {
    .nosotros .typewriter {
        animation: typing 3s steps(25, end), blink 0.75s step-end infinite;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .nosotros {
        white-space: pre-line;
        text-align: center;
    }
}

@media screen and (max-width: 769px) {
    .nosotros {
        white-space: pre-line;
        text-align: center;
    }
}

.about-section {
    padding: 60px 20px;
    background-color: #fff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
    max-width: 600px;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.section-tagline {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-highlight {
    padding: 15px;
    border-left: 4px solid #ff0009;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.about-highlight p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff0009, #ff0008a6);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff0009, #ff0008a6);
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-content, .about-image {
        text-align: center;
    }

    .about-content {
        margin-top: 20px;
    }
}

.about-section.in-view .about-image {
    opacity: 1;
    transform: translateX(0);
}

.about-section.in-view .about-content {
    opacity: 1;
    transform: translateX(0);
}

.about-section.out-of-view .about-image {
    opacity: 0;
    transform: translateX(-50px);
}

.about-section.out-of-view .about-content {
    opacity: 0;
    transform: translateX(50px);
}

.cta-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-section:after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #000000;
    opacity: 0.7;
    z-index: -1;
}

.cta-container {
    display: flex;
    gap: 200px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 600px;
}

.cta-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    flex: 1;
    max-width: 400px;
    min-width: 300px;
    aspect-ratio: 1;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-icon img {
    max-width: 100px;
    height: 60px;
    margin-bottom: 20px;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.cta-text {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
}

@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        gap: 20px;
    }

    .cta-box {
        max-width: 100%;
    }
}

a, a:hover, a:focus, a:active {
    text-decoration: none;
    outline: none;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-footer{
    position: relative;
    background: #1e2129;
}

.footer-content{
    position: relative;
    padding: 85px 0px 80px 0px;
}
.footer-content:before{
    position: absolute;
    content: '';
    background: url(https://i.ibb.co/jyRLrBZ/world-map.png);
    width: 744px;
    height: 365px;
    top: 50px;
    right: 0px;
    background-size: cover;
    background-repeat: no-repeat;
    animation-name: float-bob;
    animation-duration: 30s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    -webkit-animation-name: float-bob;
    -webkit-animation-duration: 30s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: float-bob;
    -moz-animation-duration: 30s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: float-bob;
    -ms-animation-duration: 30s;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
    -o-animation-name: float-bob;
    -o-animation-duration: 30s;
    -o-animation-iteration-count: infinite;
    -o-animation-timing-function: linear;
}
.footer-content .logo-widget{
    position: relative;
    margin-top: -5px;
}
.footer-content .logo-widget .footer-social li{
    position: relative;
    display: inline-block;
    margin-right: 9px;
}
.footer-content .logo-widget .footer-social li:last-child{
    margin-right: 0px;
}
.footer-content .logo-widget .footer-social li a{
    position: relative;
    display: inline-block;
    width: 42px;
    height: 42px;
    line-height: 42px;
    background: #2e3138;
    color: #9ea0a9;
    text-align: center;
    border-radius: 50%;
}
.footer-content .logo-widget .footer-social li a:hover{
    color: #ffffff;
    background: #ff0009;
}
.footer-content .logo-widget .logo-box{
    margin-bottom: 25px;
}
.footer-content .logo-widget .text p{
    color: #9ea0a9;
    margin-bottom: 32px;
}
.footer-content .footer-title{
    position: relative;
    font-size: 24px;
    line-height: 35px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 27px;
}
.footer-content .service-widget .list li{
    display: block;
    margin-bottom: 12px;
}
.footer-content .service-widget .list li a{
    position: relative;
    display: inline-block;
    color: #9ea0a9;
}
.footer-content .service-widget .list li a:hover{
    color: #ff0009;
}
.footer-content .contact-widget p{
    color: #9ea0a9;
    margin-bottom: 15px;
}
.footer-content .contact-widget{
    margin-left: 90px;
}
.footer-content .contact-widget .footer-title{
    margin-bottom: 29px;
}

/** footer-bottom **/

.footer-bottom{
    position: relative;
    background: #13151a;
    padding: 25px 0px 22px 0px;
}
.footer-bottom .copyright,
.footer-bottom .copyright a,
.footer-bottom .footer-nav li a{
    position: relative;
    color: #9ea0a9;
}
.footer-bottom .copyright a:hover,
.footer-bottom .footer-nav li a:hover{
    color: #ff0009;
}
.footer-bottom .footer-nav{
    position: relative;
    text-align: right;
}
.footer-bottom .footer-nav li{
    position: relative;
    display: inline-block;
    margin-left: 29px;
}
.footer-bottom .footer-nav li:first-child{
    margin-left: 0px;
}
.footer-bottom .footer-nav li:before{
    position: absolute;
    content: '';
    background: #9ea0a9;
    width: 1px;
    height: 14px;
    top: 7px;
    left: -18px;
}
.footer-bottom .footer-nav li:first-child:before{
    display: none;
}
.logo-box img {
    max-width: 280px;
}

@media (max-width: 991px) {
    .footer-content .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px;
        width: 100%;
    }

    .footer-content .contact-widget {
        margin-left: 0;
    }

    .footer-content .logo-widget {
        text-align: center;
    }

    .footer-content .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .copyright {
        margin-bottom: 10px;
    }
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    color: #333;
}

.error-code {
    font-size: 15rem;
    font-weight: bold;
    color: #ff0009;
    margin-bottom: 20px;
}

.message {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 30px;
}

.home-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff0009;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.home-link:hover {
    background-color: #ff0009;
}

.image-skeleton {
    width: 100%;
    height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

.image-skeleto {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img.lazy-load {
    display: none;
    width: 100%;
    height: auto;
}

.mpv-section {
    background-color: #FF000834 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.logo-image {
    width: 400px;
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.image-container {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .desktop-img {
        display: none;
    }
    .mobile-img {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-img {
        display: none;
    }
}