/* ==========================================================================
   1. BOTONES (reutilizables en todo el sitio)
   ========================================================================== */

.bd-btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-textos);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.bd-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.bd-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bd-btn--primary {
    background-color: var(--grafito);
    color: var(--blanco);
}

.bd-btn--primary:hover {
    background-color: var(--champagne);
    color: var(--grafito);
}

.bd-btn--secondary {
    background-color: transparent;
    color: var(--grafito);
    border: 1px solid var(--grafito);
}

.bd-btn--secondary:hover {
    background-color: var(--grafito);
    color: var(--blanco);
}

.bd-btn--nosotros {
    color: #cfaf75;
    border-color: #cfaf75;
}

.bd-btn--nosotros:hover {
    background-color: #cfaf75;
    color: #575a5e;
}


/* ==========================================================================
   2. HEADER
   ========================================================================== */

.bd-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--marfil);
    border-bottom: 1px solid rgba(107, 111, 114, 0.15);
}

.bd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.bd-header__logo img {
    height: auto;
    max-height: 58px;
    width: auto;
}

.bd-header__logo-image {
    display: block;
    line-height: 0;
}

.bd-header__logo-image img {
    display: block;
    width: auto;
    max-width: 190px;
    height: auto;
    max-height: 62px;
    object-fit: contain;
}

.bd-header__logo-text {
    font-family: var(--font-titulos);
    font-size: 20px;
    letter-spacing: 1px;
    color: #575a5e;
}

.bd-header__logo-text span {
    display: block;
    font-family: var(--font-textos);
    font-size: 11px;
    letter-spacing: 3px;
    color: #cfaf75;
    text-align: center;
}

.bd-menu {
    display: flex;
    gap: 40px;
}

.bd-menu a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--grafito);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.bd-menu a:hover {
    color: var(--champagne);
}

.bd-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--champagne);
    transition: width 0.3s ease;
}

.bd-menu a:hover::after {
    width: 100%;
}

.bd-header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.bd-header__toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--grafito);
}

/* ==========================================================================
   3. HERO
   ========================================================================== */

.bd-hero {
    padding-top: 100px;
    padding-bottom: 100px;
}

.bd-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.bd-hero__content {
    max-width: 520px;
}

.bd-hero__eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: #575a5e;
    margin-bottom: 12px;
}

.bd-hero__content--centered {
    text-align: center;
    margin: 0 auto;
}

.bd-hero__content--centered .bd-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
}

.bd-hero__content--centered .bd-btn {
    display: inline-block;
}

.bd-hero__mark {
    display: block;
    font-family: 'Libre Caslon Text', serif;
    font-size: 55px;
    font-weight: 500;
    letter-spacing: 14px;
    color: #575a5e;
    margin-bottom: 20px;
}

.bd-hero__mark i {
    font-style: normal;
    color: #cfaf75;
    opacity: 0.6;
    margin: 0 6px;
    font-weight: 300;
}

.bd-hero__logo {
    display: block;
    width: clamp(150px, 22vw, 240px);
    height: auto;
    margin: 0 auto 18px;
    mix-blend-mode: multiply;
}

.bd-hero__logo--full {
    width: min(100%, 500px);
    max-height: 240px;
    object-fit: contain;
    margin: 10px auto 24px;
}

.bd-hero__title {
    font-family: 'Libre Caslon Text', serif;
    font-size: 55px;
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
    color: #575a5e;
    margin-bottom: 24px;
}

.bd-hero__title--brand {
    margin-bottom: 4px;
}

.bd-hero__sufijo {
    display: block;
    font-family: 'Karla', sans-serif;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-size: 16px;
    color: #cfaf75;
    opacity: 0.75;
    margin-bottom: 32px;
}

.bd-hero__subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: #575a5e;
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 420px;
}

.bd-hero__image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.4s ease;
}

.bd-hero__image:hover {
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.bd-hero__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(107, 111, 114, 0.15));
    pointer-events: none;
    z-index: 1;
}

.bd-hero__image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.6s ease;
}

.bd-hero__image:hover img {
    transform: scale(1.06);
}

.bd-mosaico {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    aspect-ratio: 1 / 1;
}

.bd-mosaico img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    filter: grayscale(0.2);
}

.bd-mosaico:hover img {
    transform: none;
}

.bd-wa-flotante {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    animation: bd-wa-pulso 2.2s infinite, bd-wa-flota 3s ease-in-out infinite;
}

.bd-wa-flotante:hover {
    transform: scale(1.08);
}

