html body.bg-abogados {
    --bg-ink: #13202C;
    --bg-accent: #1F4E79;
    --bg-accent-hover: #183D60;
    --bg-paper: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-tint: #F3F6F9;
    --bg-text: #13202C;
    --bg-muted: #505C68;
    --bg-muted-soft: #63707C;
    --bg-rule: #D9E1E9;
    --bg-whatsapp: #25D366;
    --bg-linkedin: #0A66C2;
    --bg-serif: "BG Playfair Display", PlayfairDisplay, Georgia, "Times New Roman", serif;
    --bg-sans: "BG Lato", Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: var(--bg-paper);
    color: var(--bg-text);
    font: 16px/1.65 var(--bg-sans);
    -webkit-font-smoothing: antialiased;
}

.bg-abogados *, .bg-abogados *::before, .bg-abogados *::after { box-sizing: border-box; }
.bg-abogados h1, .bg-abogados h2, .bg-abogados h3, .bg-abogados p { margin: 0; }
body.bg-abogados :is(h1, h2, h3) { font-family: var(--bg-serif); }
.bg-abogados h1, .bg-abogados h2, .bg-abogados h3 {
    color: var(--bg-ink);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.05;
}
.bg-abogados h2 { font-size: clamp(2.45rem, 4.5vw, 4.3rem); }
.bg-abogados h1 { font-size: clamp(3rem, 5.8vw, 5.25rem); }
.bg-abogados h3 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); }
.bg-abogados a { color: var(--bg-accent); text-underline-offset: .22em; }
.bg-abogados a:hover { text-decoration-thickness: 2px; }
.bg-abogados :focus-visible { outline: 3px solid var(--bg-accent); outline-offset: 4px; }
.bg-abogados [id] { scroll-margin-top: 1.8rem; }
.bg-wrap { width: min(1200px, calc(100% - 108px)); margin-inline: auto; }
.bg-skip {
    position: fixed;
    z-index: 99999;
    left: 1rem;
    top: 1rem;
    transform: translateY(-180%);
    background: var(--bg-white);
    padding: .6rem 1rem;
}
.bg-skip:focus { transform: none; }

