/* =======================================================
   1. ESTRUCTURA STICKY FOOTER Y ESTABILIDAD DE SCROLL
======================================================= */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

footer {
    flex-shrink: 0;
    background-color: #222222;
    color: #ffffff;
    text-align: center;
    padding: 30px 16px;
    margin-top: auto;
    box-sizing: border-box;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 10px 0;
    line-height: 1.5;
}

/* =======================================================
   2. AVISO DE COOKIES
======================================================= */
.cookie-container {
    position: fixed;
    bottom: -180px;
    left: 0;
    width: 100%;
    background: rgba(244, 244, 244, 0.98);
    color: #333333;
    padding: 15px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10020;
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-top: 3px solid #e30613;
    box-sizing: border-box;
}

.cookie-container.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cookie-content p {
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
    color: #444444;
}

.cookie-content a {
    color: #e30613;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btn {
    background: #e30613;
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.25s ease;
}

.cookie-btn:hover {
    background: #b3050f;
}

/* =======================================================
   3. REDES SOCIALES UNIFICADAS
======================================================= */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
    margin: 0 8px;
}

.social-link i {
    font-size: 20px;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
}

.social-link.facebook {
    background-color: #1877F2;
}

.social-link.facebook:hover {
    background-color: #145dbf;
}

.social-link.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-link.instagram:hover {
    filter: brightness(1.1);
}

.social-link.youtube {
    background-color: #FF0000;
}

.social-link.youtube:hover {
    background-color: #cc0000;
}

/* =======================================================
   4. ICONOS Y NOTIFICACIÓN WHATSAPP
======================================================= */
.social-icon-container img,
.whatsapp-icon-container img {
    width: 30px;
    height: 30px;
    display: block;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #FF0000;
    color: #ffffff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 2px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* =======================================================
   5. ADAPTACIÓN RESPONSIVA MÓVIL
======================================================= */
@media (max-width: 768px) {
    footer {
        padding: 24px 14px;
    }

    footer p {
        font-size: 0.82rem;
    }

    .cookie-container {
        padding: 12px 15px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cookie-content p {
        font-size: 12px;
    }

    .cookie-btn {
        width: 100%;
        padding: 10px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        margin: 0 5px;
    }

    .social-link i {
        font-size: 18px;
    }
}