/* ===== DISENO GRAFICO — Page-specific styles ===== */

/* ===== HERO ===== */
.dg-hero {
    background: var(--black);
}

/* ===== GALLERY SECTION — Cinema Strip ===== */
.dg-gallery {
    padding: 80px clamp(24px, 5vw, 60px);
    background: #fff;
}
.dg-gallery .dg-gallery__title {
    color: var(--dark);
}
.dg-gallery .dg-filters__btn {
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.55);
}

/* ===== GALLERY HEAD ===== */
.dg-gallery__head {
    max-width: var(--container);
    margin: 0 auto 36px;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.dg-gallery__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.dg-gallery__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.06;
}

/* ===== FILTER PILLS ===== */
.dg-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dg-filters__btn {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s;
}

.dg-filters__btn.active,
.dg-filters__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ===== CINEMA FILM STRIP (auto-scroll) ===== */
.dg-gallery__film {
    margin-left: calc(-1 * clamp(24px, 5vw, 60px));
    margin-right: calc(-1 * clamp(24px, 5vw, 60px));
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    padding: 16px 0;
    overflow: hidden;
    position: relative;
}

.dg-film-track {
    display: flex;
    gap: 4px;
    animation: filmScroll 35s linear infinite;
    width: max-content;
}

@keyframes filmScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.dg-gallery__film:hover .dg-film-track {
    animation-play-state: paused;
}

.dg-slide {
    flex-shrink: 0;
    height: 420px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #f4f4f4;
}