@keyframes bd-wa-pulso {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes bd-wa-flota {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

.bd-notaria-flotante {
    position: fixed;
    left: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    display: flex;
    max-width: 280px;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-left: 3px solid #cfaf75;
    border-radius: 6px;
    background: #575a5e;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s, transform 0.3s;
}

.bd-notaria-flotante.bd-oculto {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.bd-notaria-flotante:hover {
    transform: translateY(-3px);
}

.bd-notaria-flotante img {
    width: 42px;
    height: 42px;
    padding: 3px;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
}

.bd-notaria-flotante span {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.bd-notaria-flotante small {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
}

.bd-footer .custom-logo {
    max-height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
}

.bd-equipo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.bd-equipo__card {
    padding: 22px;
    border-top: 3px solid #cfaf75;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.bd-equipo__card h3 {
    margin: 0 0 4px;
    color: #575a5e;
}

.bd-equipo__rol {
    margin: 0 0 10px;
    color: #cfaf75;
    font-size: 13px;
    font-weight: 700;
}

.bd-footer {
    padding-bottom: 90px;
}

@media (max-width: 600px) {
    .bd-notaria-flotante {
        max-width: calc(100vw - 110px);
        padding: 8px 12px 8px 8px;
    }

    .bd-notaria-flotante small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bd-wa-flotante {
        animation: none;
    }
}

/* Mantiene la proporción del mosaico frente a las alturas responsive del hero. */
.bd-mosaico {
    aspect-ratio: 1 / 1;
}

.bd-mosaico img {
    height: 100%;
}


/* ==========================================================================
   4. ÁREAS DE PRÁCTICA
   ========================================================================== */

.bd-areas {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--blanco);
}

.bd-areas__title {
    font-family: var(--font-titulos);
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.bd-areas__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--champagne);
    margin: 20px auto 0;
}

.bd-areas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
}

.bd-areas__card {
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease;
}

.bd-areas__card:hover {
    transform: translateY(-8px);
}

.bd-areas__image {
    display: block;
    height: 220px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.35s ease;
}

.bd-areas__card:hover .bd-areas__image {
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.16);
}

.bd-areas__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.5s ease;
}

.bd-areas__card:hover .bd-areas__image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.bd-areas__meta {
    display: flex;
    flex-direction: column;
}

.bd-areas__card-title {
    font-family: var(--font-titulos);
    font-size: 19px;
    font-weight: 600;
    color: var(--grafito);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.bd-areas__card-title:hover {
    color: var(--champagne);
}

.bd-areas__arrow {
    display: inline-block;
    margin-right: 6px;
    color: var(--champagne);
    transition: transform 0.3s ease;
}

.bd-areas__card:hover .bd-areas__arrow {
    transform: translateX(4px);
}

.bd-areas__card-subtitle {
    font-size: 13px;
    color: var(--grafito);
    opacity: 0.6;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   5. NOSOTROS
   ========================================================================== */

.bd-nosotros {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--marfil);
}

.bd-nosotros__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.bd-nosotros__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 16px;
}

.bd-nosotros__title {
    font-family: var(--font-titulos);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--grafito);
    margin-bottom: 24px;
}

.bd-nosotros__text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--grafito);
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 460px;
}

.bd-nosotros__claim {
    font-family: var(--font-titulos);
    font-style: italic;
    font-size: 20px;
    color: var(--grafito);
    padding-left: 20px;
    border-left: 2px solid var(--champagne);
    margin-bottom: 36px;
    max-width: 420px;
}

.bd-nosotros__image {
    border-radius: 4px;
    overflow: hidden;
}

.bd-nosotros__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 4px;
}

/* Placeholder mientras no exista assets/images/nosotros.jpg */
.bd-nosotros__image-placeholder {
    width: 100%;
    height: 480px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--champagne) 0%, var(--grafito) 100%);
    opacity: 0.35;
}

/* Alterna la imagen a la izquierda en esta sección (variación visual) */
.bd-nosotros__inner {
    direction: rtl;
}

.bd-nosotros__inner > * {
    direction: ltr;
}

/* ==========================================================================
   6B. TESTIMONIOS
   ========================================================================== */

.bd-testimonios {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--marfil);
}

.bd-testimonios__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.bd-testimonios__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bd-testimonios__eyebrow {
    font-family: var(--font-textos);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--gris-claro);
    margin-bottom: 12px;
}

.bd-testimonios__title {
    font-size: 34px;
    margin-bottom: 24px;
}

.bd-testimonios__link {
    font-family: var(--font-textos);
    font-weight: 600;
    color: var(--grafito);
    border-bottom: 1px solid var(--grafito);
    padding-bottom: 4px;
    align-self: flex-start;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.bd-testimonios__link:hover {
    color: var(--champagne);
    border-color: var(--champagne);
}

.bd-testimonios__card {
    background-color: var(--blanco);
    border: 1px solid rgba(107, 111, 114, 0.15);
    border-radius: 4px;
    padding: 32px;
    position: relative;
}

.bd-testimonios__quote {
    display: block;
    font-family: var(--font-titulos);
    font-size: 48px;
    line-height: 1;
    color: var(--champagne);
    margin-bottom: 12px;
}

.bd-testimonios__text {
    color: var(--grafito);
    margin-bottom: 24px;
    font-size: 15px;
}

.bd-testimonios__autor {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bd-testimonios__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--champagne);
    color: var(--blanco);
    font-family: var(--font-titulos);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bd-testimonios__foto {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bd-testimonios__card:hover .bd-testimonios__avatar,
.bd-testimonios__card:hover .bd-testimonios__foto {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px var(--champagne);
}

.bd-testimonios__nombre {
    display: block;
    font-weight: 600;
    color: var(--grafito);
    font-size: 14px;
}

.bd-testimonios__cargo {
    display: block;
    color: var(--gris-claro);
    font-size: 13px;
}

@media (max-width: 768px) {
    .bd-testimonios__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   7. BLOG
   ========================================================================== */

.bd-blog {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--blanco);
}

.bd-blog__title {
    font-family: var(--font-titulos);
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.bd-blog__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--champagne);
    margin: 20px auto 0;
}

.bd-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.bd-blog__card {
    background-color: var(--marfil);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.bd-blog__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 111, 114, 0.12);
}

.bd-blog__card-image {
    display: block;
    overflow: hidden;
    height: 220px;
}

.bd-blog__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bd-blog__card:hover .bd-blog__card-image img {
    transform: scale(1.08);
}

