
/* ==========================================================================
   1. HERO EDITORIAL A ANCHO COMPLETO (MISMA LÍNEA QUE EL HERO DE LA TIENDA)
   ========================================================================== */
.db-editorial-hero {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 440px;
    background-color: #f4f4f4;
    border-radius: 0 !important;
    border: none;
    border-bottom: 1px solid rgba(18, 18, 16, 0.07);
    padding: clamp(3.5rem, 5.5vw, 5.5rem) clamp(2rem, 5.5vw, 6.5rem);
    margin-top: var(--i2-header-h, 140px);
    margin-bottom: clamp(2.5rem, 4.5vw, 4.5rem);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.db-editorial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://salinasdecadiz.com/wp-content/themes/dama-blanca-atlas/db-templates/assets/images/editorial/gorda-banner.jpg');
    background-repeat: no-repeat;
    background-position: right 0% center;
    background-size: min(1050px, 80%) auto;
    opacity: 0.96;
    pointer-events: none;
    z-index: 1;
}

.db-editorial-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f4f4f4 0%, #f4f4f4 40%, rgba(244, 244, 244, 0.92) 56%, rgba(244, 244, 244, 0) 78%);
    pointer-events: none;
    z-index: 1;
}

.db-editorial-hero-text {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.db-editorial-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-family: 'Object Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(18, 18, 16, 0.45);
    margin-bottom: 1.1rem;
}

.db-editorial-breadcrumbs a {
    color: rgba(18, 18, 16, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.db-editorial-breadcrumbs a:hover {
    color: #121210;
}

.db-editorial-breadcrumbs .sep {
    opacity: 0.35;
    color: rgba(18, 18, 16, 0.35);
}

.db-editorial-breadcrumbs .current {
    color: #121210;
    font-weight: 500;
}

.db-editorial-eyebrow {
    display: block;
    font-family: 'Object Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #121210;
    margin-bottom: 0.6rem;
}

.db-editorial-title {
    font-family: 'Object Sans', sans-serif;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #121210;
    margin: 0 0 0.85rem 0;
}

.db-editorial-subtitle {
    font-family: 'Object Sans', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(18, 18, 16, 0.75);
    margin: 0;
}

@media (max-width: 900px) {
    .db-editorial-hero {
        margin-top: 72px !important;
        margin-bottom: 2rem !important;
        padding: clamp(2.2rem, 5vw, 3.2rem) clamp(1.2rem, 4vw, 2.5rem) !important;
        min-height: auto !important;
    }
    .db-editorial-hero::before {
        opacity: 0.22;
        background-position: center right;
        background-size: cover;
    }
    .db-editorial-hero::after {
        background: linear-gradient(90deg, #f4f4f4 0%, rgba(244, 244, 244, 0.94) 100%);
    }
    .db-editorial-title {
        font-size: clamp(1.75rem, 5.5vw, 2.3rem) !important;
        line-height: 1.14 !important;
        margin-bottom: 0.65rem !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }
    .db-editorial-subtitle {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 600px) {
    .db-editorial-hero {
        margin-top: 64px !important;
        padding: 2rem 16px 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    .db-editorial-title {
        font-size: 1.65rem !important;
        line-height: 1.16 !important;
    }
    .db-editorial-subtitle {
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   2. CUERPO EDITORIAL LIMPIO (FONDO BLANCO Y SIN CORTES BRUSCOS)
   ========================================================================== */
.db-editorial-page {
    background-color: #ffffff;
    color: #121210;
    font-family: 'Object Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: clamp(4rem, 6vw, 7rem);
    padding-left: var(--i2-page-margin, clamp(2rem, 5.5vw, 6.5rem));
    padding-right: var(--i2-page-margin, clamp(2rem, 5.5vw, 6.5rem));
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 900px) {
    .db-editorial-page {
        padding-left: clamp(1.2rem, 4vw, 2.5rem) !important;
        padding-right: clamp(1.2rem, 4vw, 2.5rem) !important;
        padding-bottom: 3.5rem !important;
    }
}

@media (max-width: 600px) {
    .db-editorial-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 2.5rem !important;
    }
}

.db-editorial-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.db-editorial-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: flex-start;
}

@media (max-width: 960px) {
    .db-editorial-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }
}

.db-editorial-article {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 4.5vw, 4.5rem);
}

.db-editorial-article section {
    width: 100%;
}

.db-editorial-article h2 {
    font-family: 'Object Sans', sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #121210;
    margin: 0 0 1.2rem;
}

.db-editorial-article p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(18, 18, 16, 0.82);
    margin: 0 0 1.2rem;
    font-weight: 300;
}

.db-editorial-article p:last-child {
    margin-bottom: 0;
}

/* Tabla comparativa limpia */
.db-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 1.8rem 0;
    border: 1px solid rgba(18, 18, 16, 0.08);
    background: #ffffff;
    border-radius: 0 !important;
}

.db-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.db-comparison-table th {
    background: #121210;
    color: #ffffff;
    padding: 1.1rem 1.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
}

.db-comparison-table td {
    padding: 1.1rem 1.4rem;
    line-height: 1.55;
    border-bottom: 1px solid rgba(18, 18, 16, 0.06);
    vertical-align: top;
    color: rgba(18, 18, 16, 0.85);
    font-weight: 300;
}

.db-comparison-table tr:nth-child(even) td {
    background: #fafafa;
}

.db-comparison-table tr:last-child td {
    border-bottom: none;
}

.db-comparison-table td strong {
    color: #121210;
    font-weight: 600;
}

/* Tarjetas de beneficios sutiles */
.db-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 2rem 0;
}

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