.bg-footer { background: var(--bg-ink); color: var(--bg-white); }
.bg-hero { background: var(--bg-accent); color: var(--bg-white); }
.bg-abogados :is(.bg-hero, .bg-footer) :where(a, h1, h2, h3) { color: var(--bg-white); }
.bg-abogados :is(.bg-hero, .bg-footer) :focus-visible { outline-color: var(--bg-white); }
/* Keep this header visible when the hosting integration hides generic headers. */
.bg-abogados .bg-header {
    display: block !important;
    background: var(--bg-white);
    border-bottom: 1px solid var(--bg-rule);
}
.bg-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.35rem; min-height: 90px; }
.bg-header-brand { display: block; justify-self: start; }
.bg-header-brand img { display: block; width: 88px; height: auto; }
.bg-abogados .bg-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.bg-brand-mark { display: block; width: 48px; height: 48px; flex: 0 0 48px; }
.bg-brand-name { font-size: .77rem; font-weight: 740; letter-spacing: .13em; line-height: 1.35; white-space: nowrap; }
.bg-brand-name small { display: block; font-size: .55rem; letter-spacing: .16em; margin-top: .16rem; }
.bg-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 2.1vw, 2rem); }
.bg-nav > a, .bg-nav-services > a { font-size: .94rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
.bg-nav a[aria-current="page"] { color: var(--bg-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .55em; }
.bg-nav a:hover, .bg-contact-links a:hover { text-decoration: underline; }
.bg-nav-services { position: relative; display: flex; align-items: center; }
.bg-nav-toggle:not([hidden]) { display: grid; place-items: center; }
.bg-nav-toggle {
    width: 30px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bg-accent);
    cursor: pointer;
}
.bg-nav-toggle span { width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.bg-nav-toggle[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
.bg-nav-dropdown:not([hidden]) { display: grid; }
.bg-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    transform: translateX(-50%);
    width: min(34rem, calc(100vw - 2.25rem));
    max-height: 65vh;
    overflow: auto;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--bg-rule);
    box-shadow: 0 12px 28px rgb(19 32 44 / 14%);
}
.bg-nav-group > p { padding: .35rem .5rem; color: var(--bg-muted); font-size: .75rem; font-weight: 750; }
.bg-nav-group a { display: block; padding: .45rem .5rem; font-size: .88rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.bg-nav-group a:hover, .bg-nav-group a:focus-visible { background: var(--bg-tint); }
.bg-nav-group a:focus-visible { outline-offset: -2px; }
.bg-header-social { display: flex; justify-self: end; gap: .6rem; }
.bg-abogados .bg-social-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: var(--bg-white); }
.bg-social-linkedin { background: var(--bg-linkedin); border-radius: 11px; }
.bg-social-whatsapp { background: var(--bg-whatsapp); border-radius: 50%; }
.bg-social-whatsapp img { filter: drop-shadow(0 1px 1px rgb(19 32 44 / 40%)); }
.bg-header-social a:hover { filter: brightness(.9); }
.bg-abogados .bg-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    border: 1px solid transparent;
    border-radius: 2px;
    min-height: 50px;
    padding: .65rem 1.05rem;
    font: 680 .88rem/1.35 var(--bg-sans);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.bg-abogados .bg-button-outline { border-color: var(--bg-rule); min-height: 42px; }
.bg-abogados .bg-button-outline:hover { background: var(--bg-tint); }
.bg-abogados .bg-button-primary { background: var(--bg-accent); color: var(--bg-white); }
.bg-abogados .bg-button-primary:hover { background: var(--bg-accent-hover); }
.bg-button span, .bg-text-link span { font-size: 1.12em; }

.bg-hero { padding-block: clamp(1.75rem, 3.6vw, 3.5rem) clamp(2.4rem, 5vw, 4.75rem); }
.bg-hero-grid { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.bg-abogados .bg-kicker {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .15em;
    line-height: 1.45;
    margin-bottom: 1.1rem;
}
.bg-kicker span { width: 1.35rem; flex: 0 0 1.35rem; height: 1px; background: var(--bg-accent); }
.bg-abogados .bg-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.1; text-wrap: balance; }
.bg-hero-copy > p { margin: .85rem auto 0; max-width: 76ch; color: var(--bg-rule); font-size: clamp(1rem, 1.3vw, 1.12rem); text-align: center; }
.bg-actions { display: flex; align-items: center; justify-content: flex-end; gap: .45rem 1.2rem; flex-wrap: wrap; margin-inline-start: auto; }
.bg-text-link { font-size: .85rem; font-weight: 720; }
.bg-hero-logo { display: block; width: clamp(220px, 29vw, 385px); max-width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.bg-locality { border-block: 1px solid var(--bg-rule); background: var(--bg-tint); color: var(--bg-ink); }
.bg-locality-inner { display: flex; align-items: center; gap: 2rem; min-height: 70px; }
.bg-home-locality { background: var(--bg-white); }
.bg-home-locality .bg-locality-inner { flex-wrap: wrap; gap: .75rem 1.5rem; padding-block: .65rem; }
.bg-locality-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.25rem; }
.bg-locality-label { font-size: .67rem; font-weight: 750; letter-spacing: .14em; }
.bg-locality-links a { display: inline-flex; align-items: baseline; gap: .55rem; font-size: .87rem; font-weight: 650; }
.bg-locality-links a span { font-family: var(--bg-serif); color: var(--bg-ink); }

.bg-section { padding-block: clamp(3.3rem, 6.6vw, 6.1rem); }
.bg-home-grid, .bg-map-grid { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.bg-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bg-home-grid article { border: 1px solid var(--bg-rule); background: var(--bg-tint); padding: 1.25rem; }
.bg-home-grid p { margin-block: .6rem; color: var(--bg-muted); }
.bg-home-grid a, .bg-map-card a { font-size: .9rem; font-weight: 680; }
.bg-page-cta .bg-locality-inner { justify-content: space-between; padding-block: 1.25rem; }
.bg-page-cta h2 { font-size: clamp(1.45rem, 2.7vw, 2.2rem); }
.bg-practice { background: var(--bg-paper); }
.bg-services-heading { margin-bottom: 2.2rem; }
.bg-faq { background: var(--bg-white); }
.bg-section-intro, .bg-more { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem, 5vw, 5rem); }
.bg-section-intro { align-items: end; margin-bottom: 2.2rem; }
.bg-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--bg-rule); border-left: 1px solid var(--bg-rule); }
.bg-service { padding: 1.45rem 1.22rem 1.55rem; border-right: 1px solid var(--bg-rule); border-bottom: 1px solid var(--bg-rule); background: var(--bg-white); }
.bg-number { display: inline-block; font: 1rem/1 var(--bg-serif); color: var(--bg-accent); border-bottom: 1px solid var(--bg-rule); padding-bottom: .35rem; }
.bg-service h3 { margin-block: .85rem .55rem; }
.bg-service p { color: var(--bg-text); font-size: .93rem; }
.bg-practice .bg-more { margin-top: 2.8rem; }
.bg-family { background: var(--bg-tint); padding: clamp(1.2rem, 3vw, 2.4rem); border: 1px solid var(--bg-rule); }
.bg-family-links { border-top: 1px solid var(--bg-rule); }
.bg-family-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem .25rem;
    border-bottom: 1px solid var(--bg-rule);
    font-weight: 680;
    text-decoration: none;
}
.bg-family-links a:hover { text-decoration: underline; }
.bg-family-links a span { flex: none; }
.bg-abogados .bg-service-detail .bg-kicker { margin-top: 1.5rem; }
.bg-service-detail-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.75rem); align-items: center; }
.bg-service-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--bg-rule); }
.bg-abogados .bg-service-description { margin-top: 1.4rem; max-width: 72ch; }
.bg-details { border-top: 1px solid var(--bg-rule); }
.bg-details details { border-bottom: 1px solid var(--bg-rule); }
.bg-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .95rem 0;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
}
.bg-details summary:hover { text-decoration: underline; }
.bg-details summary::-webkit-details-marker { display: none; }
.bg-details details p { margin-bottom: 1.1rem; color: var(--bg-muted); max-width: 62ch; }
.bg-plus { position: relative; width: 13px; height: 13px; flex: 0 0 13px; }
.bg-plus::before, .bg-plus::after { content: ""; position: absolute; inset: 6px 0 auto; border-top: 1px solid currentColor; }
.bg-plus::after { transform: rotate(90deg); }
.bg-details details[open] .bg-plus::after { transform: none; }