.dg-slide img,
.dg-slide video {
    height: 100%;
    width: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-slide video {
    background: #0a0a0a;
}

.dg-slide:hover img {
    transform: scale(1.05);
}

/* ===== GALLERY FOOTER ===== */
.dg-gallery__foot {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-gallery__ver-mas {
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: none;
    border: 1px solid rgba(255, 93, 60, 0.3);
    padding: 9px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.dg-gallery__ver-mas:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ===== SERVICES SECTION — Brutalist Dark ===== */
.dg-services {
    padding: 80px 60px;
    background: var(--black);
}

.dg-services__header {
    margin-bottom: 48px;
    max-width: 600px;
}

.dg-services__header .section-num {
    color: var(--accent);
    font-weight: 600;
}

.dg-services__header .section-title-lg {
    color: var(--white);
}

.dg-services__intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.75;
    margin-top: 20px;
}

.dg-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.dg-svc {
    padding: 28px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

.dg-svc:nth-child(4n) {
    border-right: none;
}

.dg-svc:nth-last-child(-n+3) {
    border-bottom: none;
}

.dg-svc:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dg-svc__num {
    font-family: var(--font-main);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    font-weight: 700;
}

.dg-svc__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.dg-svc__desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.65;
}

/* ===== PROCESS / TOP BORDER STEPS ===== */
.dg-process {
    padding: clamp(80px, 12vw, 140px) 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.dg-process__header {
    margin-bottom: 48px;
}

.dg-process__header .section-title-lg {
    color: var(--dark);
}

.dg-process__steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.dg-step {
    padding: 20px 24px 20px 0;
    border-top: 2px solid var(--dark);
    position: relative;
}

.dg-step::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.dg-step__time {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.dg-step__title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.dg-step__desc {
    font-size: 0.78rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== QUOTE ===== */
.dg-quote {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.dg-quote__inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.dg-quote__mark {
    color: var(--gray-300);
    margin-bottom: 28px;
}

.dg-quote__text {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--dark);
    line-height: 1.7;
    letter-spacing: -0.01em;
    font-style: italic;
    margin-bottom: 24px;
}

.dg-quote__author {
    font-family: var(--font-main);
    font-size: 0.82rem;
    color: var(--gray-600);
    font-style: normal;
    letter-spacing: 0.02em;
}

.dg-quote__author span {
    color: var(--gray-400);
}

/* ===== GALLERY MODAL ===== */
.dg-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.dg-modal.active {
    display: flex;
}

.dg-modal__bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    z-index: 1;
    cursor: pointer;
}

.dg-modal__inner {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1100px;
    margin: 50px auto;
    animation: dgModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dgModalIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.dg-modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    /* El boton de cerrar siempre visible aunque se haga scroll en la grilla */
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(12px);
}

.dg-modal__top-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dg-modal__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.dg-modal__count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255, 93, 60, 0.1);
    padding: 4px 11px;
    border-radius: 20px;
}

.dg-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.dg-modal__close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.dg-modal__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 18px;
    margin: 0 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dg-modal__filters .dg-filters__btn {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.25s;
}

.dg-modal__filters .dg-filters__btn:hover,
.dg-modal__filters .dg-filters__btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.dg-modal__grid {
    columns: 3;
    gap: 12px;
}

.dg-modal__item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.dg-modal__item img,
.dg-modal__item video {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-modal__item video {
    background: #0a0a0a;
}

.dg-modal__item:hover img,
.dg-modal__item:hover video {
    transform: scale(1.03);
}

.dg-modal__item-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.dg-modal__item:hover .dg-modal__item-ov {
    opacity: 1;
}

.dg-modal__item-cat {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}

.dg-modal__item-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
}

/* ===== GALLERY LIGHTBOX (zoom de una pieza) ===== */
.dg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dg-lightbox.active {
    display: flex;
}

.dg-lightbox__bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    cursor: pointer;
}

.dg-lightbox__content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dgModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-lightbox__content img,
.dg-lightbox__content video {
    max-width: 90vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.dg-lightbox__close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.dg-lightbox__close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ===== GSAP INITIAL STATES — handled via JS startAt ===== */

/* ===== RESPONSIVE ===== */

/* 4 → 3 columns */
@media (max-width: 1024px) {
    .dg-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
        gap: 10px;
    }

    .dg-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dg-gallery__head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 3 → 2 columns */
@media (max-width: 768px) {
    /* GALERIA: en celular el film deja de ser carrusel de piezas gigantes
       y pasa a una grilla de 2 filas (≈4 piezas a la vista) que deriva
       lento de derecha a izquierda. Misma mecanica de marquee, mismos IDs. */
    .dg-gallery__film {
        padding: 12px 0;
    }

    /* Fallback instantaneo mientras se miden proporciones: grilla simple de 2 filas */
    .dg-film-track:not(.is-masonry) {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, 42vw);
        grid-auto-columns: 42vw;
        gap: 6px;
    }

    .dg-film-track:not(.is-masonry) .dg-slide {
        width: auto;
        height: auto;
    }

    /* Masonry por proporcion: altura fija, columnas/bloques mixtos */
    .dg-film-track.is-masonry {
        display: flex;
        gap: 6px;
    }

    .dg-col {
        flex-shrink: 0;
        width: 42vw;
        height: 84vw;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* bloque doble ancho: ancha arriba + 2 cuadradas abajo */
    .dg-col--wide {
        width: calc(84vw + 6px);
    }

    .dg-col .dg-slide {
        flex: 1 1 0;
        min-height: 0;
        width: auto;
        height: auto;
    }

    .dg-row {
        display: flex;
        gap: 6px;
        flex: 1 1 0;
        min-height: 0;
    }

    .dg-row .dg-slide {
        flex: 1 1 0;
    }

    /* las piezas llenan su celda recortando (cover) */
    .dg-film-track .dg-slide img,
    .dg-film-track .dg-slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* las verticales se ven completas (su columna ya tiene el ancho de su proporcion) */
    .dg-col--tall .dg-slide img,
    .dg-col--tall .dg-slide video {
        object-fit: contain;
    }

    .dg-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 8px;
    }

    .dg-item--featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .dg-item--wide {
        grid-column: span 2;
    }

    .dg-item--tall {
        grid-row: span 2;
    }

    .dg-gallery__filters {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dg-filter-track {
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 8px;
    }

    .dg-filter {
        padding: 7px 16px;
        font-size: 0.72rem;
    }

    .dg-item__overlay {
        padding: 16px;
    }

    .dg-item--featured .dg-item__overlay {
        padding: 20px;
    }

    .dg-item--featured .dg-item__title {
        font-size: 1.2rem;
    }

    .dg-services__grid {
        grid-template-columns: 1fr 1fr;
    }

    .dg-gallery__head {
        gap: 16px;
    }

    .dg-filters {
        overflow-x: auto;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .dg-filters::-webkit-scrollbar { display: none; }

    .dg-filters__btn {
        font-size: 0.7rem;
        padding: 7px 14px;
        white-space: nowrap;
    }

    .dg-gallery__foot {
        padding: 20px clamp(24px, 5vw, 80px) 0;
    }

    .dg-process__steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px 0;
    }

    .dg-lightbox__content {
        max-width: 95vw;
    }

    .dg-lightbox__nav {
        padding: 0 12px;
    }

    .dg-lightbox__prev,
    .dg-lightbox__next {
        width: 40px;
        height: 40px;
    }

    .dg-lightbox__close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* Mantener 2 columnas en móvil */
@media (max-width: 480px) {
    .dg-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 6px;
    }

    .dg-item--featured,
    .dg-item--wide {
        grid-column: span 2;
    }

    .dg-item--featured,
    .dg-item--tall {
        grid-row: span 2;
    }

    .dg-services {
        padding: 60px 2.5%;
    }

    .dg-services__grid {
        grid-template-columns: 1fr;
    }

    .dg-gallery__head {
        padding: 0 2.5%;
    }

    .dg-gallery__foot {
        padding: 20px 2.5% 0;
    }

    .dg-process .container {
        max-width: 95%;
        padding: 0;
    }

    .dg-process__steps {
        grid-template-columns: 1fr;
    }

    .dg-quote .container {
        max-width: 95%;
        padding: 0;
    }

    .dg-modal__inner {
        width: 95%;
    }

    .dg-modal__grid {
        columns: 2;
    }

    /* Filtros del modal en 2 columnas parejas en celular */
    .dg-modal__filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dg-modal__filters .dg-filters__btn {
        width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        padding: 10px 8px;
    }

}

/* FAQ styles moved to shared faq.css (.svc-faq*) */

/* ===== MANIFIESTO / FILOSOFÍA ===== */
.dg-manifest {
    padding: clamp(80px, 10vw, 140px) 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200, #e0e0e0);
}
.dg-manifest__header {
    max-width: 880px;
    margin: 0 auto clamp(56px, 6vw, 88px);
    text-align: center;
}
.dg-manifest__eyebrow {
    font-size: 11px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent, #FF5D3C);
    font-weight: 700;
    margin-bottom: 24px;
}
.dg-manifest__title {
    font-family: var(--font-display, 'Frutiger', 'Inter', sans-serif);
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--dark, #131314);
}
.dg-manifest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}
.dg-manifest__block {
    padding-top: 28px;
    border-top: 1px solid var(--dark, #131314);
}
.dg-manifest__block-title {
    font-family: var(--font-display, 'Frutiger', 'Inter', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--dark, #131314);
    margin-bottom: 14px;
}
.dg-manifest__block-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600, #666);
}
@media (max-width: 900px) {
    .dg-manifest__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== PROCESO · intro y closer (nuevos) ===== */
.dg-process__intro {
    max-width: 640px;
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600, #666);
}
.dg-process__closer {
    margin-top: clamp(40px, 5vw, 56px);
    padding-top: 28px;
    border-top: 1px solid var(--gray-200, #e0e0e0);
    font-size: 0.92rem;
    color: var(--gray-600, #666);
    text-align: center;
    font-style: italic;
}

/* ===== QUOTE · eyebrow ===== */
.dg-quote__eyebrow {
    font-size: 11px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent, #FF5D3C);
    font-weight: 700;
    margin-bottom: 28px;
}

/* ===== FUSIÓN FILOSOFÍA + SERVICIOS (dark iridiscente) ===== */
.dg-fusion {
    padding: clamp(80px, 10vw, 140px) clamp(24px, 5vw, 60px);
    background: var(--dark, #131314);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.dg-fusion__ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.dg-fusion__ring--1 {
    width: 900px;
    height: 900px;
    border: 1px solid rgba(255, 93, 60, 0.08);
}
.dg-fusion__ring--2 {
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.dg-fusion__inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.dg-fusion__head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    margin-bottom: 64px;
    align-items: end;
}
.dg-fusion__eyebrow {
    font-size: 11px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent, #FF5D3C);
    font-weight: 700;
    margin-bottom: 24px;
}
.dg-fusion__title {
    font-family: var(--font-display, 'Frutiger', 'Inter', sans-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='2.4' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
        linear-gradient(108deg, #ece4d6 0%, #e6dcc9 22%, #c4b0d2 42%, #d398b3 54%, #c4b0d2 66%, #e6dcc9 82%, #ece4d6 100%);
    background-blend-mode: overlay;
    background-size: 180px 180px, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.dg-fusion__sub {
    font-size: .98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}
.dg-fusion__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 64px;
}
.dg-fusion__pillar {
    padding: 32px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.dg-fusion__pillar:last-child {
    border-right: 0;
}
.dg-fusion__pillar-h {
    font-family: var(--font-display, 'Frutiger', 'Inter', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.005em;
    color: #fff;
    margin-bottom: 10px;
}
.dg-fusion__pillar-t {
    font-size: .88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}
.dg-fusion__svcs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}
.dg-fusion__svc {
    background: var(--dark, #131314);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 170px;
    transition: background .25s;
}
.dg-fusion__svc:hover {
    background: rgba(255, 255, 255, 0.04);
}
.dg-fusion__svc-t {
    font-family: var(--font-display, 'Frutiger', 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.005em;
    color: #fff;
    margin-top: auto;
}
.dg-fusion__svc-d {
    font-size: .82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
    .dg-fusion__head { grid-template-columns: 1fr; gap: 32px; align-items: start; }
    .dg-fusion__pillars { grid-template-columns: 1fr; }
    .dg-fusion__pillar { padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .dg-fusion__pillar:last-child { border-bottom: 0; }
    .dg-fusion__svcs { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TIMELINE (reemplaza pillars en dg-fusion) ===== */
.dg-fusion__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    padding: 56px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 64px;
}
.dg-fusion__timeline::before {
    content: "";
    position: absolute;
    top: 70px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
    pointer-events: none;
}
.dg-fusion__step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dg-fusion__step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark, #131314);
    border: 1.5px solid var(--accent, #FF5D3C);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent, #FF5D3C);
    letter-spacing: .05em;
}
.dg-fusion__step-h {
    font-family: var(--font-display, 'Frutiger', 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.005em;
    color: #fff;
    margin-top: 4px;
}
.dg-fusion__step-t {
    font-size: .82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
    .dg-fusion__timeline { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
    .dg-fusion__timeline::before { display: none; }
    .dg-fusion__step {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            'node title'
            'node desc';
        column-gap: 16px;
        row-gap: 6px;
        align-items: start;
    }
    .dg-fusion__step-node { grid-area: node; align-self: start; flex-shrink: 0; }
    .dg-fusion__step-h { grid-area: title; margin-top: 4px; }
    .dg-fusion__step-t { grid-area: desc; }
}

@media (max-width: 520px) {
    .dg-fusion__svcs { grid-template-columns: repeat(2, 1fr); }
    .dg-fusion__title { line-height: 1.15; }
}

/* ===== Hero alineado a la misma caja (1280) ===== */
.page-hero {
    padding-left: clamp(24px, 5vw, 60px);
    padding-right: clamp(24px, 5vw, 60px);
    background-color: var(--black);
    background-image:
        linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 70%),
        url("img/herosection/dise%C3%B1o.jpg");
    background-size: cover, cover;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
}
.page-hero > .container {
    padding: 0;
    max-width: var(--container);
}
@media (max-width: 768px) {
    .page-hero {
        background-image:
            linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.72) 100%),
            url("img/herosection/dise%C3%B1o.jpg");
        background-position: center, center;
    }
}

/* ===== FAQ · Epígrafe (quote integrado entre header y shell) ===== */
.dg-faq-epigraph {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 0 32px;
    margin: 32px 0 48px;
    border-bottom: 1px solid var(--gray-200);
    max-width: 620px;
}
.dg-faq-epigraph__text {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--gray-600);
}
.dg-faq-epigraph__author {
    font-family: var(--font-main);
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    font-weight: 600;
}

/* ===== FAQ overrides para igualar el estilo del test (P1 Epígrafe) ===== */
.svc-faq {
    padding: 96px clamp(24px, 5vw, 60px) 120px;
}
.svc-faq > .container {
    max-width: var(--container);
    padding: 0;
}
.svc-faq__header {
    max-width: 760px;
    margin: 0 0 32px;
    text-align: left;
    padding: 0;
}
.svc-faq__header .section-num {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 18px;
    display: block;
    text-transform: uppercase;
}
.svc-faq__header .section-title-lg {
    font-family: var(--font-main);
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--dark);
    margin: 0;
}
.svc-faq__shell {
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: none;
    margin: 0;
    padding: 0;
    align-items: start;
}
@media (min-width: 900px) {
    .svc-faq__shell {
        grid-template-columns: 1fr 2fr;
        gap: 48px;
    }
}
.svc-faq__tab {
    border-top: 1px solid var(--gray-200);
    border-bottom: 0;
    padding: 18px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}
.svc-faq__tab:last-child {
    border-bottom: 1px solid var(--gray-200);
}
.svc-faq__tab.is-active {
    color: var(--dark);
    font-weight: 700;
    padding-left: 0;
    border-bottom: 0;
}
.svc-faq__tab.is-active:last-child {
    border-bottom: 1px solid var(--gray-200);
}

/* Epígrafe ajustado al nuevo header sin intro */
.dg-faq-epigraph {
    margin: 0 0 48px;
}
