/* Sitio web de PETROTRADE. Línea gráfica del brochure: azul marino, dorado y Montserrat. */

/* Montserrat variable (400 a 800), recortada a caracteres latinos y servida desde el sitio
   (herramientas/preparar-fuente.py). Licencia SIL Open Font License: fuentes/OFL.txt.
   El ?v= debe ser idéntico al del preload de index.html. */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fuentes/montserrat-latin.woff2?v=1") format("woff2");
}

:root {
    --azul-950: #011a2c;
    --azul-900: #012640;
    --azul-800: #0a3556;
    --azul-700: #134a73;
    --oro-300: #f9cf6f;
    --oro-400: #f6ba3b;
    --oro-500: #e29a21;
    /* Dorado para texto sobre fondo claro: el de la marca no llega al contraste mínimo.
       --oro-titulo (3,3:1 sobre blanco, 3,1:1 sobre --crema) solo en texto grande;
       --oro-texto (≥4,9:1 también sobre el celeste #d6e5f2 de la portada, 6,4:1 sobre blanco) en texto normal. */
    --oro-titulo: #c27f0e;
    --oro-texto: #865305;
    --texto: #1b2a38;
    --texto-suave: #45576a;
    --linea: #c9d4df;
    --fondo-claro: #f4f8fc;
    --crema: #fdf8f0;
    --error: #b42318;
    --radio: 14px;
    --sombra: 0 18px 40px rgba(1, 38, 64, 0.14);
    --cabecera: 76px;
    --onda: clamp(48px, 8vw, 120px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--cabecera) + 12px);
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--texto);
    background: #fff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
figure {
    margin: 0;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--azul-900);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Sobre fondo azul el contorno de foco va en dorado (el azul no se vería). */
.franja :focus-visible,
.principios :focus-visible,
.llamado :focus-visible,
.contacto__datos :focus-visible,
.pie :focus-visible {
    outline-color: var(--oro-400);
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.visualmente-oculto {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.saltar {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 0.7rem 1.1rem;
    background: var(--azul-900);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
}

.saltar:focus {
    top: 0;
}

.contenedor {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.icono {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icono .relleno,
.icono use {
    fill: none;
}

/* Íconos macizos (los símbolos "-maciza" del sprite) usados con la clase .icono. */
.icono.icono--macizo,
.icono.icono--macizo use {
    fill: currentColor;
    stroke: none;
}

/* Lo que solo tiene sentido con JavaScript (el envío por WhatsApp). */
html:not(.js) .solo-js {
    display: none !important;
}

/* Las piezas marcadas como "relleno" dentro de los símbolos van pintadas. */
symbol .relleno {
    fill: currentColor;
    stroke: none;
}

.raya {
    display: block;
    width: 64px;
    height: 5px;
    margin: 0.9rem 0 1.4rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--oro-400), var(--oro-500));
}

.etiqueta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--oro-texto);
}

.etiqueta::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--oro-500);
}

.titulo {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: var(--azul-900);
    text-wrap: balance;
}

.titulo__oro {
    color: var(--oro-titulo);
}

.seccion {
    padding-block: clamp(4rem, 9vw, 7rem);
}

/* ---------- Botones ---------- */

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.boton .icono {
    width: 1.15em;
    height: 1.15em;
}

.boton:hover {
    transform: translateY(-1px);
}

.boton--oro {
    background: linear-gradient(180deg, var(--oro-400), var(--oro-500));
    color: var(--azul-900);
    box-shadow: 0 8px 20px rgba(226, 154, 33, 0.35);
}

.boton--oro:hover {
    box-shadow: 0 10px 24px rgba(226, 154, 33, 0.48);
}

.boton--azul {
    background: var(--azul-900);
    color: #fff;
}

.boton--azul:hover {
    background: var(--azul-800);
}

.boton--linea {
    border-color: var(--azul-900);
    color: var(--azul-900);
    background: transparent;
}

.boton--linea:hover {
    background: var(--azul-900);
    color: #fff;
}

/* ---------- Cabecera ---------- */

.cabecera {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    transition: box-shadow 0.25s ease;
}

.cabecera.con-sombra {
    box-shadow: 0 6px 24px rgba(1, 38, 64, 0.12);
}

.cabecera__fila {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--cabecera);
}

.cabecera__logo {
    flex: none;
    border-radius: 6px;
}

.cabecera__logo img {
    width: auto;
    height: 46px;
}