.bg-study { background: var(--bg-white); border-block: 1px solid var(--bg-rule); }
.bg-study-intro { grid-template-columns: 1.3fr 1fr; align-items: center; }
.bg-abogados :is(.bg-study-description, .bg-services-heading, .bg-contact-info, .bg-service-detail) h1 {
    font-size: clamp(2.15rem, 4vw, 3.5rem);
}
.bg-study-description p { margin-top: 1rem; max-width: 64ch; color: var(--bg-muted); }
.bg-study-photo { aspect-ratio: 1; background: var(--bg-tint); border: 1px solid var(--bg-rule); }
.bg-study-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bg-study-photo img.bg-study-photo-default { object-position: 50% 68%; }
.bg-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.bg-team article { display: flex; flex-direction: column; border: 1px solid var(--bg-rule); border-top: 2px solid var(--bg-accent); padding: clamp(1.25rem, 2.6vw, 2.1rem); background: var(--bg-white); }
.bg-abogados .bg-role { font-size: .64rem; font-weight: 750; letter-spacing: .15em; margin-bottom: .7rem; color: var(--bg-accent); }
.bg-team h3 { font-size: clamp(1.95rem, 3.1vw, 2.8rem); }
.bg-cv { margin: 1.2rem 0 .8rem; }
.bg-cv > div { border-top: 1px solid var(--bg-rule); padding-block: .65rem; }
.bg-cv dt { color: var(--bg-accent); font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.bg-cv dd { margin: .2rem 0 0; font-size: .93rem; }
.bg-cv-contact { display: grid; justify-items: start; gap: .25rem; margin-top: auto; padding: .75rem 1rem; background: var(--bg-tint); }
.bg-cv-contact a { font-weight: 700; font-size: .88rem; overflow-wrap: anywhere; }
.bg-cv-contact span { margin-inline-start: .3rem; color: var(--bg-muted); font-size: .76rem; }
.bg-process { display: grid; grid-template-columns: .9fr repeat(3, 1fr); gap: 1.3rem; border-top: 1px solid var(--bg-rule); margin-top: 2rem; padding-top: 1.35rem; }
.bg-process p { color: var(--bg-text); font-size: .9rem; }
.bg-process b { display: block; color: var(--bg-accent); font: 1rem/1.2 var(--bg-serif); margin-bottom: .3rem; }

.bg-contact-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(1.8rem, 5.4vw, 5.5rem); align-items: start; }
.bg-contact-info > p:not(.bg-kicker) { margin: 1rem 0 1.05rem; max-width: 44ch; color: var(--bg-muted); }
.bg-email { font-weight: 700; overflow-wrap: anywhere; }
.bg-contact-links, .bg-phones { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin-top: .7rem; font-size: .88rem; }
.bg-contact-links a { text-decoration: none; font-weight: 700; }
.bg-abogados .bg-linkedin { color: var(--bg-linkedin); }
.bg-phones a { font-weight: 650; }
.bg-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.bg-offices article { padding-top: .9rem; border-top: 1px solid var(--bg-rule); }
.bg-offices h3 { font-size: 1.4rem; }
.bg-offices p { margin: .35rem 0; color: var(--bg-muted); font-size: .87rem; }
.bg-offices a { font-size: .82rem; font-weight: 650; }
.bg-form-panel { background: var(--bg-tint); color: var(--bg-text); border: 1px solid var(--bg-rule); border-radius: 22px; padding: clamp(1.25rem, 3.2vw, 2.55rem); }
.bg-form-panel h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.16; letter-spacing: -.035em; }
.bg-form-panel > p:not(.bg-role) { margin-top: .65rem; color: var(--bg-muted); font-size: .9rem; }
.bg-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin: 1.1rem 0; }
.bg-form-fields label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 700; min-width: 0; }
.bg-field-wide { grid-column: 1 / -1; }
.bg-form-fields :is(input, select, textarea) {
    border: 1px solid var(--bg-rule);
    border-radius: 10px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: .5rem .6rem;
    background: var(--bg-white);
    color: var(--bg-ink);
    font: 400 1rem/1.4 var(--bg-sans);
}
.bg-form-fields textarea { resize: vertical; }
.bg-form-panel .bg-button { width: 100%; justify-content: center; border-radius: 50px; margin-top: 1rem; }
.bg-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bg-abogados .bg-form-note { margin-top: .8rem; color: var(--bg-muted-soft); font-size: .78rem; }
.bg-form-status { background: var(--bg-tint); color: var(--bg-text); border-left: 3px solid var(--bg-muted); padding: .65rem .8rem; margin-top: .9rem; font-size: .88rem; }
.bg-form-status.is-success { border-color: var(--bg-accent); }
.bg-maps { background: var(--bg-tint); border-top: 1px solid var(--bg-rule); }
.bg-map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bg-map-card { border: 1px solid var(--bg-rule); background: var(--bg-white); }
.bg-map-card > div { padding: 1.15rem; }
.bg-map-card p { color: var(--bg-muted); margin-block: .35rem; }
.bg-map-card iframe { display: block; width: 100%; height: 280px; border: 0; border-top: 1px solid var(--bg-rule); }
.bg-footer { padding: 2rem 0 calc(6rem + env(safe-area-inset-bottom)); border-top: 1px solid rgb(217 225 233 / 28%); }
.bg-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgb(217 225 233 / 36%); }
.bg-footer-top > a:last-child { font-size: .8rem; }
.bg-legal { padding-top: 1rem; max-width: 88ch; }
body.bg-abogados .bg-legal h2 { font: 700 .82rem/1.4 var(--bg-sans); letter-spacing: normal; margin-bottom: .3rem; }
.bg-legal p { color: var(--bg-rule); font-size: .78rem; }
.bg-abogados .bg-whatsapp {
    position: fixed;
    z-index: 1000;
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    max-width: calc(100% - 2rem - env(safe-area-inset-right));
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .55rem .65rem .55rem 1rem;
    background: var(--bg-white);
    color: var(--bg-ink);
    text-decoration: none;
    border: 1px solid var(--bg-rule);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgb(19 32 44 / 16%);
}
.bg-abogados .bg-whatsapp:hover { border-color: var(--bg-linkedin); transform: translateY(-2px); }
.bg-whatsapp-copy { display: grid; gap: .18rem; line-height: 1.2; }
.bg-whatsapp-copy strong { font-size: .91rem; }
.bg-whatsapp-copy > span { color: var(--bg-muted-soft); font-size: .76rem; }
.bg-abogados .bg-whatsapp .bg-social-icon { width: 52px; height: 52px; box-shadow: 0 0 0 3px rgb(37 211 102 / 16%); }

