
/* ==========================================================================
   ESTILOS Y MAQUETACIÓN EDITORIAL OFICIAL · MARCO LEGAL DAMA BLANCA
   Diseño editorial a 2 columnas con tipografía Object Sans, Bento Edge-to-Edge y Animaciones GPU
   ========================================================================== */
.db-legal-page-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #ffffff;
    overflow-x: hidden;
}

/* 1. HERO EDITORIAL A ANCHO COMPLETO (#f4f4f4) */
.db-legal-hero-section {
    width: 100%;
    max-width: 100%;
    background-color: #f4f4f4;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
    padding: clamp(4.5rem, 7vw, 7.5rem) var(--i2-page-margin, clamp(2rem, 5vw, 6.5rem));
    margin-top: var(--i2-header-h, 140px);
    margin-bottom: 0;
    box-sizing: border-box;
    animation: dbLegalHeroFade 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

@keyframes dbLegalHeroFade {
    0% {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.db-legal-hero-inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.db-legal-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(18, 18, 16, 0.45);
    margin-bottom: 1.6rem;
}
.db-legal-breadcrumbs a {
    color: rgba(18, 18, 16, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}
.db-legal-breadcrumbs a:hover {
    color: #121210;
}
.db-legal-breadcrumbs .sep {
    opacity: 0.35;
}
.db-legal-breadcrumbs .current {
    color: #121210;
    font-weight: 600;
}

.db-legal-hero-h1 {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #121210;
    margin: 0 0 1.4rem 0;
}

.db-legal-hero-lead {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(18, 18, 16, 0.78);
    margin: 0 0 1.8rem 0;
    max-width: 960px;
}

.db-legal-hero-meta {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(18, 18, 16, 0.5);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* 2. CONTENEDOR PRINCIPAL EDITORIAL */
.db-legal-main-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--i2-page-margin, clamp(2rem, 5vw, 6.5rem)) clamp(4rem, 6vw, 7rem);
    box-sizing: border-box;
}

.db-legal-content-flow {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 3. SECCIÓN EDITORIAL EN 2 COLUMNAS (ANIMACIÓN SUAVE AL SCROLL) */
.db-legal-section {
    width: 100%;
    padding: clamp(4rem, 6vw, 6.5rem) 0;
    border-bottom: 1px solid rgba(18, 18, 16, 0.12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--i2-gap, clamp(2rem, 4vw, 4rem));
    align-items: flex-start;
    box-sizing: border-box;
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.db-legal-section.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.db-legal-section:first-child {
    padding-top: clamp(3rem, 5vw, 5rem);
}

.db-legal-section:last-child {
    border-bottom: none;
}

.db-legal-sec-title-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.db-legal-sec-title {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--i2-fs-display, clamp(2.2rem, 3.4vw, 3.5rem));
    font-weight: 400;
    line-height: var(--i2-lh-display, 1.08);
    letter-spacing: -0.03em;
    color: #121210;
    margin: 0;
}

.db-legal-sec-body {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.db-legal-sec-body p {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.02rem, 1.15vw, 1.2rem);
    font-weight: 300;
    line-height: 1.72;
    color: #2b2b28;
    margin: 0;
}

.db-legal-sec-body strong {
    font-weight: 600;
    color: #121210;
}

.db-legal-sec-body h4 {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.15rem, 1.3vw, 1.35rem);
    font-weight: 600;
    color: #121210;
    margin: 1.4rem 0 0.3rem 0;
}

/* LISTAS CON GUION EDITORIAL */
.db-legal-list {
    list-style: none !important;
    padding: 0;
    margin: 0.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.db-legal-list li {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.02rem, 1.15vw, 1.18rem);
    font-weight: 300;
    line-height: 1.7;
    color: #2b2b28;
    position: relative;
    padding-left: 1.8rem;
}

.db-legal-list li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    top: 0;
    color: #121210;
    font-weight: 600;
}

/* TABLAS EDITORIALES */
.db-legal-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 1.2rem 0;
    box-sizing: border-box;
}

.db-legal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.98rem;
    text-align: left;
}