/* Placeholder mientras no exista assets/images/blog-placeholder.jpg */
.bd-blog__card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--champagne) 0%, var(--grafito) 100%);
    opacity: 0.35;
}

.bd-blog__card-content {
    padding: 28px 24px;
}

.bd-blog__card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 12px;
}

.bd-blog__card-title {
    font-family: var(--font-titulos);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.bd-blog__card-title a {
    color: var(--grafito);
    transition: color 0.3s ease;
}

.bd-blog__card-title a:hover {
    color: var(--champagne);
}

.bd-blog__card-date {
    display: block;
    font-size: 12px;
    color: var(--grafito);
    opacity: 0.6;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.bd-blog__card-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--grafito);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.bd-blog__card-link:hover {
    color: var(--champagne);
}

.bd-blog__empty {
    text-align: center;
    font-size: 15px;
    opacity: 0.7;
    padding: 40px 0;
}

/* ==========================================================================
   7. CONTACTO
   ========================================================================== */

.bd-contacto {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--marfil);
}

.bd-contacto__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bd-contacto__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 16px;
}

.bd-contacto__title {
    font-family: var(--font-titulos);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

.bd-contacto__text {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 420px;
}

.bd-contacto__datos {
    margin-bottom: 32px;
}

.bd-contacto__datos li {
    font-size: 14px;
    line-height: 2.2;
    color: var(--grafito);
}

.bd-contacto__datos li strong {
    display: inline-block;
    width: 110px;
    font-weight: 600;
    color: var(--grafito);
}

.bd-contacto__datos li a {
    color: var(--grafito);
    opacity: 0.85;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.bd-contacto__datos li a:hover {
    color: var(--champagne);
    opacity: 1;
}

.bd-contacto__redes {
    display: flex;
}

/* ---------- Formulario ---------- */

.bd-contacto__form {
    background-color: var(--blanco);
    padding: 48px;
    border-radius: 4px;
}

.bd-form__group {
    margin-bottom: 22px;
}

.bd-form__group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--grafito);
    margin-bottom: 8px;
}

.bd-form__group input,
.bd-form__group select,
.bd-form__group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-textos);
    font-size: 14px;
    color: var(--grafito);
    background-color: var(--marfil);
    border: 1px solid rgba(107, 111, 114, 0.2);
    border-radius: 2px;
    transition: border-color 0.3s ease;
}

.bd-form__group input:focus,
.bd-form__group select:focus,
.bd-form__group textarea:focus {
    outline: none;
    border-color: var(--champagne);
}

.bd-form__group textarea {
    resize: vertical;
}

.bd-contacto__form .bd-btn {
    width: 100%;
    border: none;
}

/* Campo trampa anti-spam: oculto para personas, visible para bots */
.bd-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bd-form__aviso {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 14px;
}

.bd-form__aviso--ok {
    background-color: rgba(99, 153, 34, 0.12);
    color: #3b6d11;
}

.bd-form__aviso--error {
    background-color: rgba(226, 75, 74, 0.12);
    color: #a32d2d;
}

/* ==========================================================================
   7.5. NUESTROS ALIADOS (módulo opcional)
   ========================================================================== */

.bd-aliados {
    padding-top: 70px;
    padding-bottom: 70px;
    background-color: var(--blanco);
    text-align: center;
}

.bd-aliados__title {
    font-family: var(--font-titulos);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
}

.bd-aliados__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.bd-aliados__logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.bd-aliados__logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.bd-footer {
    background-color: var(--grafito);
    padding-top: 64px;
    padding-bottom: 32px;
}

.bd-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.bd-footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px 56px;
    align-items: start;
}

.bd-footer__brand {
    text-align: left;
}

.bd-footer__accent {
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 18px;
    background-color: var(--champagne);
}

.bd-footer__logo-text {
    font-family: var(--font-titulos);
    font-size: 18px;
    color: var(--blanco);
}

.bd-footer__logo-image {
    display: inline-flex;
    align-items: center;
    width: 210px;
    min-height: 76px;
    padding: 8px 12px;
    background: var(--marfil);
    border-radius: 3px;
    line-height: 0;
}

.bd-footer__logo-image img {
    display: block;
    width: 100%;
    max-height: 76px;
    object-fit: contain;
}

.bd-footer__logo-text em {
    display: block;
    font-family: var(--font-textos);
    font-style: normal;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--champagne);
    margin-top: 4px;
}

