/**
 * footer.css — Mallorkinas Child Theme
 * Footer: columnas, links, redes sociales, legal, newsletter, responsive.
 * Pendiente de confirmar estructura exacta con capturas.
 */

/* =========================================================
   FOOTER WRAPPER
   ========================================================= */

.site-footer,
.elementor-location-footer {
    background-color: var(--mk-text-main); /* Fondo oscuro — Pendiente de confirmar */
    color: #ffffff;
    padding-block: var(--mk-section-padding-md);
}

/* =========================================================
   GRID DE COLUMNAS
   ========================================================= */

.mk-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* =========================================================
   LOGO Y DESCRIPCIÓN
   ========================================================= */

.mk-footer-brand img {
    max-height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1); /* Logo blanco sobre fondo oscuro — Pendiente confirmar */
}

.mk-footer-brand p {
    font-size: var(--mk-font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* =========================================================
   COLUMNAS DE LINKS
   ========================================================= */

.mk-footer-col h4 {
    font-size: var(--mk-font-size-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
}

.mk-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mk-footer-col ul li a {
    font-size: var(--mk-font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--mk-transition);
}

.mk-footer-col ul li a:hover {
    color: #ffffff;
}

/* =========================================================
   REDES SOCIALES
   ========================================================= */

.mk-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.mk-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--mk-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: background-color var(--mk-transition);
    font-size: 16px;
}

.mk-footer-social a:hover {
    background-color: var(--mk-color-primary);
}

/* =========================================================
   NEWSLETTER EN FOOTER
   ========================================================= */

.mk-footer-newsletter {
    margin-top: 16px;
}

.mk-footer-newsletter form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mk-footer-newsletter input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--mk-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: var(--mk-font-size-sm);
    outline: none;
    transition: border-color var(--mk-transition);
}

.mk-footer-newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mk-footer-newsletter input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.mk-footer-newsletter button {
    padding: 10px 20px;
    border-radius: var(--mk-radius-pill);
    background-color: var(--mk-color-primary);
    color: #fff;
    border: none;
    font-size: var(--mk-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--mk-transition);
}

.mk-footer-newsletter button:hover {
    background-color: var(--mk-color-primary-hover);
}

/* =========================================================
   SEPARADOR Y LEGAL
   ========================================================= */

.mk-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.mk-footer-legal {
    font-size: var(--mk-font-size-xs);
    color: rgba(255, 255, 255, 0.5);
}

.mk-footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--mk-transition);
}

.mk-footer-legal a:hover {
    color: #ffffff;
}

.mk-footer-legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

@media (max-width: 600px) {
    .mk-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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