.menu {
    display: flex;
    gap: 0.15rem;
    margin-left: auto;
}

.menu a {
    position: relative;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--azul-900);
    text-decoration: none;
    white-space: nowrap;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.3rem;
    height: 3px;
    border-radius: 2px;
    background: var(--oro-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.menu a:hover::after,
.menu a.activo::after {
    transform: scaleX(1);
}

.boton--cotizar {
    flex: none;
    min-height: 44px;
    padding: 0.6rem 1.15rem;
}

.menu__abrir {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--azul-900);
    cursor: pointer;
}

.menu__abrir .icono {
    width: 28px;
    height: 28px;
}

.icono--cerrar,
.menu-abierto .icono--abrir {
    display: none;
}

.menu-abierto .icono--cerrar {
    display: block;
}

.solo-angosto {
    display: none;
}

@media (max-width: 960px) {
    .cabecera__logo img {
        height: 40px;
    }

    .boton--cotizar {
        margin-left: auto;
    }

    .js .menu__abrir {
        display: inline-flex;
        order: 3;
    }

    .js .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem clamp(16px, 4vw, 32px) 1.2rem;
        background: #fff;
        box-shadow: 0 18px 30px rgba(1, 38, 64, 0.16);
        /* En pantallas bajas (celular apaisado, zoom al 400 %) el panel se desplaza por dentro. */
        max-height: calc(100vh - var(--cabecera));
        max-height: calc(100dvh - var(--cabecera));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .js .menu-abierto .menu {
        display: flex;
    }

    .js .menu a {
        padding: 0.95rem 0.25rem;
        border-bottom: 1px solid #e3e9ef;
        border-radius: 0;
        font-size: 1.05rem;
    }

    .js .menu a::after {
        left: 0.25rem;
        right: auto;
        width: 40px;
        bottom: 0.45rem;
    }

    /* Sin JavaScript, el menú queda a la vista en una segunda fila. La cabecera crece, así que deja de
       quedar fija arriba: si no, taparía los títulos al saltar a una sección. */
    html:not(.js) {
        scroll-padding-top: 12px;
    }

    html:not(.js) .cabecera {
        position: relative;
    }

    html:not(.js) .cabecera__fila {
        flex-wrap: wrap;
        padding-block: 0.6rem;
    }

    html:not(.js) .menu {
        order: 4;
        width: calc(100% + 1.6rem);
        flex-wrap: wrap;
        margin: 0 -0.8rem;
    }
}

@media (min-width: 961px) and (max-width: 1080px) {
    .menu a {
        padding-inline: 0.55rem;
    }

    .menu a::after {
        left: 0.55rem;
        right: 0.55rem;
    }
}

@media (max-width: 520px) {
    .cabecera__logo img {
        height: 32px;
    }

    .solo-ancho {
        display: none;
    }

    .solo-angosto {
        display: inline;
    }

    .boton--cotizar {
        padding-inline: 1rem;
    }
}

/* En los celulares angostos el logo, "Cotizar" y el botón de menú (46 px, no se encoge) tienen que caber. */
@media (max-width: 380px) {
    .cabecera__fila {
        gap: 0.5rem;
    }
}

@media (max-width: 365px) {
    .cabecera__logo img {
        height: 27px;
    }
}

@media (max-width: 340px) {
    .cabecera__logo img {
        height: 24px;
    }

    .boton--cotizar {
        padding-inline: 0.8rem;
    }
}

/* ---------- Portada ---------- */

/* Hasta 1200 px: el texto arriba, sobre un cielo de atardecer, y la foto completa debajo. */
.portada {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8dcae;
}

.portada__cuerpo {
    position: relative;
    z-index: 1;
    order: 1;
    padding-block: 2.6rem 2.2rem;
    /* Termina en el mismo durazno opaco con que empieza la foto: no queda un corte recto entre los dos. */
    background: linear-gradient(180deg, #d6e5f2 0%, #f3ead9 60%, #f8dcae 100%);
}

.portada__cuerpo > * {
    max-width: 34rem;
}

.portada__foto {
    position: relative;
    order: 2;
    aspect-ratio: 16 / 11;
}

.portada__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% 60%;
}

.portada__foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #f8dcae 0%, rgba(248, 220, 174, 0) 22%);
}

/* Como en el brochure: semibold, sin apretar las letras y en cuatro líneas
   ("Soluciones / energéticas / para un país / en movimiento"). */
.portada__titulo {
    max-width: 13.5ch;
    text-wrap: balance;
    font-size: clamp(2.3rem, 4.8vw, 4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--azul-900);
}

