/* ==========================================================================
   OnTruck — Layout: contenedores, secciones y rejillas
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--wide { max-width: var(--max-wide); }
.container--narrow { max-width: 840px; }

/* --- Sección ------------------------------------------------------------- */

.section {
    position: relative;
    padding-block: clamp(64px, 7vw, 112px);
}

.section--tight { padding-block: clamp(48px, 5vw, 72px); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.section--navy {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .82);
}

.section--navy-grad {
    background:
        radial-gradient(120% 90% at 80% 0%, #16385C 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-900) 0%, #05142A 100%);
    color: rgba(255, 255, 255, .82);
}

/* --- Cabecera de sección ------------------------------------------------- */

.section-head {
    max-width: 780px;
    margin-bottom: clamp(36px, 4vw, 60px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head p {
    margin-top: 16px;
    font-size: 1.0625rem;
}

/* --- Rejillas ------------------------------------------------------------ */

.grid {
    display: grid;
    gap: 24px;
}

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

/* Bloque partido: texto + media */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.split--media-first .split__media { order: -1; }
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.split--wide-media { grid-template-columns: .85fr 1.15fr; }

.split__text > * + * { margin-top: 18px; }

/* Franja de borde a borde con fondo */
.bleed {
    position: relative;
    isolation: isolate;
}

.bleed__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bleed__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
}