.bd-footer__tagline {
    max-width: 280px;
    margin-top: 14px;
    color: var(--marfil);
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

.bd-footer__titulo {
    display: block;
    margin-bottom: 14px;
    color: var(--champagne);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bd-footer-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bd-footer-menu a {
    font-size: 13px;
    color: var(--marfil);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.bd-footer-menu a:hover {
    opacity: 1;
    color: var(--champagne);
}

.bd-footer__contacto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    overflow-wrap: anywhere;
    gap: 12px;
    font-size: 13px;
    color: var(--marfil);
    text-align: left;
}

.bd-footer__contacto .bd-footer__titulo {
    margin-bottom: 2px;
}

.bd-footer__contacto > a,
.bd-footer__contacto > span:not(.bd-footer__titulo) {
    opacity: 0.85;
}

.bd-footer__contacto a {
    transition: color 0.3s ease;
}

.bd-footer__contacto a:hover {
    color: var(--champagne);
}

.bd-footer__social {
    display: flex;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(241, 237, 230, 0.18);
}

.bd-footer__bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(241, 237, 230, 0.18);
}

.bd-footer__copy {
    font-size: 12px;
    color: var(--marfil);
    opacity: 0.5;
    text-align: left;
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */

/* ---------- TABLET (hasta 1024px) ---------- */

@media (max-width: 1024px) {

    .bd-areas__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bd-blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bd-hero__title {
        font-size: 40px;
    }

    .bd-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .bd-footer__brand {
        grid-column: 1 / -1;
    }

    .container {
        padding: 0 32px;
    }
}


/* ---------- MÓVIL GRANDE / TABLET VERTICAL (hasta 768px) ---------- */

@media (max-width: 768px) {

    /* --- Header --- */
    .bd-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--marfil);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 200;
    }

    .bd-menu.is-active {
        right: 0;
    }

    .bd-header__toggle {
        display: flex;
        z-index: 300;
    }

    .bd-header__toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .bd-header__toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .bd-header__toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* --- Hero --- */
    .bd-hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* En móvil el orden es: textos -> imagen -> botón */
    .bd-hero__inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bd-hero__content {
        display: contents;
    }

    .bd-hero__image {
        order: 1;
        margin: 36px 0;
    }

    .bd-hero__content .bd-btn {
        order: 2;
    }

    .bd-hero__image img {
        height: 320px;
    }

    .bd-hero__title {
        font-size: 32px;
    }

    /* --- Áreas de práctica --- */
    .bd-areas {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .bd-areas__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* --- Nosotros --- */
    .bd-nosotros {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .bd-nosotros__inner {
        grid-template-columns: 1fr;
        direction: ltr; /* anulamos el truco rtl en móvil */
        gap: 32px;
    }

    .bd-nosotros__image img {
        height: 300px;
    }

    /* --- Blog --- */
    .bd-blog {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .bd-blog__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* --- Contacto --- */
    .bd-contacto {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .bd-contacto__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bd-contacto__form {
        padding: 32px 24px;
    }

    /* --- Footer --- */
    .bd-footer__top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

}


/* ---------- MÓVIL PEQUEÑO (hasta 480px) ---------- */

@media (max-width: 480px) {

    .container {
        padding: 0 20px;
    }

    .bd-hero__title {
        font-size: 28px;
    }

    .bd-hero__image img {
        height: 240px;
    }

    .bd-areas__title,
    .bd-blog__title {
        font-size: 28px;
    }

    .bd-nosotros__title,
    .bd-contacto__title {
        font-size: 26px;
    }

    .bd-nosotros__claim {
        font-size: 17px;
    }

    .bd-btn {
        width: 100%;
        text-align: center;
    }

    .bd-contacto__form {
        padding: 24px 18px;
    }
}

/* ==========================================================================
   10. SINGLE (artículo individual del blog)
   ========================================================================== */

.bd-single {
    padding-top: 80px;
    padding-bottom: 100px;
}

.bd-single__container {
    max-width: 760px;
}

.bd-single__category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 16px;
}

.bd-single__title {
    font-family: var(--font-titulos);
    font-size: 38px;
    line-height: 1.3;
    color: var(--grafito);
    margin-bottom: 20px;
}

.bd-single__meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--grafito);
    opacity: 0.6;
    margin-bottom: 40px;
}

.bd-single__image {
    margin-bottom: 48px;
    border-radius: 4px;
    overflow: hidden;
}

.bd-single__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.bd-single__content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--grafito);
}

.bd-single__content p {
    margin-bottom: 24px;
}

.bd-single__content h2 {
    font-family: var(--font-titulos);
    font-size: 26px;
    margin-top: 48px;
    margin-bottom: 20px;
}

.bd-single__content h3 {
    font-family: var(--font-titulos);
    font-size: 21px;
    margin-top: 36px;
    margin-bottom: 16px;
}

.bd-single__content ul,
.bd-single__content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.bd-single__content ul {
    list-style: disc;
}

.bd-single__content ol {
    list-style: decimal;
}

.bd-single__content li {
    margin-bottom: 8px;
}

.bd-single__content a {
    color: var(--champagne);
    text-decoration: underline;
}

.bd-single__content blockquote {
    border-left: 3px solid var(--champagne);
    padding-left: 24px;
    font-style: italic;
    margin: 32px 0;
    opacity: 0.85;
}

.bd-single__content img {
    border-radius: 4px;
    margin: 32px 0;
}

.bd-single__footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(107, 111, 114, 0.15);
}


/* Responsive */
@media (max-width: 768px) {
    .bd-single {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .bd-single__title {
        font-size: 28px;
    }

    .bd-single__content {
        font-size: 15px;
    }
}

/* ==========================================================================
   11. ARCHIVE (listado completo del blog /blog)
   ========================================================================== */

.bd-archive {
    padding-top: 80px;
    padding-bottom: 100px;
}

.bd-archive__header {
    text-align: center;
    margin-bottom: 60px;
}

.bd-archive__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 12px;
}

.bd-archive__title {
    font-family: var(--font-titulos);
    font-size: 40px;
    color: var(--grafito);
}

.bd-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.bd-archive__pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.bd-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--grafito);
    background-color: var(--blanco);
    border: 1px solid rgba(107, 111, 114, 0.15);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.bd-archive__pagination .page-numbers:hover,
.bd-archive__pagination .page-numbers.current {
    background-color: var(--grafito);
    color: var(--blanco);
    border-color: var(--grafito);
}