.portada .raya {
    width: 86px;
    height: 6px;
    margin-block: 1.3rem 1.4rem;
}

.portada__texto {
    max-width: 30rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 500;
    line-height: 1.6;
    color: #13283b;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

@media (min-width: 901px) and (max-width: 1200px) {
    .portada__foto {
        aspect-ratio: 21 / 9;
    }

    .portada__foto img {
        object-position: 60% 75%;
    }
}

/* Desde 1201 px: el texto a la izquierda sobre el cielo y la foto a la derecha, con su borde
   izquierdo fundido en el fondo. El camión queda entero y sin velo. Geometría comprobada de
   1201 a 1920 px: la cabina siempre empieza después del fundido y del texto, y la cola del
   tanque entra completa. */
@media (min-width: 1201px) {
    .portada {
        display: grid;
        align-items: center;
        min-height: clamp(560px, calc(100vh - var(--cabecera)), 700px);
        background: linear-gradient(180deg, #e9eef3 0%, #f6e3c4 55%, #f3cf98 100%);
    }

    .portada__cuerpo {
        padding-block: clamp(3rem, 5vw, 4.5rem) clamp(6rem, 9vw, 8rem);
        background: none;
    }

    .portada__cuerpo > :not(.portada__titulo) {
        max-width: min(34rem, 34vw);
    }

    /* La foto empieza donde termina la columna de texto (borde del contenedor + 34rem o 34vw + 2rem),
       y nunca antes del 34 % del ancho. */
    .portada__foto {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: max(34%, calc(50% - 568px + min(34rem, 34vw) + 2rem));
        aspect-ratio: auto;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%);
        mask-image: linear-gradient(90deg, transparent 0, #000 8%);
    }

    .portada__foto img {
        object-position: 70% 70%;
    }

    .portada__foto::after {
        display: none;
    }

    .portada__titulo {
        max-width: min(13.5ch, 34vw);
        font-size: clamp(2.3rem, 3.8vw, 3.6rem);
    }
}

/* En los celulares más angostos el título y la etiqueta se achican para no partir "EN MOVIMIENTO"
   ni dejar "BOLIVIA" sola. */
@media (max-width: 355px) {
    .portada__titulo {
        font-size: 2rem;
    }

    .portada .etiqueta {
        gap: 0.6rem;
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }

    .portada .etiqueta::before {
        width: 22px;
    }
}

/* ---------- Franja de los tres servicios ---------- */

.franja {
    position: relative;
    z-index: 2;
    background: var(--azul-900);
    color: #fff;
}

.franja__curva {
    position: absolute;
    left: 0;
    bottom: calc(100% - 1px);
    width: 100%;
    height: clamp(36px, 6vw, 90px);
}

.curva-oro {
    fill: var(--oro-500);
}

.curva-azul {
    fill: var(--azul-900);
}

.franja__lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-block: 1.4rem 2.4rem;
    list-style: none;
}

.franja__lista li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 1rem;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-transform: uppercase;
}

.franja__lista li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

/* Íconos grandes, como en la portada del brochure (casi el doble de alto que el texto). */
.franja__lista .icono {
    width: 4.4rem;
    height: 3.4rem;
    color: var(--oro-400);
    stroke-width: 1.4;
}

.franja__lista span {
    max-width: 13em;
    text-wrap: balance;
}

@media (max-width: 600px) {
    .franja__lista {
        grid-template-columns: 1fr;
        padding-block: 0.6rem 1.4rem;
    }

    .franja__lista li {
        flex-direction: row;
        gap: 1rem;
        padding: 0.9rem 0;
        text-align: left;
    }

    .franja__lista li + li {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .franja__lista .icono {
        width: 2.6rem;
        height: 2rem;
    }

    .franja__lista span {
        max-width: none;
    }
}

/* ---------- Nosotros ---------- */

.nosotros {
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
    background: linear-gradient(180deg, var(--fondo-claro) 0%, var(--crema) 100%);
}

.nosotros__rejilla {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.nosotros__texto p {
    font-size: 1.075rem;
    line-height: 1.75;
    color: var(--texto);
}

.nosotros__texto p + p {
    margin-top: 1.1rem;
}

.nosotros__texto strong {
    font-weight: 700;
    color: var(--azul-900);
}

/* Como en el brochure: "Energía hoy," y "mañana" en peso medio y "más oportunidades" en negrita. */
.nosotros__texto .lema {
    margin-top: 2.2rem;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--azul-900);
}

.nosotros__texto .lema strong {
    display: block;
    font-weight: 800;
    color: var(--oro-titulo);
}

.lema::after {
    content: "";
    display: block;
    width: 64px;
    height: 5px;
    margin-top: 0.9rem;
    border-radius: 3px;
    background: var(--oro-500);
}

.nosotros__foto {
    position: relative;
    margin-inline-end: 18px;
}

.nosotros__foto::before {
    content: "";
    position: absolute;
    inset: 22px -18px -18px 22px;
    border: 3px solid var(--oro-500);
    border-radius: calc(var(--radio) + 6px);
}

.nosotros__foto img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radio) + 4px);
    box-shadow: var(--sombra);
}

