/**
 * OR64 - Template de Producto
 * ===========================
 * Estilos especificos para paginas de producto
 * (Legacy prod- eliminado 2026-02-19, backup en _backup_2026-02-19/)
 */

/* ==========================================================================
   EDITORIAL - Layout zigzag asimétrico con fotos
   Rompe la cuadrícula tipo plantilla, feel de revista
   ========================================================================== */

/* Lead: gancho grande */
.ds-editorial__lead {
    font-size: var(--ds-text-base);
    line-height: 1.75;
    color: var(--ds-gray-700);
    margin: 0 0 64px;
}

/* Fila zigzag: foto + texto */
.ds-editorial__row {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 72px;
}

.ds-editorial__row:last-child {
    margin-bottom: 0;
}

/* Invertida: texto + foto */
.ds-editorial__row--reverse {
    grid-template-columns: 1fr 38%;
}

/* Fotos con sombra editorial */
.ds-editorial__img img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(10, 22, 40, 0.18), 0 8px 24px rgba(10, 22, 40, 0.1);
}

/* Texto junto a foto */
.ds-editorial__body p {
    font-size: var(--ds-text-base);
    line-height: 1.75;
    color: var(--ds-gray-600);
    margin: 0;
}

/* Fallback sin fotos */
.ds-editorial__text {
    font-size: var(--ds-text-sm);
    line-height: var(--ds-leading-relaxed);
    color: var(--ds-gray-500);
    max-width: 680px;
    margin: 0 0 var(--ds-space-5);
}

.ds-editorial__text:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .ds-editorial__lead {
        margin-bottom: 48px;
    }

    .ds-editorial__row,
    .ds-editorial__row--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 56px;
    }
}

@media (max-width: 768px) {
    .ds-editorial__lead {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .ds-editorial__row {
        margin-bottom: 48px;
    }
}

/* ==========================================================================
   CONTEXTO SPLIT - Foto a sangre izq + texto oscuro dcha
   ========================================================================== */
.ds-contexto-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--ds-primary);
}

.ds-contexto-split__img {
    position: relative;
    overflow: hidden;
}

.ds-contexto-split__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ds-contexto-split__body {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ds-contexto__lead,
.ds-contexto__text {
    font-size: var(--ds-text-base);
    line-height: var(--ds-leading-relaxed);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.ds-contexto__lead {
    margin-bottom: var(--ds-space-4);
}

@media (max-width: 768px) {
    .ds-contexto-split {
        grid-template-columns: 1fr;
    }

    .ds-contexto-split__img {
        min-height: 280px;
    }

    .ds-contexto-split__body {
        padding: 48px 24px;
    }
}

/* ==========================================================================
   VISUAL BREAK - Imagen full-width entre secciones técnicas
   ========================================================================== */
.ds-visual-break {
    position: relative;
    height: 35vh;
    min-height: 250px;
    max-height: 400px;
    overflow: hidden;
}

.ds-visual-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ds-visual-break__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 29, 47, 0.15) 0%,
        rgba(15, 29, 47, 0.05) 50%,
        rgba(15, 29, 47, 0.2) 100%);
}

@media (max-width: 768px) {
    .ds-visual-break {
        height: 25vh;
        min-height: 180px;
    }
}

/* ==========================================================================
   CTA SPLIT - Con imagen lateral
   ========================================================================== */
.ds-cta--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    text-align: left;
}

.ds-cta--split .ds-cta__image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.ds-cta--split .ds-cta__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ds-cta--split .ds-cta__body {
    padding: 80px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ds-cta--split .ds-cta__text {
    margin-left: 0;
    margin-right: 0;
}

.ds-cta--split .ds-cta__actions {
    justify-content: flex-start;
}

.ds-cta--split .ds-cta__note {
    justify-content: flex-start;
}

.ds-cta:not(.ds-cta--split) .ds-cta__body {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .ds-cta--split {
        grid-template-columns: 1fr;
    }

    .ds-cta--split .ds-cta__image {
        min-height: 280px;
        max-height: 350px;
    }

    .ds-cta--split .ds-cta__body {
        padding: 48px 24px;
        text-align: center;
    }

    .ds-cta--split .ds-cta__text {
        margin-left: auto;
        margin-right: auto;
    }

    .ds-cta--split .ds-cta__actions,
    .ds-cta--split .ds-cta__note {
        justify-content: center;
    }
}

/* ==========================================================================
   VARIANTES - Parallax + Cards doradas
   ========================================================================== */
.ds-variantes-parallax {
    position: relative;
    overflow: hidden;
}

.ds-variantes-parallax__bg {
    position: absolute;
    inset: -20% 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.ds-variantes-parallax__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.ds-variantes-parallax > .ds-container {
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .ds-variantes-parallax__bg {
        background-attachment: scroll;
    }
}

.ds-variantes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ds-variante {
    background: linear-gradient(135deg, #ffcc00, #ffc200 40%, #ffb800);
    padding: 32px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.ds-variante:hover {
    background: linear-gradient(135deg, #ffdd44, #ffcc00 40%, #ffc200);
}

.ds-variante__title {
    font-family: var(--ds-font-heading, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ds-primary, #1a1a1a);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.ds-variante__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ds-variante__list li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ds-primary, #1a1a1a);
    padding-left: 16px;
    position: relative;
}

.ds-variante__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--ds-primary, #1a1a1a);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .ds-variantes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ds-variante {
        padding: 24px;
    }
}
