/* ==========================================================================
   Binatax — réplica del sitio WordPress/Elementor original sobre el starter.
   Medidas tomadas del sitio en vivo (nov-2026) a 1440 px y 390 px.
   ========================================================================== */

:root {
    --bx-navy: #162533;
    --bx-slate: #26333c;
    --bx-ink: #1b1b1b;
    --bx-muted: #54595f;
    --bx-soft: #f5f5f5;
    --bx-line: #e6e6e6;
    --bx-font: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bx-container: 1140px;
    --bx-header-h: 61px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--bx-header-h); }

body.bx {
    margin: 0;
    background: #fff;
    color: var(--bx-ink);
    font-family: var(--bx-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: .5px;
    -webkit-font-smoothing: antialiased;
}
body.bx h1, body.bx h2, body.bx h3, body.bx h4, body.bx h5, body.bx h6 {
    font-family: var(--bx-font);
    color: var(--bx-ink);
    margin: 0;
}
body.bx p { margin: 0 0 17px; }
body.bx a { color: inherit; text-decoration: none; }
body.bx > main { padding-bottom: 0; }
/* Botones del starter (404, gracias) con la paleta de Binatax. */
body.bx .btn { background: var(--bx-navy); border-color: var(--bx-navy); color: #fff; border-radius: 0; }
body.bx .btn:hover { background: #22384b; color: #fff; }
.bx-nowrap { white-space: nowrap; }
body.bx img { max-width: 100%; height: auto; display: block; }

.bx-container { width: 100%; max-width: var(--bx-container); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
@media (min-width: 1181px) { .bx-container { padding: 0; } }

.bx-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bx-navy); color: #fff !important;
    font-size: 16px; line-height: 16px; letter-spacing: .5px;
    padding: 20px 40px; border: 1px solid var(--bx-navy);
    transition: background .25s, color .25s;
}
.bx-btn:hover { background: #fff; color: var(--bx-navy) !important; }

/* ---------- Header ---------- */
.bx-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff; height: var(--bx-header-h);
    border-bottom: 1px solid #f0f0f0;
}
.bx-header__inner {
    max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 28px 0 49px;
    display: flex; align-items: center; justify-content: space-between; box-sizing: border-box;
}
.bx-header__logo { flex: 0 0 auto; display: block; }
.bx-header__logo img { width: 171px; height: auto; }

.bx-nav { display: flex; align-items: center; height: 100%; }
.bx-nav__list { display: flex; align-items: stretch; height: 100%; margin: 0; padding: 0; list-style: none; }
.bx-nav__item { position: relative; display: flex; }
.bx-nav__link {
    display: flex; align-items: center; gap: 10px;
    padding: 0 20px; height: 60px;
    font-size: 14px; line-height: 22px; letter-spacing: .15px; text-transform: uppercase;
    color: var(--bx-navy); background: none; border: 0; cursor: pointer; font-family: inherit;
    transition: color .2s;
}
.bx-nav__link:hover, .bx-nav__item.is-active > .bx-nav__link { color: #7b8794; }
.bx-nav__plus { width: 13px; height: 13px; flex: 0 0 13px; }
.bx-nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    margin: 0; padding: 10px 0; list-style: none; background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08); border-top: 1px solid #f0f0f0;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.bx-nav__item--has-sub:hover > .bx-nav__sub,
.bx-nav__item--has-sub:focus-within > .bx-nav__sub,
.bx-nav__item--has-sub.is-open > .bx-nav__sub { opacity: 1; visibility: visible; transform: none; }
.bx-nav__sub a {
    display: block; padding: 8px 24px;
    font-size: 14px; line-height: 22px; letter-spacing: .15px; text-transform: uppercase; color: var(--bx-navy);
}
.bx-nav__sub a:hover { background: var(--bx-soft); }

.bx-header__phone {
    display: flex; align-items: center; gap: 14px; padding-left: 18px;
    font-size: 14px; line-height: 22px; letter-spacing: .15px; color: var(--bx-ink); white-space: nowrap;
}
.bx-header__phone svg { width: 20px; height: 20px; flex: 0 0 20px; }

.bx-burger { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 10px; border: 0; background: none; color: var(--bx-navy); cursor: pointer; }
.bx-burger svg { width: 24px; height: 24px; display: block; }

@media (max-width: 1024px) {
    .bx-header { height: 57px; }
    .bx-header__inner { padding: 0 20px 0 54px; }
    .bx-header__logo img { width: 166px; }
    .bx-burger { display: block; }
    .bx-nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: auto;
        flex-direction: column; align-items: stretch; background: #fff;
        transform: translateX(100%); visibility: hidden; z-index: 60;
        transition: transform .3s ease, visibility 0s linear .3s, box-shadow .3s;
        padding: 64px 0 24px; overflow-y: auto;
    }
    .bx-nav.is-open { transform: none; visibility: visible; box-shadow: -10px 0 40px rgba(0, 0, 0, .12); transition: transform .3s ease, visibility 0s, box-shadow .3s; }
    .bx-nav__close { position: absolute; top: 10px; right: 10px; }
    .bx-nav__list { flex-direction: column; height: auto; }
    .bx-nav__item { flex-direction: column; }
    .bx-nav__link { height: auto; padding: 14px 28px; justify-content: space-between; width: 100%; box-sizing: border-box; text-align: left; }
    .bx-nav__sub {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
        padding: 0 0 6px; display: none;
    }
    .bx-nav__item--has-sub.is-open > .bx-nav__sub { display: block; }
    .bx-nav__item--has-sub:hover > .bx-nav__sub { display: none; }
    .bx-nav__item--has-sub.is-open:hover > .bx-nav__sub { display: block; }
    .bx-nav__sub a { padding: 10px 44px; }
    .bx-header__phone { padding: 18px 28px 0; }
    .bx-scrim { position: fixed; inset: 0; background: rgba(22, 37, 51, .35); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    .bx-scrim.is-open { opacity: 1; visibility: visible; }
}
@media (min-width: 1025px) { .bx-nav__close, .bx-scrim { display: none; } }

/* ---------- Portada ---------- */
.bx-hero {
    position: relative; min-height: 700px; display: flex; align-items: center;
    background: var(--bx-slate) url('/assets/img/hero.webp') center right / cover no-repeat;
}
.bx-hero::before { content: ''; position: absolute; inset: 0; background: var(--bx-slate); opacity: .53; }
.bx-hero__inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 0 0 0; }
.bx-hero__title {
    max-width: 600px;
    font-size: 90px !important; font-weight: 300 !important; line-height: 100px !important;
    letter-spacing: -1.5px; text-transform: uppercase; color: #fff !important;
}

.bx-intro {
    position: relative; overflow: hidden; padding: 50px 20px;
    min-height: 641px; display: flex; align-items: center; box-sizing: border-box;
    background: url('/assets/img/edificio.webp') bottom right / 40% auto no-repeat fixed;
}
.bx-intro::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: .8; }
.bx-intro__inner { position: relative; max-width: var(--bx-container); margin: 0 auto; text-align: center; }
.bx-intro__claim { font-size: 42px !important; font-weight: 300 !important; line-height: 60px !important; text-transform: uppercase; margin-bottom: 20px !important; }
.bx-intro .bx-intro__text { max-width: 800px; margin: 0 auto; font-size: 27px; font-weight: 200; line-height: 28px; }