@media (max-width: 900px) {
    .nosotros__rejilla {
        grid-template-columns: 1fr;
    }

    .nosotros__foto {
        max-width: 620px;
    }
}

/* ---------- Misión, visión y valores ---------- */

.principios {
    position: relative;
    padding-block: calc(var(--onda) + 2.5rem) calc(var(--onda) + 2.5rem);
    background:
        radial-gradient(circle at 12% 18%, rgba(19, 74, 115, 0.55) 0, rgba(19, 74, 115, 0) 42%),
        radial-gradient(circle at 92% 88%, rgba(19, 74, 115, 0.45) 0, rgba(19, 74, 115, 0) 40%),
        linear-gradient(165deg, var(--azul-900) 0%, var(--azul-950) 100%);
    color: #fff;
}

.onda {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--onda);
}

.onda--arriba {
    top: -1px;
}

.onda--abajo {
    bottom: -1px;
}

.onda__clara {
    fill: var(--crema);
}

.onda__oro {
    fill: var(--oro-500);
}

.onda__blanca {
    fill: #fff;
}

.principios__rejilla {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
}

.principio {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.principio--valores {
    grid-column: 1 / -1;
}

.principio__icono {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 2px solid var(--oro-400);
    border-radius: 50%;
    box-shadow: inset 0 0 0 7px rgba(246, 186, 59, 0.08);
    color: var(--oro-400);
}

.principio__icono .icono {
    width: 46px;
    height: 46px;
    stroke-width: 1.5;
}

.principio__titulo {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--oro-400);
}

.principio .raya {
    margin-block: 0.7rem 1rem;
    width: 56px;
    height: 4px;
}

.principio p {
    max-width: 36rem;
    font-size: 1.06rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.valores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.valores li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid rgba(246, 186, 59, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.02rem;
    font-weight: 600;
}

.valores .icono {
    color: var(--oro-400);
    stroke-width: 1.6;
}

@media (max-width: 760px) {
    .principios__rejilla {
        grid-template-columns: 1fr;
    }

    .principio {
        grid-template-columns: 64px 1fr;
        gap: 1.1rem;
    }

    .principio__icono {
        width: 64px;
        height: 64px;
        box-shadow: inset 0 0 0 5px rgba(246, 186, 59, 0.08);
    }

    .principio__icono .icono {
        width: 32px;
        height: 32px;
    }
}

/* ---------- Servicios ---------- */

.servicios__rejilla {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1rem;
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.6rem clamp(1.2rem, 3vw, 2.4rem) 1.8rem;
    text-align: center;
}

.servicio + .servicio {
    border-left: 1px solid var(--linea);
}

.servicio__icono {
    width: 72px;
    height: 72px;
    fill: var(--azul-900);
    transition: transform 0.25s ease, fill 0.25s ease;
}

.servicio__icono--ancho {
    width: 96px;
}

.servicio:hover .servicio__icono {
    transform: translateY(-3px);
    fill: var(--azul-700);
}

.servicio__titulo {
    max-width: 18ch;
    text-wrap: balance;
    margin: 1.1rem 0 0.7rem;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--azul-900);
}

.servicio p {
    max-width: 30ch;
    line-height: 1.7;
    color: var(--texto-suave);
}

.llamado {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding: 1.6rem clamp(1.4rem, 4vw, 2.4rem);
    border-left: 6px solid var(--oro-500);
    border-radius: var(--radio);
    background: linear-gradient(115deg, var(--azul-900) 0%, var(--azul-800) 100%);
    color: #fff;
    box-shadow: var(--sombra);
}

.llamado__texto {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.35;
}

.llamado__texto strong {
    color: var(--oro-400);
}

