footer {
    background: #fff;
    box-shadow: var(--shadow-soft);
    border-top: 2px solid rgba(123, 76, 148, 0.1);
    position: relative;
    overflow: hidden;
    font-family: var(--fuente-inter);
    background-image: url(../img/footer/fondo-bg.webp);
    background-size: cover center;
    /* max-width: 1400px; */

}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-principal) 50%, transparent 100%);
    opacity: 0.5;
}

.footer-mandala {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 76, 148, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: rotate-mandala 60s linear infinite;
}

.footer-mandala:nth-child(1) {
    top: -200px;
    right: -200px;
}

.footer-mandala:nth-child(2) {
    bottom: -200px;
    left: -200px;
    animation-direction: reverse;
}

@keyframes rotate-mandala {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}



.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.footer-section h3 {
    color: var(--color-principal);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    /* o usar width: 40% / max-width:200px para hacerlo responsivo */
    height: 2px;
    background: linear-gradient(90deg, var(--color-principal), transparent);
    text-align: center;
}

.footer-about {
    max-width: 640px;
}

/* Contenedor del logo: alinea icono + texto */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    vertical-align: middle;
    color: var(--color-principal);
    /* si el SVG usa `fill="currentColor"` cambiará su color */


}

/* Forzar tamaño y comportamiento del SVG inline */
.footer-logo svg {
    display: block;
    width: 64px;
    /* ajustar tamaño aquí */
    height: auto;
    flex: 0 0 64px;
    /* evita que el icono cambie de tamaño en flex */
    transform: scale(1) rotate(0deg);
    animation: spin 15s linear infinite;
    transform-origin: center;
    transform-origin: 50% 50%;
    transform-box: fill-box;
    transform-origin: center;
    overflow: visible;

}

/* Animación del logo */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.created-by {
    /* opacity: 0.99; */
    font-weight: bold;
    text-decoration: none;
    padding: 0 10px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--color-principal);
    cursor: pointer;
}



/* Responsivo: reducir en pantallas pequeñas */
@media (max-width: 480px) {
    .footer-logo svg {
        width: 48px;
    }

    .footer-logo {
        gap: 0.4rem;
    }
}

/* Si el SVG tiene atributos inline que impiden el cambio, usar !important */
.footer-logo svg.override-size {
    width: 64px !important;
    height: auto !important;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-principal);
    margin-left: 10px;
}

.footer-about p {
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-family: var(--text-inter);
    letter-spacing: 2px;
    margin-top: 15px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    justify-content: center;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--text-color-rgb);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 1;
}

.footer-links a::before {
    content: '◆';
    color: var(--color-principal);
    font-size: 0.6rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-principal);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}


.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    justify-content: flex-start;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(123, 76, 148, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-principal);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(123, 76, 148, 0.1);
    border: 1px solid var(--color-principal);
}

.social-links a:hover {
    background: var(--color-principal);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow-subtle);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(123, 76, 148, 0.15);
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    border-color: var(--color-principal);
    background: white;
    box-shadow: var(--shadow-soft);
}

.newsletter-form button {
    padding: 0.8rem 1.8rem;
    background: var(--color-principal);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(123, 76, 148, 0.3);
}

.newsletter-form button:hover {
    background: var(--color-principal-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-subtle);
}

.footer-bottom {
    border-top: 1px solid rgba(123, 76, 148, 0.15);
    padding-top: 1.5rem;
    display: flex;
    line-height: 1.8;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

}

.footer-bottom2 {
    border-top: 1px solid var(--color-principal);
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    line-height: 1.8;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom2 p {
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.5;
}


.footer-bottom p {
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-bottom-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    opacity: 0.5;
}

.footer-bottom-links a:hover {
    color: var(--color-principal);
}

.scroll-top {
    position: fixed;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 50px;
    height: 50px;
    background: var(--color-principal);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    z-index: 10005;
    pointer-events: auto;
}

.scroll-top.visible {
    opacity: 0.7;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-subtle);
    opacity: 1;
}


@media (max-width: 1200px) {
    footer {
        background-image: url(../img/footer/fondo-bg-1200.png);
        background-size: center center;
    }
}

@media (max-width: 992px) {
    footer {
        background-image: url(../img/footer/fondo-bg-992.png);
        background-size: center center;
    }
}

@media (max-width: 768px) {

    footer {
        background-image: url(../img/footer/fondo-bg-768.png);
        background-size: cover;
        background-repeat: no-repeat;
    }


    .footer-container {
        padding: 2rem 1.5rem 1rem;

    }

    .donation-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .donation-title {
        font-size: 1.2rem;
    }

    .donation-subtitle {
        font-size: 1rem;
    }

    .donation-text {
        font-size: 0.95rem;
    }

    .donation-highlight {
        font-size: 1rem;
    }

    .donation-buttons {
        flex-direction: column;
        width: 100%;
    }

    .donate-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-about {
        max-width: 100%;
        text-align: center;
        order: 1;
    }

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

    .footer-links-section {
        order: 2;
    }

    .footer-links-section h3 {
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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


}


@media (max-width: 576px) {

    footer {
        background-image: url(../img/footer/fondo-bg-576.png);
        background-size: cover;
        background-repeat: no-repeat;
    }
}

@media (max-width: 480px) {
    .footer-logo span {
        font-size: 1.3rem;
    }

    .lotus-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 460px) {
    footer {
        background-image: url(../img/footer/fondo-bg-460.png);
        background-size: cover left;
        background-repeat: no-repeat;
    }
}

@media (max-width: 340px) {
    footer {
        background-image: url(../img/footer/fondo-bg-350.png);
        background-size: cover;
        background-repeat: no-repeat;
    }
}

/* ==========================================================
   SECCIÓN DE AGRADECIMIENTO A PATROCINANTES
   ========================================================== */
.patrocinantes-thanks {
    background: var(--bg);
    border: none;
    padding: 3rem 2rem;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    font-family: var(--fuente-inter);
    text-align: center;
}

.patrocinantes-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.patrocinantes-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.patrocinantes-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-principal);
    width: 60px;
    height: 60px;
    background: rgba(123, 76, 148, 0.05);
    border-radius: 50%;
    padding: 10px;
    border: 1px dashed var(--color-principal);
    animation: pulse-icon 4s ease-in-out infinite;
}

.lotus-svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-principal);
}

.patrocinantes-text {
    font-family: var(--fuente-lora), serif;
    font-size: 1.05rem;
    line-height: 2.5;
    color: var(--color-principal);
    margin: 0;
    opacity: 0.9;
    text-align: center;
    letter-spacing: 0.1rem;
}

.patrocinantes-text strong {
    color: var(--color-principal);
    font-family: var(--fuente-inter), sans-serif;
    font-weight: 600;
}

.patrocinantes-text a {
    color: var(--color-principal);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.patrocinantes-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-principal);
    transform: scaleX(0.8);
    transition: transform 0.3s ease;
}

.patrocinantes-text a:hover {
    color: var(--color-principal-hover);
}

.patrocinantes-text a:hover::after {
    background-color: var(--color-principal-hover);
    transform: scaleX(1);
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(123, 76, 148, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 5px rgba(123, 76, 148, 0.1);
    }
}

@media (max-width: 768px) {
    .patrocinantes-thanks {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .patrocinantes-text {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}