.db-benefit-card {
    background: #fbfbfb;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease;
    border-radius: 0 !important;
    border-top: 3px solid rgba(18, 18, 16, 0.1);
}

.db-benefit-card:hover {
    transform: translateY(-3px);
}

.db-benefit-card.card-sky  { border-top-color: #81d7ee; }
.db-benefit-card.card-mint { border-top-color: #9ad5c6; }
.db-benefit-card.card-pink { border-top-color: #ffeae5; }

.db-benefit-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: #121210;
    display: block;
    margin-bottom: 0.5rem;
}

.db-benefit-card h3 {
    font-family: 'Object Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #121210;
    margin: 0 0 0.6rem;
}

.db-benefit-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(18, 18, 16, 0.75);
    margin: 0;
}

.db-benefit-footer {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #121210;
    margin-top: 1.5rem;
    display: block;
}

/* Banner panorámico sutil */
.db-panoramic-figure {
    margin: 2.5rem 0 0;
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 0 !important;
}

.db-panoramic-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.db-panoramic-caption {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 0.85rem 1.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #121210;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 !important;
}

@media (max-width: 600px) {
    .db-panoramic-caption {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

/* Preguntas Frecuentes limpias */
.db-faq-section {
    padding-top: 1rem;
}

.db-faq-list {
    display: flex;
    flex-direction: column;
}

.db-faq-item {
    border-bottom: 1px solid rgba(18, 18, 16, 0.1);
    border-radius: 0 !important;
    background: transparent;
}

.db-faq-summary {
    padding: 1.3rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: #121210;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.db-faq-summary::-webkit-details-marker {
    display: none;
}

.db-faq-summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: #121210;
}

.db-faq-item[open] .db-faq-summary::after {
    content: '−';
}

.db-faq-content {
    padding: 0 0 1.4rem 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(18, 18, 16, 0.8);
}

.db-faq-content p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Sección Dama Blanca en Medios */
.db-media-section {
    padding-top: 1rem;
}

.db-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .db-media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

.db-media-logo-card {
    background: #fafafa;
    border: 1px solid rgba(18, 18, 16, 0.08);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    border-radius: 0 !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

.db-media-logo-card:hover {
    background: #ffffff;
    border-color: #121210;
    transform: translateY(-2px);
}

.db-media-logo-card img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.db-media-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* CTA Tienda Oficial */
.db-shop-cta-section {
    margin-top: 2rem;
    background: #f8f8f8;
    padding: clamp(2rem, 3.5vw, 3rem);
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.db-shop-cta-section h2 {
    margin: 0;
}

.db-shop-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 650px) {
    .db-shop-cta-grid {
        grid-template-columns: 1fr;
    }
}

.db-shop-cta-card {
    background: #ffffff;
    border: 1px solid rgba(18, 18, 16, 0.06);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0 !important;
}

.db-shop-cta-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #121210;
}

.db-shop-cta-card p {
    font-size: 0.85rem;
    color: rgba(18, 18, 16, 0.7);
    margin: 0;
    line-height: 1.5;
}

.db-shop-cta-btn {
    display: inline-block;
    background: #121210;
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 1.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-radius: 0 !important;
    transition: background 0.2s ease;
}

.db-shop-cta-btn:hover {
    background: #121210;
    color: #ffffff;
}

/* Sidebar */
.db-editorial-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: calc(var(--i2-header-h, 140px) + 20px);
}

.db-sidebar-quote-card {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 0 !important;
    border-left: 3px solid #121210;
}

.db-sidebar-quote-mark {
    font-size: 2.5rem;
    line-height: 1;
    color: #121210;
    display: block;
    margin-bottom: 0.5rem;
    font-family: serif;
}

.db-sidebar-quote-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 500;
    color: #121210;
    margin: 0 0 1rem;
}