@media (max-width: 860px) {
    .servicios__rejilla {
        grid-template-columns: minmax(0, 1fr);
    }

    .servicio {
        display: grid;
        grid-template-columns: 96px 1fr;
        column-gap: 1.2rem;
        align-items: start;
        padding: 1.6rem 0;
        text-align: left;
    }

    .servicio + .servicio {
        border-left: 0;
        border-top: 1px solid var(--linea);
    }

    .servicio__icono {
        grid-row: span 2;
        width: 64px;
        height: 64px;
        justify-self: center;
    }

    .servicio__icono--ancho {
        width: 86px;
    }

    .servicio__titulo {
        max-width: none;
        margin: 0 0 0.5rem;
    }

    .servicio p {
        max-width: none;
    }
}

/* En los celulares más angostos "COMERCIALIZACIÓN" no cabe al lado del ícono: el ícono pasa arriba. */
@media (max-width: 420px) {
    .servicio {
        display: block;
    }

    .servicio__icono {
        width: 56px;
        height: 56px;
        margin: 0 0 0.9rem;
        justify-self: start;
    }

    .servicio__icono--ancho {
        width: 76px;
    }

    .servicio__titulo {
        font-size: 1.05rem;
    }
}

/* ---------- Contacto ---------- */

.contacto {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(40, 86, 120, 0.7) 0, rgba(40, 86, 120, 0) 50%),
        linear-gradient(150deg, #0f3556 0%, var(--azul-900) 55%, var(--azul-950) 100%);
    color: #fff;
}

/* La P de la contraportada: con la gota dorada a la derecha del título, como en el brochure, y nunca
   detrás del formulario ni debajo del párrafo (el texto blanco sobre el dorado no se leería). */
.contacto__marca {
    position: absolute;
    top: clamp(4rem, 9vw, 7rem);
    left: calc(max(32px, 50% - 568px) + 15rem);
    width: 300px;
    height: auto;
    pointer-events: none;
}

.contacto__rejilla {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.contacto__titulo {
    max-width: 12ch;
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 600;
    line-height: 1.08;
    text-transform: uppercase;
    text-wrap: balance;
}

.contacto__titulo .titulo__oro {
    display: block;
    font-weight: 800;
    color: var(--oro-400);
}

.contacto__intro {
    max-width: 30rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.datos {
    display: grid;
    gap: 0.4rem;
    margin-top: 1.8rem;
    padding: 0;
    list-style: none;
}

.datos li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block: 0.55rem;
}

.datos__icono {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--oro-400);
    border-radius: 50%;
    color: var(--oro-400);
}

.datos__icono .icono {
    width: 24px;
    height: 24px;
}

.datos__etiqueta {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.datos a {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.datos a:hover {
    text-decoration: underline;
    text-decoration-color: var(--oro-400);
    text-underline-offset: 4px;
}

.consignas {
    margin-top: 2.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(246, 186, 59, 0.4);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

/* Cada consigna lleva delante su punto: si la línea se corta, el punto baja con la palabra. */
.consignas > span {
    white-space: nowrap;
}

.consignas__punto {
    margin-inline: 0.35em 0.55em;
    color: var(--oro-400);
}

/* Formulario */

.formulario {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
    padding: clamp(1.4rem, 3vw, 2.3rem);
    border-top: 6px solid var(--oro-500);
    border-radius: calc(var(--radio) + 4px);
    background: #fff;
    color: var(--texto);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.formulario__titulo,
.formulario__nota,
.formulario__error,
.formulario__acciones,
.formulario__pie,
.campo--ancho {
    grid-column: 1 / -1;
}

.formulario__titulo {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--azul-900);
}

.formulario__nota {
    margin-top: -0.4rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--texto-suave);
}

.campo label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--azul-900);
}

.obligatorio {
    color: var(--error);
}

/* El borde es lo único que marca cada campo (su fondo casi no se distingue del blanco de la tarjeta):
   #7d8fa3 da 3,3:1 sobre blanco y 3,2:1 sobre #f8fafc (WCAG 1.4.11). */
.campo input,
.campo select,
.campo textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #7d8fa3;
    border-radius: 10px;
    background: #f8fafc;
    font: inherit;
    font-size: 1rem;
    color: var(--texto);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.campo textarea {
    min-height: 118px;
    resize: vertical;
}

.campo select {
    appearance: none;
    padding-right: 2.3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23012640' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 18px;
}