/* Responsive */
@media (max-width: 1024px) {
    .bd-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bd-archive {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .bd-archive__title {
        font-size: 30px;
    }

    .bd-archive__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* ==========================================================================
   12. PAGE (páginas genéricas)
   ========================================================================== */

.bd-page {
    padding-top: 80px;
    padding-bottom: 100px;
}

.bd-page__container {
    max-width: 760px;
}

.bd-page__title {
    font-family: var(--font-titulos);
    font-size: 38px;
    color: var(--grafito);
    margin-bottom: 32px;
}

.bd-page__image {
    margin-bottom: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.bd-page__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.bd-page__content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--grafito);
}

.bd-page__content p {
    margin-bottom: 24px;
}

.bd-page__content h2 {
    font-family: var(--font-titulos);
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.bd-page__content ul,
.bd-page__content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.bd-page__content li {
    margin-bottom: 8px;
}

.bd-page__content a {
    color: var(--champagne);
    text-decoration: underline;
}


/* ==========================================================================
   13. 404
   ========================================================================== */

.bd-404 {
    padding-top: 120px;
    padding-bottom: 140px;
}

.bd-404__container {
    text-align: center;
    max-width: 480px;
}

.bd-404__code {
    display: block;
    font-family: var(--font-titulos);
    font-size: 100px;
    font-weight: 600;
    color: var(--champagne);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 16px;
}

.bd-404__title {
    font-family: var(--font-titulos);
    font-size: 30px;
    color: var(--grafito);
    margin-bottom: 16px;
}

.bd-404__text {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 32px;
}


/* Responsive */
@media (max-width: 768px) {
    .bd-page {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .bd-page__title {
        font-size: 28px;
    }

    .bd-404 {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .bd-404__code {
        font-size: 70px;
    }

    .bd-404__title {
        font-size: 24px;
    }
}

/* ==========================================================================
   14. SINGLE ÁREA DE PRÁCTICA
   ========================================================================== */

.bd-single-area {
    padding-top: 80px;
    padding-bottom: 100px;
}

.bd-single-area__container {
    max-width: 760px;
}

.bd-single-area__header {
    text-align: center;
    margin-bottom: 48px;
}

.bd-single-area__foto {
    width: 100%;
    height: 380px;
    margin-bottom: 32px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.bd-single-area__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.bd-single-area__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 12px;
}

.bd-single-area__title {
    font-family: var(--font-titulos);
    font-size: 38px;
    color: var(--grafito);
}

.bd-single-area__content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--grafito);
    margin-bottom: 48px;
}

.bd-single-area__content p {
    margin-bottom: 24px;
}

.bd-single-area__content ul,
.bd-single-area__content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.bd-single-area__content ul {
    list-style: disc;
}

.bd-single-area__content ol {
    list-style: decimal;
}

.bd-single-area__content li {
    margin-bottom: 8px;
}

.bd-valores__card-text ul,
.bd-testimonios__text ul {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 18px;
}

.bd-valores__card-text ol,
.bd-testimonios__text ol {
    list-style: decimal;
    padding-left: 24px;
    margin: 0 0 18px;
}

.bd-valores__card-text li,
.bd-testimonios__text li {
    margin-bottom: 6px;
}

.bd-single-area__footer {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(107, 111, 114, 0.15);
}


/* Responsive */
@media (max-width: 768px) {
    .bd-single-area {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .bd-single-area__title {
        font-size: 28px;
    }

    .bd-single-area__footer {
        flex-direction: column;
    }

    .bd-single-area__footer .bd-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================================================== 
   15. VALORES (Criterio y Confianza)
   ========================================================================== */

.bd-valores {
    padding-top: 90px;
    padding-bottom: 90px;
    background-color: var(--blanco);
    text-align: center;
}

.bd-valores__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 12px;
}

.bd-valores__title {
    font-family: var(--font-titulos);
    font-size: 34px;
    color: var(--grafito);
    margin-bottom: 16px;
}

.bd-valores__subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--grafito);
    opacity: 0.75;
    max-width: 520px;
    margin: 0 auto 56px;
}

.bd-valores__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: left;
}

.bd-valores__card {
    background-color: #e9e7e3;
    padding: 40px 32px;
    border-radius: 12px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bd-valores__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.bd-valores__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(214, 193, 161, 0.15);
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.bd-valores__card:hover .bd-valores__icon {
    transform: scale(1.12) rotate(-6deg);
    background-color: rgba(214, 193, 161, 0.3);
}

.bd-valores__icon img {
    width: 26px;
    height: 26px;
    transition: transform 0.4s ease;
}

.bd-valores__card-title {
    font-family: 'Libre Caslon Text', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--grafito);
    margin-bottom: 12px;
}