.db-legal-table th {
    padding: 1.1rem 1.4rem;
    border-bottom: 2px solid #121210;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #121210;
}

.db-legal-table td {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
    color: #333333;
    line-height: 1.6;
    vertical-align: top;
}

.db-legal-table tr:hover td {
    background-color: #fafafa;
}

/* TARJETA DE IDENTIFICACIÓN CORPORATIVA */
.db-legal-keyvalue-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem 2.5rem;
    margin: 1.4rem 0;
    padding: 2.2rem;
    background-color: #f8f8f8;
    border-radius: 4px;
    box-sizing: border-box;
}

.db-legal-kv-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.db-legal-kv-label {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(18, 18, 16, 0.5);
}

.db-legal-kv-value {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #121210;
    line-height: 1.45;
}

.db-legal-kv-value a {
    color: #121210;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.db-legal-kv-value a:hover {
    color: #444444;
}

/* ==========================================================================
   4. BLOQUE BENTO GRID PASTEL EDGE-TO-EDGE (100% ANCHO DE PANTALLA)
   ========================================================================== */
.db-legal-bento-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    margin-top: clamp(4rem, 6vw, 6.5rem);
    margin-bottom: clamp(4rem, 6vw, 6.5rem);
    box-sizing: border-box;
}

.db-legal-bento-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--i2-gap, clamp(1.5rem, 2.5vw, 2.8rem));
    width: 100%;
    box-sizing: border-box;
}

/* Columna Izquierda: Caja alta azul celeste */
.db-legal-bento-left {
    background-color: var(--i2-sky, #67bfe5);
    color: #121210;
    padding: clamp(3.5rem, 5.5vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(560px, 48vw, 680px);
    box-sizing: border-box;
    transition: transform 0.5s var(--i2-spring, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.5s var(--i2-spring, cubic-bezier(0.16, 1, 0.3, 1));
}
.db-legal-bento-left:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(92, 187, 233, 0.3);
}

.db-legal-bento-heading h3 {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--i2-fs-display, clamp(2.8rem, 4.2vw, 4.2rem));
    line-height: var(--i2-lh-display, 1.05);
    font-weight: 400;
    letter-spacing: -0.03em;
    color: #121210;
    margin: 0;
}

.db-legal-bento-bottom-text p {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.05rem, 1.25vw, 1.32rem);
    line-height: 1.58;
    font-weight: 300;
    color: #121210;
    margin: 0;
    max-width: 680px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--i2-spring, cubic-bezier(0.19, 1, 0.22, 1)) 0.28s, transform 0.9s var(--i2-spring, cubic-bezier(0.19, 1, 0.22, 1)) 0.28s;
}
.db-legal-bento-left.is-visible .db-legal-bento-bottom-text p {
    opacity: 1;
    transform: translateY(0);
}

/* Columna Derecha: Stack de dos cajas (Salinero + Rosa Pastel) */
.db-legal-bento-right {
    display: flex;
    flex-direction: column;
    gap: var(--i2-gap, clamp(1.5rem, 2.5vw, 2.8rem));
    height: 100%;
}

/* Caja Superior Derecha: Ilustración oficial del Salinero en fondo menta */
.db-legal-bento-box-salinero {
    background-color: #91d3c5;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 320px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s var(--i2-spring, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.5s var(--i2-spring, cubic-bezier(0.16, 1, 0.3, 1));
}
.db-legal-bento-box-salinero:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(145, 211, 197, 0.3);
}

.db-legal-bento-salinero-img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    max-width: 96%;
    object-fit: contain;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(1.18);
    transition: opacity 1.1s var(--i2-spring, cubic-bezier(0.19, 1, 0.22, 1)) 0.18s, transform 0.6s var(--i2-spring, cubic-bezier(0.19, 1, 0.22, 1));
}
.db-legal-bento-box-salinero.is-visible .db-legal-bento-salinero-img {
    opacity: 1;
    transform: scale(1.36);
}
.db-legal-bento-box-salinero:hover .db-legal-bento-salinero-img {
    transform: scale(1.44) translateY(-4px);
}

