/**
 * Footer Styles
 *
 * @package Emily_TV
 * @version 1.0.0
 */

/* ==========================================================================
   WAVE DECORATIVO
   ========================================================================== */
.emilytv-footer-wave {
    position: relative;
    margin-bottom: -2px;
    line-height: 0;
}

.emilytv-footer-wave svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 60px;
}

/* ==========================================================================
   FOOTER BASE
   ========================================================================== */
.emilytv-footer {
    position: relative;
    background-color: var(--emilytv-footer-bg, #2D3436);
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

/* ==========================================================================
   FOOTER PRINCIPAL
   ========================================================================== */
.emilytv-footer-main {
    padding: var(--emilytv-spacing-xl) 0 var(--emilytv-spacing-lg);
}

.emilytv-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--emilytv-spacing-lg);
}

@media (min-width: 768px) {
    .emilytv-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .emilytv-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--emilytv-spacing-md);
    }
}

/* ==========================================================================
   COLUMNA ABOUT (Logo + Descripción)
   ========================================================================== */
.emilytv-footer-about {
    max-width: 350px;
}

@media (min-width: 768px) {
    .emilytv-footer-about {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .emilytv-footer-about {
        grid-column: span 1;
    }
}

.emilytv-footer-logo {
    margin-bottom: var(--emilytv-spacing-sm);
}

.emilytv-footer-logo img,
.emilytv-footer-logo-img {
    max-height: 60px;
    width: auto;
}

.emilytv-footer-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--emilytv-blanco);
    text-decoration: none;
    transition: opacity var(--emilytv-transition-fast);
}

.emilytv-footer-logo-text:hover {
    opacity: 0.9;
    color: var(--emilytv-blanco);
}

.emilytv-footer-logo-text .emilytv-logo-icon {
    font-size: 1.75rem;
}

.emilytv-footer-logo-text .emilytv-logo-name {
    background: var(--emilytv-gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emilytv-footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--emilytv-spacing-sm);
}

/* Redes sociales en footer */
.emilytv-footer-social {
    margin-top: var(--emilytv-spacing-sm);
}

.emilytv-footer-social .emilytv-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--emilytv-blanco);
}

.emilytv-footer-social .emilytv-social-link:hover {
    background: var(--emilytv-verde-agua);
    color: var(--emilytv-blanco);
}

/* ==========================================================================
   WIDGETS DEL FOOTER
   ========================================================================== */
.emilytv-footer-col {
    min-width: 0;
}

.emilytv-footer-widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--emilytv-blanco);
    margin-bottom: var(--emilytv-spacing-sm);
    position: relative;
    padding-bottom: 0.75rem;
}

.emilytv-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--emilytv-gradient-primary);
    border-radius: 3px;
}

/* Enlaces del footer */
.emilytv-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.emilytv-footer-links li {
    margin-bottom: 0.5rem;
}

.emilytv-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--emilytv-transition-fast);
}

.emilytv-footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--emilytv-transition-fast);
}

.emilytv-footer-links a:hover {
    color: var(--emilytv-verde-agua);
    padding-left: 0.25rem;
}

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

/* Texto CTA en footer */
.emilytv-footer-cta-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--emilytv-spacing-sm);
    line-height: 1.6;
}

/* Widget genérico */
.emilytv-footer-widget {
    margin-bottom: var(--emilytv-spacing-md);
}

.emilytv-footer-widget:last-child {
    margin-bottom: 0;
}

.emilytv-footer-widget p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.emilytv-footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.emilytv-footer-widget ul li {
    margin-bottom: 0.5rem;
}

.emilytv-footer-widget ul a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--emilytv-transition-fast);
}

.emilytv-footer-widget ul a:hover {
    color: var(--emilytv-verde-agua);
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */
.emilytv-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--emilytv-spacing-md) 0;
}

.emilytv-footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--emilytv-spacing-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .emilytv-footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.emilytv-footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.emilytv-footer-copyright a {
    color: var(--emilytv-verde-agua);
}

.emilytv-footer-decorative {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   DECORACIONES FLOTANTES
   ========================================================================== */
.emilytv-footer-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.emilytv-footer-deco {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: emilytv-float 4s ease-in-out infinite;
}

.emilytv-footer-deco-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.emilytv-footer-deco-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}

.emilytv-footer-deco-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.emilytv-footer-deco-4 {
    bottom: 10%;
    right: 20%;
    animation-delay: 0.5s;
}

/* ==========================================================================
   BOTÓN VOLVER ARRIBA
   ========================================================================== */
.emilytv-back-to-top {
    position: fixed;
    bottom: var(--emilytv-spacing-md);
    right: var(--emilytv-spacing-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emilytv-gradient-primary);
    color: var(--emilytv-blanco);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--emilytv-shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--emilytv-transition-normal);
    z-index: 999;
}

.emilytv-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.emilytv-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(127, 205, 205, 0.5);
}

.emilytv-back-to-top:focus {
    outline: 3px solid var(--emilytv-lila);
    outline-offset: 2px;
}

.emilytv-back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   RESPONSIVE AJUSTES
   ========================================================================== */
@media (max-width: 767px) {
    .emilytv-footer-main {
        padding: var(--emilytv-spacing-lg) 0;
    }

    .emilytv-footer-about {
        max-width: none;
        text-align: center;
    }

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

    .emilytv-footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .emilytv-footer-links {
        text-align: center;
    }

    .emilytv-footer-links a::before {
        display: none;
    }

    .emilytv-footer-col:last-child {
        text-align: center;
    }

    .emilytv-footer-col:last-child .emilytv-btn {
        margin: 0 auto;
    }
}
