/*
 * Footer del sitio — diseño "Bebelli Footer" (Claude Design).
 * Grid de 4 columnas en desktop; en mobile las columnas de menús se vuelven
 * acordeones (assets/js/footer.js) y las secciones se separan con líneas.
 */

.site-footer {
    background-color: var(--bb-bg-soft) !important;
    border-top: 1px solid var(--bb-line) !important;
    color: var(--bb-ink-2) !important;
}

.bb-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 0 8px;
}

@media (min-width: 768px) {
    .bb-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
        gap: 40px;
        padding: 56px 0 40px;
    }
}

/* ---------- Marca ---------- */

.bb-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
}

@media (min-width: 768px) {
    .bb-footer__brand { padding-bottom: 0; }
}

.bb-footer__logo {
    display: block;
    width: 120px;
    height: 36px;
}

.bb-footer__tagline {
    margin: 0;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--bb-ink-2);
    max-width: 260px;
}

.bb-footer__social {
    display: flex;
    gap: 10px;
}

.bb-footer__social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bb-white);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--bb-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bb-purple);
    transition: color .2s, transform .2s;
}

.bb-footer__social a:hover {
    color: var(--bb-purple-deep);
    transform: translateY(-2px);
}

/* ---------- Columnas de menús (acordeón en mobile) ---------- */

.bb-footer__col--collapsible {
    border-top: 1px solid var(--bb-line);
}

@media (min-width: 768px) {
    .bb-footer__col--collapsible { border-top: none; }
}

/* Título de columna: botón en mobile (acordeón), estático en desktop.
   Reset contra los estilos de botón de Storefront. */
.bb-footer__head {
    width: 100%;
    margin: 0;
    padding: 16px 0;
    border: none;
    background: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--bb-ink);
    text-align: left;
}

.bb-footer__head:hover,
.bb-footer__head:focus {
    background: none;
    color: var(--bb-ink);
    outline: none;
}

.bb-footer__head:focus-visible {
    outline: 2px solid var(--bb-purple-deep);
    outline-offset: 2px;
}

.bb-footer__chev {
    flex-shrink: 0;
    color: var(--bb-purple);
    transition: transform 200ms ease;
}

.bb-footer__col--collapsible.is-open .bb-footer__chev {
    transform: rotate(180deg);
}

.bb-footer__body {
    display: none;
    padding: 2px 0 18px;
}

.bb-footer__col--collapsible.is-open .bb-footer__body {
    display: block;
}

@media (min-width: 768px) {
    .bb-footer__head {
        padding: 0 0 14px;
        cursor: default;
    }
    .bb-footer__chev { display: none; }
    .bb-footer__body {
        display: block !important;
        padding: 0;
    }
}

/* Listas de wp_nav_menu */
.bb-footer__body ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-footer__body li {
    margin: 0;
}

.site-footer .bb-footer__body a {
    font-size: .875rem;
    font-weight: 400;
    color: var(--bb-ink-2);
    text-decoration: none;
}

.site-footer .bb-footer__body a:hover {
    color: var(--bb-purple-deep);
    text-decoration: underline;
}

/* ---------- Contacto ---------- */

.bb-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--bb-line);
    padding-top: 18px;
    padding-bottom: 24px;
}

@media (min-width: 768px) {
    .bb-footer__contact {
        border-top: none;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.bb-footer__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--bb-ink);
}

.bb-footer__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--bb-ink-2);
}

.bb-footer__row svg {
    flex-shrink: 0;
    color: var(--bb-purple);
    margin-top: 1px;
}

.site-footer .bb-footer__row a {
    color: var(--bb-ink-2);
    font-weight: 400;
    text-decoration: none;
}

.site-footer .bb-footer__row a:hover {
    color: var(--bb-purple-deep);
    text-decoration: underline;
}

.site-footer a.bb-footer__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: #25D366;
    color: var(--bb-white);
    font-weight: 700;
    font-size: .875rem;
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
    transition: background .2s;
}

.site-footer a.bb-footer__whatsapp:hover {
    background: #1EBE5A;
    color: var(--bb-white);
    text-decoration: none;
}

.site-footer a.bb-footer__whatsapp:active {
    transform: scale(.97);
}

/* ---------- Legales ---------- */

.bb-footer__legal {
    border-top: 1px solid var(--bb-line);
    padding: 20px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: .8125rem;
    line-height: 1.6;
    color: var(--bb-ink-3);
}

.bb-footer__legal p {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.6;
}

.site-footer .bb-footer__legal a {
    color: var(--bb-purple);
    font-weight: 600;
    text-decoration: underline;
}

.site-footer .bb-footer__legal a:hover {
    color: var(--bb-purple-deep);
}