.bd-valores__card-text {
    font-family: var(--font-textos);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--grafito);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .bd-valores {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .bd-valores__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   ANIMACIONES AL HACER SCROLL
   ========================================================================== */

.bd-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.bd-reveal.bd-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respeta a quienes prefieren menos movimiento en pantalla */
@media (prefers-reduced-motion: reduce) {
    .bd-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   PANEL DEL CLIENTE
   ========================================================================== */

.bd-panel {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 60vh;
}

.bd-panel__container {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.bd-panel__eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--gris-claro);
    margin-bottom: 12px;
}

.bd-panel__title {
    font-size: 32px;
    margin-bottom: 12px;
}

.bd-panel__subtitle {
    color: var(--grafito);
    margin-bottom: 32px;
}

.bd-panel__login {
    background-color: var(--blanco);
    border-radius: 6px;
    padding: 40px;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 18px 45px rgba(48, 52, 55, 0.1);
}

.bd-panel__logo {
    display: block;
    width: min(100%, 230px);
    max-height: 170px;
    object-fit: contain;
    margin: 0 auto 28px;
}

.bd-panel__logo--dashboard {
    width: 210px;
    max-height: 150px;
    margin-left: 0;
    margin-bottom: 20px;
}

.bd-panel__login p.login-remember,
.bd-panel__login p.login-submit {
    margin-top: 16px;
}

.bd-panel__login label {
    display: block;
    font-size: 14px;
    color: var(--grafito);
    margin-bottom: 6px;
}

.bd-panel__login input[type="text"],
.bd-panel__login input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(107, 111, 114, 0.3);
    border-radius: 4px;
    font-family: var(--font-textos);
}

.bd-panel__login input[type="submit"] {
    background-color: var(--grafito);
    color: var(--blanco);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-textos);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bd-panel__login input[type="submit"]:hover {
    background-color: var(--champagne);
}

