:root {
    --st-primary: #5d1486; /* Morado principal */
    --st-secondary: #4114a1; /* Azul oscuro */
    --st-accent: #6b5bff; /* Azul vibrante */
    --st-text-light: #ffffff;
    --st-text-dark: #333333;
    --st-bg-dark: #1c1f2f;
    --st-bg-light: #f8f9fa;
    --st-wave-color: rgba(93, 20, 134, 0.3);
    --st-drop-color: rgba(107, 91, 255, 0.8);
}

.st-footer {
    position: relative;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
    color: var(--st-text-light);
    /* Fondo degradado animado */
    background: linear-gradient(135deg, var(--st-primary), var(--st-secondary));
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Animación del degradado de fondo */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Onda principal de agua en la parte inferior */
.st-water-effect {
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 200%;
    height: 150px;
    background: var(--st-wave-color);
    border-radius: 45%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: waveAnimation 10s linear infinite;
}

/* Animación de la onda */
@keyframes waveAnimation {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
}

/* Capas adicionales para la onda: efecto de múltiples ondulaciones */
.st-water-effect::before,
.st-water-effect::after {
    content: '';
    position: absolute;
    top: -30px;
    width: 80%;
    height: 100%;
    background: var(--st-wave-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: waveAnimation 12s linear infinite;
}

.st-water-effect::after {
    left: auto;
    right: 10%;
    animation-duration: 14s;
}

/* Contenedor para las gotas animadas */
.st-droplets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Cada gota animada */
.st-droplet {
    position: absolute;
    top: -10px;
    background: var(--st-drop-color);
    border-radius: 50%;
    opacity: 0.9;
    animation: dropletFall 4s linear infinite;
}

/* Animación de caída de las gotas */
@keyframes dropletFall {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(100px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) scale(0.8);
        opacity: 0;
    }
}

/* Variaciones en posición, tamaño y retardo para simular aleatoriedad */
.st-droplet:nth-child(1) {
    left: 10%;
    width: 4px;
    height: 4px;
    animation-delay: 0s;
}
.st-droplet:nth-child(2) {
    left: 20%;
    width: 6px;
    height: 6px;
    animation-delay: 0.5s;
}
.st-droplet:nth-child(3) {
    left: 30%;
    width: 5px;
    height: 5px;
    animation-delay: 1s;
}
.st-droplet:nth-child(4) {
    left: 40%;
    width: 7px;
    height: 7px;
    animation-delay: 1.5s;
}
.st-droplet:nth-child(5) {
    left: 50%;
    width: 4px;
    height: 4px;
    animation-delay: 0.8s;
}
.st-droplet:nth-child(6) {
    left: 60%;
    width: 6px;
    height: 6px;
    animation-delay: 1.2s;
}
.st-droplet:nth-child(7) {
    left: 70%;
    width: 5px;
    height: 5px;
    animation-delay: 1.8s;
}
.st-droplet:nth-child(8) {
    left: 80%;
    width: 7px;
    height: 7px;
    animation-delay: 2s;
}
.st-droplet:nth-child(9) {
    left: 90%;
    width: 4px;
    height: 4px;
    animation-delay: 0.3s;
}
.st-droplet:nth-child(10) {
    left: 15%;
    width: 6px;
    height: 6px;
    animation-delay: 2.2s;
}

/* ---------------------------
   Estilos de contenido del footer
---------------------------- */

.st-footer-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.st-footer-top {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.st-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.st-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.st-footer-col {
    margin-bottom: 2rem;
}

.st-footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--st-accent);
    display: inline-block;
}

.st-contact-info .st-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.st-contact-info .st-contact-item i {
    color: var(--st-accent);
    margin-top: 0.25rem;
}

.st-contact-info .st-contact-item p {
    margin: 0;
    line-height: 1.6;
}

.st-news-list {
    list-style: none;
    padding: 0;
}

.st-news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.st-news-item a {
    color: var(--st-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.st-news-item a:hover {
    color: var(--st-accent);
}

.st-news-date {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.st-contact-form input,
.st-contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--st-text-light);
    border-radius: 4px;
}

.st-contact-form button {
    background-color: var(--st-accent);
    color: var(--st-text-light);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.st-contact-form button:hover {
    background-color: var(--st-primary);
}

.st-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.st-gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.st-gallery-grid img:hover {
    transform: scale(1.05);
}

.st-footer-bottom {
    padding: 1.5rem 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.st-footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.st-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.st-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.st-footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.st-footer-nav a:hover {
    color: var(--st-accent);
}

.st-social-links {
    display: flex;
    gap: 1rem;
}

.st-social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.st-social-link:hover {
    color: var(--st-accent);
}

/* ---------------------------
   Responsive Design
---------------------------- */
@media (max-width: 768px) {
    .st-footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .st-footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .st-footer-nav ul {
        justify-content: center;
    }

    .st-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .st-container {
        padding: 0 1rem;
    }

    .st-footer-col {
        margin-bottom: 2rem;
    }

    .st-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}