.campo input:hover,
.campo select:hover,
.campo textarea:hover {
    border-color: #5f7388;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: var(--azul-900);
    background-color: #fff;
    outline: 3px solid rgba(226, 154, 33, 0.55);
    outline-offset: 1px;
}

.campo [aria-invalid="true"] {
    border-color: var(--error);
    background-color: #fff8f7;
}

/* El campo con error que recibe el foco sigue viéndose rojo, con un contorno sólido. */
.campo [aria-invalid="true"]:focus {
    border-color: var(--error);
    background-color: #fff8f7;
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

/* Las regiones vivas existen siempre; vacías no ocupan lugar. */
.formulario__error:not(:empty) {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid #f4b8b2;
    border-radius: 10px;
    background: #fef3f2;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--error);
}

.formulario__acciones {
    margin-top: 0.3rem;
}

.formulario__botones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.formulario__botones .boton {
    flex: 1 1 auto;
    white-space: nowrap;
}

/* A 320 px "Enviar por WhatsApp" cabe en una línea con menos relleno. */
@media (max-width: 420px) {
    .formulario__botones .boton {
        padding-inline: 1rem;
        white-space: normal;
    }
}

.formulario__pie {
    font-size: 0.85rem;
    color: var(--texto-suave);
}

.formulario__estado:not(:empty) {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--azul-900);
}

.formulario__estado a {
    color: var(--azul-700);
    text-underline-offset: 3px;
}

/* El formulario va en una columna cuando es angosto: así el selector no corta el nombre del servicio. */
@media (max-width: 620px), (min-width: 961px) and (max-width: 1200px) {
    .formulario {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .contacto__rejilla {
        grid-template-columns: minmax(0, 1fr);
    }

    .contacto__marca {
        top: 1.5rem;
        right: -100px;
        left: auto;
        width: 300px;
    }
}

@media (max-width: 560px) {
    .consignas {
        letter-spacing: 0.16em;
    }
}

/* Las tres consignas en una sola línea, como en el brochure. */
@media (max-width: 420px) {
    .consignas {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .consignas__punto {
        margin-inline: 0.2em 0.3em;
    }
}

/* El correo entra en una línea desde unos 350 px; más angosto se corta después de la @. */
@media (max-width: 374px) {
    .datos a {
        font-size: 1rem;
    }
}

/* ---------- Pie ---------- */

.pie {
    padding-block: 3.2rem 1.4rem;
    background: var(--azul-950);
    color: rgba(255, 255, 255, 0.8);
}

.pie__rejilla {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem 3rem;
    align-items: start;
}

.pie__marca img {
    width: auto;
    height: 52px;
    margin-bottom: 1rem;
}

.pie__marca p {
    max-width: 32ch;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pie__menu,
.pie__contacto {
    display: grid;
    gap: 0.55rem;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.pie a {
    color: #fff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pie a:hover {
    text-decoration: underline;
    text-decoration-color: var(--oro-400);
    text-underline-offset: 4px;
}

.pie__legal {
    margin-top: 2.4rem;
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* La línea va en el párrafo y no en el contenedor, para que no sobresalga del contenido. */
.pie__legal p {
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* En celular corta como "© 2026 PETROTRADE. / Todos los derechos reservados." */
.pie__derechos {
    display: inline-block;
}

@media (max-width: 960px) {
    .pie__rejilla {
        grid-template-columns: 1fr 1fr;
    }

    .pie__marca {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .pie__rejilla {
        grid-template-columns: 1fr;
    }

    .pie__marca img {
        height: 42px;
    }
}

/* ---------- Aparición al desplazarse (solo con JavaScript y sin "reducir movimiento") ---------- */

.js .aparecer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .aparecer.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .aparecer {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .boton,
    .servicio__icono,
    .menu a::after {
        transition: none;
    }
}

/* ---------- Impresión ---------- */

@media print {
    .cabecera,
    .saltar,
    .franja__curva,
    .onda,
    .contacto__marca,
    .formulario,
    .llamado,
    .acciones {
        display: none !important;
    }

    .portada,
    .principios,
    .contacto,
    .franja,
    .pie {
        background: none !important;
        color: #000 !important;
    }

    .portada__foto {
        position: static;
    }

    .portada__foto::after {
        display: none;
    }

    .principio p,
    .principio__titulo,
    .contacto__intro,
    .datos a,
    .datos__etiqueta,
    .consignas,
    .pie a {
        color: #000 !important;
    }

    .js .aparecer {
        opacity: 1;
        transform: none;
    }
}
