/* Shared chrome for the public pages: footer, floating buttons, BLV chat and
   cookie banner, styled after the identity manual (anthracite, corporate
   beige, warm grey; Sofia Pro; the open-square "elemento gráfico" and the
   Bellavista pattern). Phone adjustments live in mobile.css, loaded after. */

/* Figures: the euro sign and ² fall back to another face; at weight 400 it
   matches Sofia Pro instead of looking bolder than the digits. */
.viv-card-price,
.viv-stat-value,
.viv-mobile-bar-info strong {
    font-weight: 400;
}

/* ==================== FOOTER ==================== */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 84px 60px 0;
    background: var(--brand-anthracite, #232323);
    color: var(--brand-beige, #d9d3c7);
    font-family: var(--body);
    font-weight: 300;
}
/* The pattern sits on the right and fades out towards the content. */
.site-footer__pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(62%, 860px);
    background: url('/static/brand/patron-bellavista.svg') right top / 960px auto repeat;
    opacity: .09;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
    mask-image: linear-gradient(90deg, transparent, #000 70%);
    pointer-events: none;
}
.site-footer__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
    gap: 48px;
    max-width: 1240px;
    margin: 0 auto;
    padding-bottom: 64px;
}
.site-footer__logo {
    display: inline-block;
    width: 190px;
    color: var(--brand-beige, #d9d3c7);
}
.site-footer__logo svg {
    display: block;
    width: 100%;
    height: auto;
}
.site-footer__brand p {
    max-width: 330px;
    margin: 22px 0 28px;
    color: rgba(217, 211, 199, .72);
    font-size: 14px;
    line-height: 1.75;
}
.site-footer__cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid rgba(217, 211, 199, .45);
    color: var(--brand-beige, #d9d3c7);
    font-size: 11px;
    letter-spacing: .16em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .25s, color .25s, border-color .25s;
}
.site-footer__cta:hover,
.site-footer__cta:focus-visible {
    border-color: var(--brand-beige, #d9d3c7);
    background: var(--brand-beige, #d9d3c7);
    color: var(--brand-anthracite, #232323);
}
.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}
.site-footer__title {
    margin: 4px 0 8px;
    color: var(--brand-warm-grey, #a7a299);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.site-footer__col > a {
    color: var(--brand-beige, #d9d3c7);
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .3s ease, color .2s;
}
.site-footer__col > a:hover,
.site-footer__col > a:focus-visible {
    color: var(--brand-paper, #f4f1eb);
    background-size: 100% 1px;
}
.site-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(217, 211, 199, .3);
    border-radius: 50%;
    color: var(--brand-beige, #d9d3c7);
    transition: background-color .25s, color .25s, border-color .25s;
}
.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    border-color: var(--brand-beige, #d9d3c7);
    background: var(--brand-beige, #d9d3c7);
    color: var(--brand-anthracite, #232323);
}
.site-footer__social svg {
    width: 18px;
    height: 18px;
}
/* Bottom line as in the manual's page headers: a thin beige rule with a tick
   at its left end. */
.site-footer__legal {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 32px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 0 30px;
    border-top: 1px solid rgba(217, 211, 199, .35);
    color: rgba(217, 211, 199, .6);
    font-size: 12px;
    line-height: 1.6;
}
.site-footer__legal::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 1px;
    height: 14px;
    background: rgba(217, 211, 199, .55);
}
.site-footer__legal p {
    margin: 0;
}
.site-footer__legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.site-footer__legal a {
    color: rgba(217, 211, 199, .8);
    text-decoration: none;
}
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
    color: var(--brand-paper, #f4f1eb);
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* Keep the legal links clear of the floating buttons in the corner. */
.site-footer {
    padding-bottom: 72px;
}

@media (max-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

/* ==================== FLOATING BUTTONS ====================
   Chat, Instagram and WhatsApp in one compact row in the corner. Telegram
   stays in the contact section, the channel card and the footer. */
.bv-widget {
    right: 24px;
    bottom: 24px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.bv-widget-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(217, 211, 199, .28) !important;
}
.bv-widget-btn svg {
    width: 24px;
    height: 24px;
}
.bv-widget-btn--telegram {
    display: none !important;
}
.blv-public-chat {
    right: 140px;
    bottom: 24px;
}

/* ==================== BLV CHAT ==================== */
.blv-public-chat-toggle {
    border: 1px solid rgba(217, 211, 199, .28) !important;
}
.blv-public-chat-toggle[aria-expanded="true"] {
    background: var(--brand-beige, #d9d3c7) !important;
    color: var(--brand-anthracite, #232323) !important;
}
.blv-public-chat-toggle[aria-expanded="true"] .brand-mark {
    filter: invert(1);
}
.blv-public-chat-panel {
    border: 1px solid rgba(167, 162, 153, .45);
    border-radius: 10px;
    background: var(--brand-paper, #f4f1eb);
    box-shadow: 0 28px 70px rgba(35, 35, 35, .24);
}
.blv-public-chat-header {
    padding: 18px 20px;
    border-bottom: 0;
    background: var(--brand-anthracite, #232323);
    color: var(--brand-beige, #d9d3c7);
}
.blv-public-chat-header p {
    margin-bottom: 8px;
    color: var(--brand-warm-grey, #a7a299);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .22em;
}
.blv-public-chat-header strong {
    width: 118px;
    color: var(--brand-beige, #d9d3c7);
}
.blv-public-chat-header strong svg {
    display: block;
    width: 100%;
    height: auto;
}
.blv-public-chat-close {
    border-color: rgba(217, 211, 199, .3);
    background: transparent;
    color: var(--brand-beige, #d9d3c7);
}
.blv-public-chat-close:hover {
    background: var(--brand-beige, #d9d3c7);
    color: var(--brand-anthracite, #232323);
}
.blv-public-chat-messages {
    background: var(--brand-paper, #f4f1eb);
}
.blv-public-chat-avatar {
    border-radius: 50%;
    background: var(--brand-anthracite, #232323);
}
.blv-public-chat-bubble {
    border: 1px solid rgba(167, 162, 153, .35);
    border-radius: 12px;
    background: #fbf9f5;
    color: var(--brand-anthracite, #232323);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    box-shadow: none;
}
.blv-public-chat-row--user .blv-public-chat-bubble {
    border-color: var(--brand-anthracite, #232323);
    background: var(--brand-anthracite, #232323);
    color: var(--brand-paper, #f4f1eb);
}
.blv-public-chat-links a {
    border: 1px solid rgba(35, 35, 35, .2);
    background: var(--brand-beige, #d9d3c7);
    color: var(--brand-anthracite, #232323);
    font-weight: 400;
}
.blv-public-chat-links a:hover {
    background: var(--brand-anthracite, #232323);
    color: var(--brand-paper, #f4f1eb);
}
.blv-public-chat-suggestions {
    border-top: 1px solid rgba(167, 162, 153, .35);
    background: var(--brand-paper, #f4f1eb);
}
.blv-public-chat-suggestions button {
    border-color: rgba(167, 162, 153, .7);
    background: transparent;
    color: var(--brand-anthracite, #232323);
    font-family: var(--body);
    font-weight: 400;
    transition: background-color .2s, color .2s, border-color .2s;
}
.blv-public-chat-suggestions button:hover {
    border-color: var(--brand-anthracite, #232323);
    background: var(--brand-anthracite, #232323);
    color: var(--brand-paper, #f4f1eb);
}
.blv-public-chat-form {
    border-top: 1px solid rgba(167, 162, 153, .35);
    background: var(--brand-paper, #f4f1eb);
}
.blv-public-chat-form input {
    border-color: rgba(167, 162, 153, .7);
    background: #fbf9f5;
    color: var(--brand-anthracite, #232323);
    font-family: var(--body);
    font-weight: 300;
}
.blv-public-chat-form input:focus {
    border-color: var(--brand-anthracite, #232323);
    box-shadow: 0 0 0 3px rgba(167, 162, 153, .25);
}
.blv-public-chat-form button {
    background: var(--brand-anthracite, #232323);
    color: var(--brand-beige, #d9d3c7);
    font-family: var(--body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.blv-public-chat-form button:hover:not(:disabled) {
    background: var(--brand-beige, #d9d3c7);
    color: var(--brand-anthracite, #232323);
}

/* ==================== COOKIE BANNER ==================== */
.bv-consent-banner {
    border: 1px solid rgba(167, 162, 153, .45);
    background: var(--brand-paper, #f4f1eb);
    color: var(--brand-anthracite, #232323);
    font-family: var(--body);
}
.bv-consent-copy strong {
    font-weight: 400;
    letter-spacing: .18em;
}
.bv-consent-copy span {
    color: var(--grey, #625f59);
    font-weight: 300;
}
.bv-consent-btn {
    border-color: var(--brand-anthracite, #232323);
    border-radius: 0;
    background: var(--brand-anthracite, #232323);
    color: var(--brand-beige, #d9d3c7);
    font-family: var(--body);
    font-weight: 400;
    letter-spacing: .14em;
}
.bv-consent-btn--ghost {
    background: transparent;
    color: var(--brand-anthracite, #232323);
}

/* ==================== LEGAL PAGES ==================== */
.legal-content ul {
    margin: 12px 0 0;
    padding-left: 18px;
}
.legal-content li {
    margin: 0 0 10px;
    line-height: 1.7;
}
.legal-consent-btn {
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--brand-anthracite, #232323);
    background: var(--brand-anthracite, #232323);
    color: var(--brand-beige, #d9d3c7);
    cursor: pointer;
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: background-color .25s, color .25s;
}
.legal-consent-btn:hover,
.legal-consent-btn:focus-visible {
    background: transparent;
    color: var(--brand-anthracite, #232323);
}
