/* ================================================
   FOOTER - OCEAN TWILIGHT DARK ELEGANTE
   ================================================ */

.footer {
    padding: 6rem 0 3rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Efectos de fondo marino */
.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(115, 191, 184, 0.06) 0%,
        rgba(95, 168, 211, 0.03) 50%,
        transparent 70%
    );
    animation: waveRotate 35s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(115, 191, 184, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 218, 220, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

@keyframes waveRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Círculos decorativos flotantes */
.bg-ornament {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(115, 191, 184, 0.15);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 
        0 0 20px rgba(115, 191, 184, 0.1),
        inset 0 0 20px rgba(115, 191, 184, 0.05);
}

.bg-ornament::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid rgba(115, 191, 184, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(115, 191, 184, 0.08);
}

.bg-ornament-1 {
    top: -150px;
    left: -150px;
    animation: float 20s ease-in-out infinite;
}

.bg-ornament-2 {
    bottom: -150px;
    right: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.bg-ornament-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    animation: float 30s ease-in-out infinite;
    border-color: rgba(95, 168, 211, 0.1);
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-main {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.footer-main.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Frase del footer */
.footer-quote {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quote-text {
    font-family: var(--font-script);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--accent-teal);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.quote-author {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    font-style: normal;
}

/* Botones de acción */
.footer-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(115, 191, 184, 0.3);
    border-radius: 25px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-button:hover {
    background: rgba(115, 191, 184, 0.1);
    border-color: var(--accent-teal);
    color: var(--accent-aqua);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(115, 191, 184, 0.2);
}

/* Agradecimiento */
.footer-thanks {
    border-top: 1px solid rgba(115, 191, 184, 0.2);
    border-bottom: 1px solid rgba(115, 191, 184, 0.2);
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.thanks-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.thanks-ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-teal), 
        var(--accent-aqua), 
        var(--accent-teal), 
        transparent);
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(115, 191, 184, 0.3);
    position: relative;
}

.thanks-ornament::before,
.thanks-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(115, 191, 184, 0.5);
}

.thanks-ornament::before {
    left: -10px;
}

.thanks-ornament::after {
    right: -10px;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(115, 191, 184, 0.2);
    padding-top: 2rem;
}

.footer-signature {
    max-width: 400px;
    margin: 0 auto;
}

.signature-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.signature-names {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--accent-teal);
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ================================================
   ANIMACIONES
   ================================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) rotate(45deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) rotate(135deg);
        opacity: 0.7;
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .quote-text {
        font-size: 1.3rem;
    }
    
    .signature-names {
        font-size: 1.5rem;
    }
    
    .bg-ornament-3 {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .bg-ornament {
        width: 200px;
        height: 200px;
    }
    
    .bg-ornament-3 {
        width: 300px;
        height: 300px;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .signature-names {
        font-size: 1.4rem;
    }
}

/* ================================================
   ACCESIBILIDAD
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .footer::before,
    .bg-ornament,
    .footer-main {
        animation: none !important;
        transition: none !important;
    }
}

.footer-button:focus {
    outline: 2px solid var(--accent-teal);
    outline-offset: 3px;
}