.bx-areas {
    position: relative; padding: 160px 20px;
    background: var(--bx-slate) url('/assets/img/fondo-areas.webp') center / cover no-repeat;
}
.bx-areas::before { content: ''; position: absolute; inset: 0; background: var(--bx-slate); opacity: .74; }
.bx-areas__grid {
    position: relative; max-width: 1020px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bx-box { position: relative; display: block; height: 250px; overflow: hidden; }
.bx-box__front, .bx-box__back {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 4px; text-align: center; transition: opacity .45s ease, transform .45s ease;
}
.bx-box__front { background: #fff; border: 1px solid var(--bx-ink); }
.bx-box__title { font-size: 23px !important; font-weight: 300 !important; line-height: 50px !important; letter-spacing: .25px; text-transform: uppercase; color: #000 !important; }
.bx-box__back { background: var(--bx-navy); color: #fff; gap: 40px; opacity: 0; transform: scale(1.04); }
.bx-box__icon { width: 36px; height: 36px; color: #fff; }
.bx-box__more { display: inline-block; padding: 20px 44px; border: 1px solid #fff; font-size: 16px; line-height: 16px; letter-spacing: .5px; color: #fff; }
.bx-box:hover .bx-box__back, .bx-box:focus-visible .bx-box__back { opacity: 1; transform: none; }
.bx-box:hover .bx-box__front, .bx-box:focus-visible .bx-box__front { opacity: 0; }

.bx-about { padding: 80px 20px 100px; }
.bx-about__title { text-align: center; font-size: 50px !important; font-weight: 300 !important; line-height: 60px !important; text-transform: uppercase; margin-bottom: 20px !important; }
.bx-about__text { max-width: 907px; margin: 0 auto; text-align: justify; }

.bx-team { max-width: 1000px; margin: 50px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.bx-member { background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); padding: 25px 30px; text-align: center; }
.bx-member__photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bx-member__name { margin-top: 0 !important; font-size: 20px !important; font-weight: 300 !important; line-height: 50px !important; letter-spacing: .25px; text-transform: uppercase; color: #000 !important; }
.bx-member__name strong { font-weight: 500; }
.bx-member__role { margin: -14px 0 0 !important; font-size: 14px; line-height: 28px; color: rgba(22, 37, 51, .59); }
.bx-member__desc { margin: 10px 0 !important; color: var(--bx-muted); }
.bx-member .bx-btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.bx-footer { background: var(--bx-navy); color: #fff; padding: 50px 20px; }
.bx-footer__grid {
    max-width: var(--bx-container); margin: 0 auto;
    display: grid; grid-template-columns: 570px 260px 230px; align-items: start;
}
.bx-footer__logo { width: 204px; margin: 0 0 18px 4px; }
.bx-footer .bx-footer__claim { max-width: 470px; margin: 0; }
.bx-footer__heading { margin: 20px 0 22px !important; font-size: 14px !important; font-weight: 400 !important; line-height: 22px !important; letter-spacing: .15px; text-transform: uppercase; color: #fff !important; }
.bx-footer__list { list-style: none; margin: 0; padding: 0; }
.bx-footer__list a { display: flex; align-items: center; gap: 15px; }
.bx-footer__list svg { width: 20px; height: 18px; flex: 0 0 20px; }
.bx-footer__address strong { font-weight: 600; }
.bx-footer a:hover { opacity: .75; }

/* ---------- Páginas interiores ---------- */
.bx-page-soft { background: var(--bx-soft); }
.bx-practice { padding: 100px 20px 150px; }
.bx-practice__title { text-align: center; font-size: 50px !important; font-weight: 300 !important; line-height: 60px !important; text-transform: uppercase; margin-bottom: 40px !important; }
.bx-practice__item { max-width: 1140px; margin: 0 auto; padding: 40px 20px 20px; box-sizing: border-box; scroll-margin-top: calc(var(--bx-header-h) + 10px); }
.bx-practice__item:nth-of-type(odd) { border: 1px solid var(--bx-line); }
.bx-practice__item h2 { font-size: 50px !important; font-weight: 300 !important; line-height: 60px !important; text-transform: uppercase; margin-bottom: 24px !important; }
.bx-practice__body { text-align: justify; }

.bx-profile { padding: 80px 20px; }
.bx-profile__card { max-width: 562px; margin: 0 auto; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); padding: 30px; box-sizing: border-box; }
.bx-profile__photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bx-profile__name { text-align: center; margin-top: 18px !important; font-size: 24px !important; font-weight: 400 !important; line-height: 34px !important; text-transform: uppercase; }
.bx-profile__name strong { font-weight: 600; }
.bx-profile__role { text-align: center; color: rgba(22, 37, 51, .59); margin: 8px 0 18px !important; }
.bx-tabs__list { display: flex; gap: 6px; border-bottom: 1px solid var(--bx-line); margin-bottom: 20px; }
.bx-tabs__tab {
    font: inherit; font-size: 14px; letter-spacing: .5px; color: var(--bx-muted);
    background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    padding: 8px 14px; cursor: pointer;
}
.bx-tabs__tab[aria-selected="true"] { color: var(--bx-navy); border-bottom-color: var(--bx-navy); font-weight: 500; }
.bx-tabs__panel[hidden] { display: none; }
.bx-profile__actions { text-align: center; margin-top: 30px; }

/* ---------- Blog ---------- */
.bx-blog { padding: 70px 20px 80px; }
.bx-blog__title { text-align: center; font-size: 66px !important; font-weight: 300 !important; line-height: 80px !important; text-transform: uppercase; }
.bx-blog__lead { text-align: center; margin: 22px 0 40px !important; }
.bx-blog__grid { max-width: var(--bx-container); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 50px; }
.bx-entry__title { font-size: 24px !important; font-weight: 300 !important; line-height: 31px !important; letter-spacing: -.5px; text-transform: uppercase; }
.bx-entry__title a:hover { color: #7b8794; }
.bx-entry__date { display: block; margin: 0 0 14px; }
.bx-entry__more { font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.bx-entry__more:hover { color: #7b8794; }
.bx-pager { display: flex; justify-content: center; gap: 4px; margin-top: 30px; }
.bx-pager a, .bx-pager span { min-width: 20px; padding: 0 4px; text-align: center; }
.bx-pager span[aria-current] { color: #7b8794; }
.bx-blog__empty { text-align: center; color: var(--bx-muted); }

.bx-post { padding: 100px 20px 60px; }
.bx-post__head { max-width: 1140px; margin: 0 auto 50px; text-align: center; }
.bx-post__cat { display: inline-block; padding: 3px 12px; background: #dcdcdc; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.bx-post__title { margin-top: 12px !important; font-size: 24px !important; font-weight: 400 !important; line-height: 35px !important; text-transform: uppercase; }
.bx-post__meta { margin-top: 34px; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.bx-post__body { max-width: 866px; margin: 0 auto; }
.bx-post__img { width: 100%; margin-bottom: 30px; }
.bx-post__body a { color: var(--bx-navy); text-decoration: underline; text-decoration-color: rgba(22, 37, 51, .3); text-underline-offset: 3px; overflow-wrap: anywhere; }
.bx-post__body ul, .bx-post__body ol { padding-left: 1.3em; margin: 0 0 17px; }
.bx-post__body h2, .bx-post__body h3, .bx-post__body h4 { font-weight: 500; margin: 30px 0 12px; }
.bx-post__body h2 { font-size: 24px; line-height: 32px; }
.bx-post__body h3 { font-size: 20px; line-height: 28px; }
.bx-post__rule { max-width: 866px; margin: 40px auto 0; border: 0; border-top: 1px dashed #ccc; }

.bx-related { padding: 30px 20px 100px; }
.bx-related__head { max-width: var(--bx-container); margin: 0 auto 60px; display: flex; align-items: center; gap: 30px; font-size: 14px; letter-spacing: .15px; text-transform: uppercase; color: var(--bx-navy); }
.bx-related__head::before, .bx-related__head::after { content: ''; flex: 1; border-top: 1px dashed #ccc; }
.bx-related__grid { max-width: var(--bx-container); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px 40px; }
.bx-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 30px; }
.bx-card__meta { display: flex; gap: 14px; margin-bottom: 12px; font-size: 18px; }
.bx-card__title { font-size: 24px !important; font-weight: 400 !important; line-height: 34px !important; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .bx-hero__inner { padding: 0 20px; }
    .bx-hero__title { font-size: 70px !important; line-height: 80px !important; }
    .bx-areas__grid { grid-template-columns: repeat(2, 1fr); }
    .bx-team { grid-template-columns: repeat(2, 1fr); }
    .bx-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
    .bx-footer__brand { grid-column: 1 / -1; }
    .bx-intro { background-attachment: scroll; background-size: 50% auto; }
}
@media (max-width: 767px) {
    .bx-hero { min-height: 480px; align-items: flex-end; padding-bottom: 45px; box-sizing: border-box; }
    .bx-hero__title { font-size: 48px !important; line-height: 54px !important; letter-spacing: -1px; }
    .bx-intro { min-height: 0; padding: 120px 20px 100px; }
    .bx-intro__claim { font-size: 34px !important; line-height: 36px !important; }
    .bx-intro__text { font-size: 22px; line-height: 28px; }
    .bx-areas { padding: 60px 30px; }
    .bx-areas__grid { grid-template-columns: 1fr; gap: 20px; }
    .bx-box__title { font-size: 21px !important; line-height: 32px !important; }
    .bx-about { padding: 60px 20px 70px; }
    .bx-about__title { font-size: 36px !important; line-height: 44px !important; }
    .bx-team { grid-template-columns: 1fr; gap: 30px; max-width: 360px; }
    .bx-footer__grid { grid-template-columns: 1fr; }
    .bx-practice { padding: 60px 16px 80px; }
    .bx-practice__title { font-size: 36px !important; line-height: 44px !important; }
    .bx-practice__item h2 { font-size: 30px !important; line-height: 38px !important; }
    .bx-practice__body { text-align: left; }
    .bx-profile { padding: 40px 16px 60px; }
    .bx-profile__card { padding: 20px; }
    .bx-blog__title { font-size: 40px !important; line-height: 48px !important; }
    .bx-blog__grid, .bx-related__grid { grid-template-columns: 1fr; }
    .bx-post { padding: 60px 16px 40px; }
    .bx-entry__title { font-size: 21px !important; line-height: 28px !important; }
    .bx-card__title { font-size: 20px !important; line-height: 28px !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bx-box__front, .bx-box__back, .bx-nav, .bx-nav__sub { transition: none; }
}