@media (max-width: 1080px) {
    .bg-wrap { width: calc(100% - 72px); }
    .bg-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .bg-wrap { width: calc(100% - 36px); }
    .bg-header-inner { grid-template-columns: 1fr auto; padding-block: .55rem .8rem; gap: .55rem; }
    .bg-header-brand img { width: 70px; }
    .bg-header-social { grid-column: 2; grid-row: 1; }
    .bg-nav { grid-column: 1 / -1; flex-wrap: wrap; gap: .5rem clamp(.7rem, 4vw, 1.8rem); }
    .bg-nav { position: relative; }
    .bg-nav > a, .bg-nav-services > a { font-size: .83rem; }
    .bg-nav-services { position: static; }
    .bg-nav-toggle { width: 27px; height: 44px; }
    .bg-nav-dropdown { left: 0; width: 100%; transform: none; }
    .bg-section-intro, .bg-more, .bg-contact-grid, .bg-service-detail-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .bg-locality-inner { flex-wrap: wrap; gap: .3rem 1rem; padding-block: .8rem; min-height: 0; }
    .bg-locality-label { flex-basis: 100%; }
    .bg-locality-links a { font-size: .78rem; }
    .bg-actions { column-gap: .75rem; }
    .bg-section-intro, .bg-services-heading { margin-bottom: 1.5rem; }
    .bg-team, .bg-home-grid, .bg-map-grid { grid-template-columns: 1fr; }
    .bg-process { grid-template-columns: 1fr; gap: .65rem; }
    .bg-process b { display: inline; margin-right: .25rem; }
}
@media (max-width: 420px) {
    .bg-nav-dropdown { grid-template-columns: 1fr; gap: .5rem; }
    .bg-service-grid, .bg-form-fields { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
    .bg-abogados .bg-service-description { text-align: justify; hyphens: auto; }
}