.db-sidebar-quote-sub {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(18, 18, 16, 0.7);
    margin: 0;
}

.db-sidebar-quote-badge {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #121210;
    display: block;
    margin-top: 1.5rem;
}

.db-sidebar-nav-card {
    background: #ffffff;
    border: 1px solid rgba(18, 18, 16, 0.08);
    padding: 1.8rem;
    border-radius: 0 !important;
}

.db-sidebar-nav-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #121210;
    margin-bottom: 1.2rem;
    display: block;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
    padding-bottom: 0.6rem;
}

.db-sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.db-sidebar-nav-item {
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(18, 18, 16, 0.75);
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.db-sidebar-nav-item:hover {
    color: #121210;
    background: #fafafa;
    border-left-color: #121210;
}

.db-sidebar-nav-item.active {
    color: #121210;
    font-weight: 700;
    background: #f4f4f4;
    border-left-color: #121210;
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES GLOBALES PARA LANDINGS (DAMA BLANCA LUXURY)
   ========================================================================== */
@media (max-width: 768px) {
    .db-editorial-body {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2.5rem !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .db-editorial-article,
    .db-editorial-article section,
    .db-editorial-sidebar {
        gap: 2.2rem !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .db-editorial-article h2 {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.8rem !important;
    }
    .db-editorial-article p {
        font-size: 0.95rem !important;
        line-height: 1.62 !important;
        margin-bottom: 1rem !important;
    }
    .db-editorial-callout {
        padding: 1.3rem 1.1rem !important;
        margin-top: 1.2rem !important;
    }
    .db-editorial-callout h3 {
        font-size: 1.1rem !important;
    }
    .db-benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .db-benefit-card {
        padding: 1.3rem 1.1rem !important;
    }
    .db-varieties-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .db-variety-item {
        padding: 1.2rem 1.1rem !important;
    }
    .db-table-wrapper {
        margin: 1.2rem 0 !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
    }
    .db-comparison-table {
        width: 100% !important;
        max-width: 100% !important;
    }
    .db-comparison-table th {
        padding: 0.65rem 0.5rem !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.04em !important;
        line-height: 1.35 !important;
        white-space: normal !important;
    }
    .db-comparison-table td {
        padding: 0.65rem 0.5rem !important;
        font-size: 0.78rem !important;
        line-height: 1.38 !important;
        white-space: normal !important;
    }
    .db-comparison-table th:first-child,
    .db-comparison-table td:first-child {
        white-space: normal;
    }
    .db-panoramic-figure {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin: 1.6rem 0 0 !important;
        border-radius: 8px !important;
    }
    .db-panoramic-caption {
        position: static !important;
        background: #f7f7f7 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.62rem !important;
        border-top: 1px solid rgba(18, 18, 16, 0.06) !important;
    }
    .db-shop-cta-section {
        padding: 1.4rem 1.1rem !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
        border-radius: 12px !important;
    }
    .db-shop-cta-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    .db-shop-cta-card {
        padding: 1.2rem 1.1rem !important;
        border-radius: 8px !important;
    }
    .db-editorial-sidebar {
        position: static !important;
        margin-top: 1rem !important;
        gap: 1.5rem !important;
    }
    .db-sidebar-quote-card {
        padding: 1.4rem 1.1rem !important;
        border-radius: 8px !important;
    }
    .db-sidebar-quote-mark {
        font-size: 2rem !important;
        margin-bottom: 0.25rem !important;
    }
    .db-sidebar-quote-lead {
        font-size: 0.98rem !important;
    }
    .db-sidebar-nav-card {
        padding: 1.4rem 1.1rem !important;
        border-radius: 8px !important;
    }
    .db-trade-form-section {
        padding: 1.4rem 1.1rem !important;
        border-radius: 12px !important;
    }
    .db-trade-form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
}