/* Caja Inferior Derecha: Rosa Pastel con título y descripción */
.db-legal-bento-box-pink {
    background-color: var(--i2-pink, #fce0d8);
    color: #121210;
    padding: clamp(3.5rem, 5.5vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 320px;
    box-sizing: border-box;
    transition: transform 0.5s var(--i2-spring, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.5s var(--i2-spring, cubic-bezier(0.16, 1, 0.3, 1));
}
.db-legal-bento-box-pink:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(249, 222, 216, 0.4);
}

.db-legal-bento-box-pink h4 {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--i2-fs-display, clamp(2.4rem, 3.8vw, 3.6rem));
    font-weight: 400;
    line-height: var(--i2-lh-display, 1.08);
    letter-spacing: -0.03em;
    color: #121210;
    margin: 0 0 1.6rem 0;
}

.db-legal-bento-box-pink p {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.05rem, 1.25vw, 1.32rem);
    line-height: 1.58;
    font-weight: 300;
    color: #121210;
    margin: 0;
    max-width: 680px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s var(--i2-spring, cubic-bezier(0.19, 1, 0.22, 1)) 0.22s, transform 0.85s var(--i2-spring, cubic-bezier(0.19, 1, 0.22, 1)) 0.22s;
}
.db-legal-bento-box-pink.is-visible p {
    opacity: 1;
    transform: translateY(0);
}

/* 5. BLOQUE FINAL DE CONTACTO EDITORIAL */
.db-legal-contact-section {
    width: 100%;
    padding: clamp(4rem, 6vw, 6.5rem) 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--i2-gap, clamp(2rem, 4vw, 4rem));
    align-items: flex-start;
    box-sizing: border-box;
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.db-legal-contact-section.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.db-legal-contact-box {
    grid-column: 1 / -1;
    padding: clamp(3rem, 5vw, 4.5rem);
    background-color: #f4f4f4;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    box-sizing: border-box;
}

.db-legal-contact-box h3 {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0;
    color: #121210;
}

.db-legal-contact-box p {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.02rem, 1.15vw, 1.18rem);
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
    color: rgba(18, 18, 16, 0.78);
    max-width: 800px;
}

.db-legal-contact-btn-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.db-legal-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    background-color: #121210;
    border: 1px solid #121210;
    border-radius: 999px;
    color: #ffffff;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.db-legal-btn-dark:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
}

.db-legal-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    background-color: transparent;
    border: 1px solid rgba(18, 18, 16, 0.25);
    border-radius: 999px;
    color: #121210;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.db-legal-btn-outline:hover {
    border-color: #121210;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .db-legal-section {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    }
    .db-legal-bento-layout {
        grid-template-columns: 1fr;
    }
    .db-legal-bento-left {
        min-height: auto;
        gap: 3rem;
        padding: clamp(2.5rem, 5vw, 4rem);
    }
    .db-legal-bento-box-pink {
        min-height: auto;
        gap: 2rem;
        padding: clamp(2.5rem, 5vw, 4rem);
    }
}

@media (max-width: 768px) {
    .db-legal-hero-section {
        padding: clamp(2.5rem, 5vw, 3.5rem) clamp(3.5rem, 5.5vw, 6rem);
        margin-top: var(--i2-header-h, 72px);
    }
    .db-legal-main-container {
        padding: 0 clamp(3.5rem, 5.5vw, 6rem) clamp(3rem, 5vw, 5rem);
    }
    .db-legal-keyvalue-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem clamp(1.25rem, 4vw, 1.8rem);
        gap: 1.2rem;
    }
    .db-legal-bento-section {
        padding: 0;
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .db-legal-bento-left {
        padding: clamp(2.2rem, 5vw, 3rem) clamp(3.5rem, 5.5vw, 6rem);
        gap: 2rem;
    }
    .db-legal-bento-box-salinero {
        min-height: 240px;
    }
    .db-legal-bento-box-pink {
        padding: clamp(2.2rem, 5vw, 3rem) clamp(3.5rem, 5.5vw, 6rem);
        gap: 1.5rem;
    }
    .db-legal-contact-box {
        padding: clamp(2rem, 4vw, 3rem) clamp(3.5rem, 5.5vw, 6rem);
    }
}