.bd-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.bd-panel__card {
    display: block;
    background-color: var(--blanco);
    border: 1px solid rgba(107, 111, 114, 0.15);
    border-radius: 6px;
    padding: 24px;
    min-height: 140px;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.bd-panel__card:hover {
    border-color: var(--champagne);
    transform: translateY(-2px);
}

.bd-panel__card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.bd-panel__card p {
    font-size: 14px;
    color: var(--gris-claro);
}

.bd-panel__salir {
    display: inline-block;
    color: var(--grafito);
    border-bottom: 1px solid var(--grafito);
    padding-bottom: 2px;
    font-size: 14px;
}

.bd-portal { min-height: 80vh; background: #f5f2ed; }
.bd-portal-page { margin: 0; background: #f5f2ed; }
.bd-portal__shell { display: grid; grid-template-columns: 250px 1fr; min-height: 80vh; }
.bd-portal__shell.is-login { grid-template-columns: 1fr; }
.bd-portal__shell.is-login .bd-portal__content { max-width: 980px; margin: 0 auto; }
.bd-portal__sidebar { background: #303437; padding: 34px 24px; color: #fff; }
.bd-portal__brand { display: block; color: #fff; font-family: var(--font-titulos); font-size: 20px; letter-spacing: 1px; margin-bottom: 48px; }
.bd-portal__brand small { display: block; color: #cfaf75; font: 10px var(--font-textos); letter-spacing: 2px; margin-top: 7px; }
.bd-portal__nav a { display: block; color: #ddd; padding: 12px 14px; border-radius: 4px; margin-bottom: 5px; font-size: 14px; }
.bd-portal__nav a:hover, .bd-portal__nav a.is-active { background: #cfaf75; color: #303437; }
.bd-portal__content { max-width: 1000px; width: 100%; padding: 34px 5%; margin: 0 auto; }
.bd-portal__top { display: flex; justify-content: flex-end; color: #777; font-size: 13px; border-bottom: 1px solid #ddd; padding-bottom: 18px; }
.bd-portal__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 54px 0 28px; }
.bd-portal__heading h1 { margin: 6px 0 0; }
.bd-portal__eyebrow { color: #b18c52; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; }
.bd-portal__button { display: inline-block; background: #303437; color: #fff; border: 0; padding: 12px 18px; border-radius: 4px; cursor: pointer; }
.bd-portal__button:hover { background: #b18c52; color: #fff; }
.bd-portal__notice { background: #e4f1e5; padding: 14px 18px; margin-bottom: 22px; border-radius: 4px; }
.bd-portal__notice--error { background: #f8e3e0; color: #8a3026; }
.bd-portal-alert { display: flex; align-items: center; gap: 14px; position: relative; margin: 26px 0 -10px; padding: 15px 42px 15px 16px; border: 1px solid rgba(207,175,117,.55); border-radius: 6px; background: #fffaf0; color: #575a5e; box-shadow: 0 10px 24px rgba(48,52,55,.08); animation: bd-alert-in .3s ease both; }
.bd-portal-alert__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #cfaf75; color: #303437; font-weight: 700; }
.bd-portal-alert strong, .bd-portal-alert span { display: block; }
.bd-portal-alert span { margin-top: 2px; color: #777; font-size: 13px; }
.bd-portal-alert__close { position: absolute; top: 9px; right: 12px; border: 0; background: transparent; color: #777; font-size: 22px; line-height: 1; cursor: pointer; }
.bd-portal-alert.is-hidden { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
@keyframes bd-alert-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.bd-portal__list article { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e4e0da; padding: 14px 18px; margin-bottom: 10px; border-radius: 5px; }
.bd-portal__list article > div { display: flex; align-items: center; gap: 15px; }
.bd-portal__list img, .bd-portal__current-image img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.bd-portal__list span span, .bd-portal__list small { display: block; color: #777; font-size: 12px; margin-top: 5px; }
.bd-portal__list a { color: #9b763f; font-weight: 600; }
.bd-portal__item-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.bd-portal__inline-form { display: inline; margin: 0; }
.bd-portal__inline-form button.is-danger { color: #a33d32; }
.bd-portal__search { display: block; position: relative; max-width: 520px; margin: 0 0 22px; }
.bd-portal__search-input { width: 100%; height: 44px; padding: 0 42px 0 15px; border: 1px solid #d8d2c9; border-radius: 5px; background: #fff; color: #303437; font: inherit; outline: none; box-sizing: border-box; }
.bd-portal__search-input:focus { border-color: #cfaf75; box-shadow: 0 0 0 3px rgba(207,175,117,.16); }
.bd-portal__search-icon { position: absolute; top: 8px; right: 14px; color: #9b763f; font-size: 24px; line-height: 1; pointer-events: none; }
.bd-portal__search-empty { color: #777; padding: 20px 0; }
.bd-portal__form { background: #fff; padding: 28px; border-radius: 6px; max-width: 760px; }
.bd-portal__form label { display: block; color: #555; font-weight: 600; margin-bottom: 18px; }
.bd-portal__form input[type=text], .bd-portal__form input[type=number], .bd-portal__form textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #d8d2c9; border-radius: 4px; font: inherit; box-sizing: border-box; }
.bd-portal__form small { display: block; color: #888; font-weight: 400; margin-top: 5px; }
.bd-portal__form .wp-editor-wrap { margin: 7px 0 18px; }
.bd-portal__form .mce-toolbar-grp { background: #faf9f7; border-color: #d8d2c9; }
.bd-portal__form .mce-edit-area iframe { min-height: 190px; }
.bd-portal__form .wp-editor-container { border-color: #d8d2c9; }
.bd-portal__current-image { margin: -6px 0 20px; }
.bd-portal__image-help { margin: 0 0 22px; color: #777; font-size: 14px; }
.bd-portal__nosotros-preview { margin: 0 0 24px; }
.bd-portal__nosotros-preview img { width: min(100%, 520px); height: 300px; object-fit: cover; border-radius: 5px; }
.bd-portal__inline-form { display: inline; margin-left: 12px; }
.bd-portal__inline-form button { border: 0; background: transparent; color: #a33d32; cursor: pointer; font: inherit; font-size: 13px; }
.bd-portal__login { max-width: 430px; background: #fff; padding: 42px 40px; margin: 80px auto; border: 1px solid rgba(87,90,94,.12); border-radius: 8px; box-shadow: 0 18px 45px rgba(48,52,55,.10); }
.bd-portal__login form { margin: 0; }
.bd-portal__login p { margin: 0 0 18px; }
.bd-portal__login label { display: block; margin-bottom: 7px; color: #575a5e; font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.bd-portal__login input[type=text], .bd-portal__login input[type=password] { display: block; width: 100%; height: 46px; padding: 10px 13px; border: 1px solid #d8d2c9; border-radius: 4px; background: #fff; color: #303437; font: inherit; box-sizing: border-box; outline: none; }
.bd-portal__login input[type=text]:focus, .bd-portal__login input[type=password]:focus { border-color: #cfaf75; box-shadow: 0 0 0 3px rgba(207,175,117,.18); }
.bd-portal__login p.login-remember { display: flex; align-items: center; gap: 7px; margin: 2px 0 22px; color: #777; font-size: 13px; }
.bd-portal__login p.login-remember label { display: inline; margin: 0; font-weight: 400; }
.bd-portal__login p.login-remember input { accent-color: #cfaf75; }
.bd-portal__login p.login-submit { margin: 0; }
.bd-portal__login input[type=submit] { width: 100%; height: 46px; padding: 0 18px; border: 0; border-radius: 4px; background: #575a5e; color: #fff; font: 600 14px var(--font-textos); letter-spacing: .3px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.bd-portal__login input[type=submit]:hover { background: #cfaf75; color: #303437; transform: translateY(-1px); }
.bd-portal__login-logo { display: block; width: min(100%, 230px); max-height: 170px; object-fit: contain; margin: 0 auto 24px; }
.bd-portal__login h1 { font-size: 30px; text-align: center; margin: 5px 0 28px; }
.bd-portal__login > .bd-portal__eyebrow { display: block; text-align: center; }
@media (max-width: 700px) { .bd-portal__shell { grid-template-columns: 1fr; } .bd-portal__sidebar { padding: 22px; } .bd-portal__brand { margin-bottom: 20px; } .bd-portal__nav { display: flex; flex-wrap: wrap; gap: 5px; } .bd-portal__nav a { margin: 0; } .bd-portal__heading { align-items: start; flex-direction: column; } .bd-portal__content { padding: 24px 18px 36px; } .bd-portal__top { justify-content: flex-start; } .bd-portal__form { padding: 20px; } }
@media (max-width: 560px) { .bd-portal__list article { align-items: flex-start; flex-direction: column; gap: 14px; } .bd-portal__item-actions { justify-content: flex-start; } .bd-panel { padding-top: 60px; padding-bottom: 60px; } .bd-portal__sidebar { position: static; } .bd-portal__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .bd-portal__nav a { font-size: 13px; padding: 10px; } .bd-portal__heading { margin-top: 32px; } .bd-portal__current-image img, .bd-portal__nosotros-preview img { width: 100%; height: auto; max-height: 280px; } }

@media (max-width: 600px) {
    .bd-panel__grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================================================== 
   SEO / CONTENIDO JURÍDICO DE PORTADA
   ========================================================================== */
.bd-seo {
    padding: 88px 0;
    background: #f7f5f1;
    color: #34373a;
}
.bd-seo__inner { max-width: 1120px; }
.bd-seo__header { max-width: 920px; margin: 0 auto 44px; text-align: center; }
.bd-seo__eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: 'Karla', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #a9854f;
}
.bd-seo__title {
    margin: 0 0 22px;
    font-family: 'Libre Caslon Text', serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    color: #3f4347;
}
.bd-seo__lead,
.bd-seo__copy p {
    font-family: 'Karla', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #555b60;
}
.bd-seo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 46px;
    align-items: start;
}
.bd-seo__copy h3,
.bd-seo__services h3,
.bd-seo__faq h2 {
    font-family: 'Libre Caslon Text', serif;
    color: #3f4347;
}
.bd-seo__copy h3,
.bd-seo__services h3 { font-size: 27px; margin: 0 0 18px; }
.bd-seo__services {
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(87,90,94,.12);
    box-shadow: 0 12px 35px rgba(35,37,39,.06);
}
.bd-seo__service-list { list-style: none; padding: 0; margin: 0; }
.bd-seo__service-list li { border-top: 1px solid rgba(87,90,94,.12); }
.bd-seo__service-list li:first-child { border-top: 0; }
.bd-seo__service-list a,
.bd-seo__service-list li {
    display: block;
    padding: 13px 0;
    font-family: 'Karla', sans-serif;
    color: #4c5054;
    text-decoration: none;
}
.bd-seo__service-list a:hover { color: #a9854f; }
.bd-seo__faq { max-width: 920px; margin: 70px auto 0; }
.bd-seo__faq h2 { text-align: center; font-size: 34px; margin-bottom: 28px; }
.bd-seo__faq details {
    background: #fff;
    border: 1px solid rgba(87,90,94,.12);
    margin-bottom: 12px;
    padding: 0 22px;
}
.bd-seo__faq summary {
    cursor: pointer;
    padding: 19px 0;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    color: #414549;
}
.bd-seo__faq details p {
    margin: 0 0 20px;
    font-family: 'Karla', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #5a5f63;
}
@media (max-width: 800px) {
    .bd-seo { padding: 64px 0; }
    .bd-seo__grid { grid-template-columns: 1fr; gap: 30px; }
    .bd-seo__header { text-align: left; }
    .bd-seo__faq h2 { text-align: left; font-size: 29px; }
}


/* ==========================================================================
   MI NOTARÍA + BOTÓN EN EL MENÚ
   En Apariencia > Menús, a un enlace ponle la clase CSS "bd-menu-boton"
   para que se vea como botón.
   ========================================================================== */

.bd-mi-notaria__accion {
    margin-top: 32px;
}

.bd-menu .bd-menu-boton > a {
    padding: 9px 22px;
    border: 1px solid var(--grafito);
    border-radius: 2px;
    color: var(--grafito);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bd-menu .bd-menu-boton > a:hover {
    background-color: var(--grafito);
    border-color: var(--grafito);
    color: var(--blanco);
}

.bd-menu .bd-menu-boton > a::after {
    display: none;
}


/* ==========================================================================
   ICONOS DE REDES SOCIALES
   ========================================================================== */

.bd-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bd-social .bd-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--bd-social-borde);
    background-color: transparent;
    color: var(--bd-social-color);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s ease,
                border-color 0.3s ease, color 0.3s ease, box-shadow 0.35s ease;
}

.bd-social--oscuro {
    --bd-social-color: var(--grafito);
    --bd-social-borde: rgba(87, 90, 94, 0.35);
}

.bd-social--claro {
    --bd-social-color: var(--marfil);
    --bd-social-borde: rgba(241, 237, 230, 0.3);
}

.bd-social .bd-social__svg {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bd-social .bd-social__link:hover,
.bd-social .bd-social__link:focus-visible {
    transform: translateY(-5px);
    background-color: var(--champagne);
    border-color: var(--champagne);
    color: var(--grafito);
    box-shadow: 0 10px 22px rgba(207, 175, 117, 0.38);
}

.bd-social .bd-social__link:hover .bd-social__svg,
.bd-social .bd-social__link:focus-visible .bd-social__svg {
    transform: scale(1.12) rotate(-8deg);
}

.bd-social .bd-social__link:focus-visible {
    outline: 2px solid var(--champagne);
    outline-offset: 3px;
}

/* ==========================================================================
   ENTRADA SUAVE AL CARGAR LA PÁGINA
   ========================================================================== */

@keyframes bd-aparece-arriba {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bd-aparece {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes bd-zoom-suave {
    from { transform: scale(1.1); }
    to   { transform: scale(1); }
}

.bd-header {
    animation: bd-aparece 0.8s ease backwards;
}

.bd-hero__eyebrow { animation: bd-aparece-arriba 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s backwards; }
.bd-hero__mark    { animation: bd-aparece-arriba 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.30s backwards; }
.bd-hero__title   { animation: bd-aparece-arriba 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s backwards; }
.bd-hero__sufijo  { animation: bd-aparece-arriba 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.60s backwards; }
.bd-hero__subtitle { animation: bd-aparece-arriba 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s backwards; }
.bd-hero__content .bd-btn { animation: bd-aparece-arriba 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.90s backwards; }

.bd-hero__image     { animation: bd-aparece 1.4s ease 0.35s backwards; }
.bd-hero__image img { animation: bd-zoom-suave 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s backwards; }

@media (prefers-reduced-motion: reduce) {
    .bd-header,
    .bd-hero__eyebrow,
    .bd-hero__mark,
    .bd-hero__title,
    .bd-hero__sufijo,
    .bd-hero__subtitle,
    .bd-hero__content .bd-btn,
    .bd-hero__image,
    .bd-hero__image img {
        animation: none;
    }

    .bd-social .bd-social__link,
    .bd-social .bd-social__svg {
        transition: none;
    }
}
