/*
 * Nuriplast — páginas interiores: empresa, servicios y procesos, contacto, presupuesto, catálogo,
 * noticias y textos legales. Se carga en todas ellas; catalogo.css y noticias.css van encima.
 *
 * Es la estructura de las interiores de nuriplast.com con el sistema de la portada (web.css):
 * la cabecera oscura con el telón verde azulado de la web actual y el título grande en
 * mayúsculas, las pestañas negras que bajan sobre la primera sección blanca (.escalon-2), las
 * esquinas redondeadas sobre el negro (.redondo-abajo), los revelados y el paralaje de las fotos.
 */

/* ═══ Base ═══════════════════════════════════════════════════════════════════════════ */
/*
 * Como en la portada: por las esquinas redondeadas asoma el negro con planos del fondo.
 * Lo que sobresale a los lados (la última pestaña de los escalones, lo que entra desde la
 * derecha al revelarse) se recorta aquí: así el móvil nunca tiene desplazamiento lateral.
 * «clip» no crea caja de desplazamiento, de modo que lo «sticky» sigue funcionando.
 */
.interior main { background: transparent; overflow-x: clip; }
.interior .redondo-abajo { position: relative; z-index: 2; }

/* Rejillas de una columna en móvil: nunca más anchas que la pantalla (tablas, correos largos…) */
.profesion-rejilla, .pilares, .clave-rejilla, .calidad-rejilla, .atencion-rejilla, .argumentos-rejilla,
.formulario-rejilla, .canales, .con-lateral { grid-template-columns: minmax(0, 1fr); }

.botones { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* Foto con marco redondeado; con --paralaje se desliza dentro del marco al bajar (inicio.js) */
.foto-marco {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radio-m);
    background: var(--gris-tarjeta);
}
.foto-marco img, .foto-marco video { display: block; width: 100%; height: 100%; object-fit: cover; }
.foto-marco--paralaje img { height: 116%; transform: translate3d(0, var(--paralaje-img, 0px), 0); }

/* ═══ Cabecera de página: el héroe oscuro de las interiores ═══════════════════════════ */
main > .cabecera-pagina {
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: clamp(420px, 68vh, 720px);
    padding: clamp(7.5rem, 17vh, 10.5rem) 0 clamp(1.5rem, 4vh, 3rem);
    text-align: center;
    overflow: hidden;
}
main > .cabecera-pagina--compacta { min-height: clamp(380px, 58vh, 620px); }
main > .cabecera-pagina--sencilla { min-height: clamp(340px, 50vh, 540px); }

/*
 * El telón verde azulado que la web actual lleva detrás del título, hecho con degradados: se
 * mueve muy despacio, baja algo más lento que la página y se funde en negro por abajo, donde
 * empiezan las pestañas de la sección blanca.
 */
.cabecera-telon {
    position: absolute; inset: -12% 0 0; z-index: -2;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .36) 0, rgba(0, 0, 0, 0) 46px, rgba(255, 255, 255, .06) 78px, rgba(0, 0, 0, .28) 118px, rgba(0, 0, 0, 0) 160px),
        linear-gradient(90deg, rgba(2, 2, 2, .88) 0%, rgba(2, 2, 2, .3) 34%, rgba(2, 2, 2, .08) 64%, rgba(2, 2, 2, .34) 100%),
        linear-gradient(to bottom, #07211F 0%, #0F4D46 42%, #1F8C79 78%, #3DB79E 100%);
    background-size: 160px 100%, 100% 100%, 100% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 60%, transparent 97%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 60%, transparent 97%);
    transform: translate3d(0, var(--paralaje, 0px), 0);
    animation: telon-cabecera 16s ease-in-out infinite alternate;
}
@keyframes telon-cabecera { to { background-position: 90px 0, 0 0, 0 0; } }


.cabecera-contenido { position: relative; }
.cabecera-titulo {
    margin: 0 auto;
    font-size: clamp(2.6rem, .8rem + 7.2vw, 7.5rem);
    line-height: 1;
    font-weight: 300; letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 4px 40px rgba(0, 0, 0, .3);
}
.cabecera-pagina--compacta .cabecera-titulo { font-size: clamp(2.2rem, 1rem + 4.4vw, 4.6rem); line-height: 1.06; }
.cabecera-pagina--sencilla .cabecera-titulo { font-size: clamp(2.4rem, .9rem + 5.6vw, 5.5rem); }
/* Las noticias llevan titulares largos: sin mayúsculas y algo más estrechos */
.cabecera-pagina--titular .cabecera-titulo { max-width: 24ch; text-transform: none; letter-spacing: -1.5px; }
.cabecera-lema {
    margin: 1.3rem auto 0; max-width: 46rem;
    font-size: clamp(1.05rem, .92rem + .6vw, 1.5rem); line-height: 1.5;
    font-weight: 300; letter-spacing: .4px;
    color: rgba(255, 255, 255, .86);
}
.cabecera-datos {
    margin: 1.4rem 0 0;
    font-size: .78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255, 255, 255, .64);
}
.cabecera-pagina .ante { margin-bottom: 1.1rem; color: var(--verde); }

/* Migas de pan (fichas, noticias y legales) */
.miga {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem;
    margin: 0 0 1.4rem;
    font-size: .74rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: var(--tinta-3);
}
.miga a { transition: color .3s ease; }
.miga a:hover, .miga [aria-current] { color: var(--verde); }
.cabecera-pagina .miga { justify-content: center; margin-bottom: 1.6rem; color: rgba(255, 255, 255, .58); }

/* ═══ Empresa ════════════════════════════════════════════════════════════════════════ */
/* Profesionalidad y compromiso: la foto de la recepción y los tres valores con su icono */
.profesion-titulo { margin: 0 0 clamp(2rem, 4vw, 3.4rem); }
.profesion-rejilla { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .profesion-rejilla { grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: clamp(40px, 5vw, 70px); } }
.profesion-foto { aspect-ratio: 680 / 590; }
.valores-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3.2rem); }
.valores-lista li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.valores-icono { display: block; width: 72px; height: 72px; color: var(--negro); transition: color .4s ease, transform .6s var(--curva); }
.valores-icono svg { width: 100%; height: 100%; }
.valores-lista li:hover .valores-icono { color: var(--verde-hondo); transform: rotate(-8deg) scale(1.06); }
.valores-lista h3 { margin: .15rem 0 .6rem; }
.valores-lista p { margin: 0; color: #666; font-size: 15px; line-height: 1.65; }
@media (max-width: 519px) {
    .valores-lista li { grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; }
    .valores-icono { width: 52px; height: 52px; }
}

/* Los tres pilares: foto, rótulo en mayúsculas con su raya y texto grande */
.pilares { display: grid; gap: 3.5rem 40px; margin-top: clamp(4.5rem, 9vw, 8.5rem); }
@media (min-width: 900px) { .pilares { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pilar-foto { aspect-ratio: 440 / 310; }
.pilar-foto img { transition: transform 1.2s var(--curva); }
.pilar:hover .pilar-foto img { transform: scale(1.06); }
.pilar-etiqueta {
    margin: 2.4rem 0 0; padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(2, 2, 2, .55);
    font-family: var(--f-cuerpo); font-size: 15px; line-height: 1.5; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase;
}
.pilar-texto {
    margin: 1.3rem 0 0;
    font-family: var(--f-titular); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.38;
    font-weight: 400; letter-spacing: -.5px;
}

/*
 * La franja de la planta: la foto a lo ancho (donde la web actual tenía el vídeo de la
 * plantilla). Se mete por debajo de las esquinas redondeadas de la sección de arriba y se
 * funde en negro por abajo, donde empiezan las pestañas de «La clave».
 */
.franja {
    display: flex; align-items: flex-end;
    min-height: clamp(400px, 60vw, 820px);
    margin-top: calc(-1 * clamp(60px, 11vw, 160px));
    padding: 0;
    overflow: hidden;
}
.franja-foto { position: absolute; inset: -22% 0; z-index: -2; transform: translate3d(0, var(--paralaje, 0px), 0); }
.franja-foto img, .franja-foto video { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .franja-foto video { display: none; } .franja-foto { background: center / cover no-repeat url('/img/web/nave-inyectoras.jpg'); } }
.franja::after {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(2, 2, 2, .15) 0%, rgba(2, 2, 2, 0) 30%, rgba(2, 2, 2, .5) 70%, #020202 100%);
    pointer-events: none;
}
.franja-texto { max-width: 820px; margin: 0; padding-bottom: clamp(2.5rem, 6vw, 5rem); color: var(--blanco); text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }

/* 01 — La clave: foto, texto y los dos contadores de rodillo de la web actual */
.clave-titulo { max-width: 900px; margin-bottom: clamp(2.5rem, 5vw, 4.2rem); }
.clave-rejilla { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .clave-rejilla { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: clamp(3rem, 7vw, 100px); } }
.clave-foto { aspect-ratio: 4 / 5; }
@media (max-width: 979px) { .clave-foto { aspect-ratio: 4 / 3; } }
.clave-lead { margin: 0 0 1.4rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; }
.clave-texto { margin: 0; color: var(--tinta-2); font-size: 15px; line-height: 1.7; }
.clave-cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 40px); margin-top: clamp(2.5rem, 5vw, 4rem); }
.clave-cifra-etiqueta {
    display: flex; align-items: center; gap: .6rem;
    min-height: 2.6em;
    margin: 0; padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--negro);
    font-size: clamp(.75rem, .7rem + .25vw, 1rem); line-height: 1.3; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.clave-cifra-etiqueta svg { width: 20px; height: 20px; flex: none; }
.clave-cifra-valor {
    display: flex;
    height: 1.2em; overflow: hidden;
    margin: 1.2rem 0 0;
    font-size: clamp(3rem, 1.8rem + 4.6vw, 6.5rem); line-height: 1.2; font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* Cabecera de «Calidad y certificaciones» (Nuestra historia) */
.calidad-cabeza { max-width: 920px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; }
.calidad-cabeza h2 { margin-bottom: 1rem; }
.calidad-cabeza .entradilla { margin-inline: auto; }

/* Enlace de Empresa a «Nuestra historia» */
.empresa-historia { padding-block: clamp(4.5rem, 9vw, 8rem); text-align: center; }
.empresa-historia-caja { max-width: 980px; }
.empresa-historia h2 { margin: 0 auto 2.2rem; }
.empresa-historia .botones { justify-content: center; }

/* Atención personalizada: la foto, el acordeón de la portada y los dos botones */
.atencion-rejilla { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .atencion-rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 70px); } }
.atencion-foto { aspect-ratio: 665 / 690; }
@media (max-width: 979px) { .atencion-foto { aspect-ratio: 4 / 3; } }
.atencion-lado h2 { margin: 0 0 1.2rem; }
.atencion-cinta { margin-top: clamp(3.5rem, 7vw, 6rem); }
.atencion--seguida { padding-top: clamp(2rem, 5vw, 4rem); }

/* ═══ Nuestra historia (/empresa/sobre-nosotros) ═════════════════════════════════════ */
/*
 * La página de la web actual: la frase centrada, la línea de tiempo con sus dos tramos
 * («Inicios» y «Actualidad») y los hitos a un lado y a otro de la raya, la cita grande, la foto
 * del fundador, el bloque negro de «Calidad y certificaciones» con el vídeo y los tres sellos.
 */
.hist { position: relative; overflow: hidden; }
.hist-adorno {
    position: absolute; z-index: 0; pointer-events: none;
    height: auto; opacity: .92;
    translate: 0 var(--paralaje, 0px);
    filter: drop-shadow(0 30px 40px rgba(2, 2, 2, .08));
}
.hist-adorno--nudo { width: clamp(150px, 22vw, 330px); right: max(2%, calc(50% - 640px)); top: calc(var(--h-escalon) + clamp(9rem, 16vw, 14rem)); }
.hist-adorno--aro { width: clamp(130px, 17vw, 250px); left: max(2%, calc(50% - 660px)); bottom: -2rem; opacity: .85; }
.hist .contenedor { position: relative; z-index: 1; }

.hist-entradilla {
    max-width: 58rem; margin: 0 auto clamp(3rem, 6vw, 5rem);
    text-align: center;
    font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); line-height: 1.55;
    color: var(--tinta);
}

.hist-linea { position: relative; max-width: 1160px; margin: 0 auto; padding-bottom: clamp(2rem, 5vw, 4rem); }
/* La raya central que une todo */
.hist-linea::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
    width: 1px; background: rgba(2, 2, 2, .55);
}
.hist-tramo { position: relative; z-index: 1; display: flex; justify-content: center; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.hist-tramo span {
    display: grid; place-items: center;
    width: 104px; height: 104px; border-radius: 50%;
    background: #4B4B4B; color: var(--blanco);
    font-size: .74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 0 0 10px var(--blanco);
}
.hist-hitos + .hist-tramo { margin-top: clamp(1.5rem, 4vw, 3rem); }

.hist-hitos { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 3.5rem) 0; }
.hist-hito { position: relative; }
.hist-hito-ano { margin: 0 0 .3rem; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--verde-hondo); }
.hist-hito-titulo { margin: 0 0 1.1rem; font-family: var(--f-cuerpo); font-size: clamp(1.2rem, 1.05rem + .55vw, 1.55rem); line-height: 1.25; font-weight: 600; letter-spacing: -.2px; color: var(--verde-hondo); }
.hist-hito-texto { margin: 0 0 1.8rem; font-size: 1rem; line-height: 1.65; color: var(--tinta-2); }
.hist-hito-foto { margin: 0; overflow: hidden; border-radius: 4px; background: var(--gris-tarjeta); }
.hist-hito-foto img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; transition: transform 1.2s var(--curva); }
.hist-hito:hover .hist-hito-foto img { transform: scale(1.035); }
/* El punto sobre la raya y el trazo que llega hasta él */
.hist-hito::before, .hist-hito::after { content: ''; position: absolute; top: 0; }
.hist-hito::before { height: 1px; background: rgba(2, 2, 2, .55); }
.hist-hito::after { width: 11px; height: 11px; border-radius: 50%; background: #4B4B4B; translate: -50% -50%; transition: background-color .5s ease, box-shadow .5s ease; }
.hist-hito.visible::after { background: var(--verde-hondo); box-shadow: 0 0 0 6px rgba(159, 193, 112, .25); }

@media (min-width: 900px) {
    .hist-hitos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(60px, 8vw, 110px); }
    .hist-hito { padding-top: 1.6rem; }
    .hist-hito--izq { grid-column: 1; text-align: right; }
    .hist-hito--der { grid-column: 2; margin-top: clamp(5rem, 9vw, 7.5rem); }
    .hist-hito--izq .hist-hito-texto, .hist-hito--izq .hist-hito-foto { margin-left: auto; }
    .hist-hito-texto, .hist-hito-foto { max-width: 440px; }
    /* El trazo va del borde de fuera de la columna hasta la raya del centro */
    .hist-hito--izq::before { left: 0; right: calc(-1 * clamp(30px, 4vw, 55px)); }
    .hist-hito--izq::after { left: calc(100% + clamp(30px, 4vw, 55px)); }
    .hist-hito--der::before { left: calc(-1 * clamp(30px, 4vw, 55px)); right: 0; }
    .hist-hito--der::after { left: calc(-1 * clamp(30px, 4vw, 55px)); }
}
@media (max-width: 899px) {
    .hist-linea::before { left: 14px; }
    .hist-tramo { justify-content: flex-start; }
    .hist-tramo span { width: 72px; height: 72px; font-size: .6rem; box-shadow: 0 0 0 6px var(--blanco); translate: -8px 0; }
    .hist-adorno { display: none; }
    .hist-hito { padding: 1.3rem 0 0 44px; }
    .hist-hito::before { left: 14px; width: 22px; }
    .hist-hito::after { left: 14px; }
}

/* La cita grande (la misma letra que la de la portada) */
.hist-cita { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.hist-cita .cita { max-width: 1000px; font-size: clamp(2.1rem, 1rem + 4.2vw, 4.6rem); }
.hist-cita .cita-autor { font-size: .82rem; font-weight: 500; }

/* El fundador */
.hist-fundador { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(5rem, 10vw, 8rem); text-align: center; }
.hist-fundador-foto { width: min(100%, 520px); margin: 0 auto; overflow: hidden; border-radius: var(--radio-m); background: var(--gris-tarjeta); }
.hist-fundador-foto img { display: block; width: 100%; height: auto; aspect-ratio: 970 / 1180; object-fit: cover; object-position: center 20%; }
.hist-fundador-titulo { margin: 1.2rem 0 .8rem; font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); font-weight: 300; line-height: 1.1; letter-spacing: -1px; }
.hist-fundador-memoria { margin: 0; font-size: 1.05rem; font-weight: 500; }

/* Calidad y certificaciones: el bloque negro de esquinas en escalón con el vídeo detrás */
.hist-certificaciones { position: relative; background: var(--blanco); padding: 0 0 clamp(3rem, 6vw, 5rem); }
.hist-certificaciones-caja {
    position: relative; isolation: isolate; overflow: hidden;
    width: min(100% - 2 * clamp(0px, 4vw, 80px), 1760px); margin: 0 auto;
    padding: clamp(5rem, 10vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
    border-radius: clamp(24px, 3vw, 44px);
    background: var(--negro); color: var(--blanco);
    --tinta: var(--blanco); --tinta-2: rgba(255, 255, 255, .78);
}
.hist-certificaciones-video {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
    opacity: .5;
    filter: grayscale(.35);
}
.hist-certificaciones-velo {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(2, 2, 2, .92) 0%, rgba(2, 2, 2, .55) 45%, rgba(40, 40, 40, .55) 100%);
}
.hist-certificaciones .calidad-cabeza { max-width: 1100px; }
.hist-certificaciones .calidad-cabeza h2 { text-transform: uppercase; font-size: clamp(2rem, .9rem + 3.4vw, 4rem); }
.hist-sellos { display: grid; gap: 24px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) { .hist-sellos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 40px; } }
.hist-sello {
    padding: clamp(2rem, 3vw, 2.8rem) clamp(1.4rem, 2.2vw, 2rem) clamp(2.2rem, 3vw, 3rem);
    border-radius: 14px;
    background: linear-gradient(180deg, #2A2A2A 0%, #1F1F1F 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    text-align: center;
    transition: transform .6s var(--curva), box-shadow .6s var(--curva), background-color .5s ease;
}
.hist-sello:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .35), 0 40px 70px -42px rgba(201, 162, 39, .45); }
.hist-sello-img { display: block; width: min(76%, 240px); height: auto; margin: 0 auto 1.6rem; transition: transform .8s var(--curva); }
.hist-sello:hover .hist-sello-img { transform: rotate(-8deg) scale(1.04); }
.hist-sello-titulo { margin: 0 0 1.2rem; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.7rem); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; }
.hist-sello-texto p { margin: 0 0 1rem; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .78); }
.hist-sello-texto p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .hist-certificaciones-video { display: none; } }

/* ═══ Servicios y procesos ═══════════════════════════════════════════════════════════ */
/*
 * El calzo blanco flota en el hueco de la segunda fila, igual que en la portada: centrado en su
 * hueco y subiendo y bajando despacio (los estilos comunes están en inicio.css).
 */
.servicios-rejilla .servicio-hueco { position: relative; z-index: 0; }

/* La cita: la escena se recorta con las esquinas redondeadas de la sección */
.cita-procesos { overflow: hidden; }

/* 02 — El proceso: las cinco fotos de la planta; la que se señala se abre */
.planta-titulo { max-width: 900px; margin-bottom: 0; }
.galeria-planta {
    display: flex; gap: 16px;
    height: clamp(380px, 40vw, 580px);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}
.galeria-foto {
    position: relative;
    flex: 1 1 0; min-width: 0;
    margin: 0;
    border-radius: var(--radio-m);
    overflow: hidden;
    background: #111;
    transition: flex-grow .8s var(--curva);
}
.galeria-foto img {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(.8) brightness(.86);
    transition: transform 1.2s var(--curva), filter .6s ease;
}
.galeria-foto:hover { flex-grow: 2.4; }
.galeria-foto:hover img { transform: scale(1.04); filter: none; }
.galeria-foto figcaption {
    position: absolute; left: 14px; bottom: 14px; right: 14px;
    width: max-content; max-width: calc(100% - 28px);
    padding: .7rem 1.1rem;
    border-radius: var(--pildora);
    background: rgba(24, 24, 24, .55);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: var(--blanco);
    font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background-color .4s ease;
}
.galeria-foto:hover figcaption { background: var(--verde); }
@media (max-width: 759px) {
    .galeria-planta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 12px; }
    .galeria-foto { aspect-ratio: 3 / 4; }
    .galeria-foto:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
    .galeria-foto:hover { flex-grow: 1; }
}

/* Los cuatro argumentos de /servicios/: acordeón numerado y la foto alta */
.argumentos-rejilla { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .argumentos-rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: clamp(3rem, 6vw, 70px); } }
.argumentos-foto { aspect-ratio: 665 / 740; }
@media (max-width: 979px) { .argumentos-foto { aspect-ratio: 4 / 3; } }
.argumentos-boton { margin-top: 2.6rem; }

/* 03 — Procesos: la cabecera de la línea de tiempo, con el telón como en /procesos/ */
.banda-procesos { overflow: hidden; padding-block: clamp(5.5rem, 12vw, 10rem); }
.banda-titulo {
    margin: 0 auto;
    font-size: clamp(2.6rem, .8rem + 7.2vw, 7.5rem); line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 4px 40px rgba(0, 0, 0, .3);
}
.banda-procesos .entradilla { margin: 1.5rem auto 0; color: rgba(255, 255, 255, .82); }

/*
 * La línea de tiempo de /procesos/: una raya en el centro que se va llenando de verde al
 * bajar (data-cronologia, inicio.js), el grupo en un círculo sobre ella, el texto a la
 * izquierda y la foto a la derecha, algo más abajo.
 */
.pasos { --hueco: clamp(60px, 9vw, 140px); position: relative; }
.pasos-linea {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 2px; margin-left: -1px;
    background: rgba(2, 2, 2, .12);
    border-radius: 2px;
}
.pasos-linea i {
    position: absolute; left: 0; top: 0;
    width: 100%; height: var(--avance, 0%);
    background: linear-gradient(to bottom, var(--verde), var(--verde-hondo));
    border-radius: 2px;
    transition: height .3s linear;
}
.pasos-lista { list-style: none; margin: 0; padding: 0; }
.paso {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--hueco);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}
.paso-grupo {
    grid-column: 1 / -1; justify-self: center;
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 128px; height: 128px; margin-bottom: 3rem; padding: 12px;
    border-radius: 50%;
    background: #5B5B5B; color: var(--blanco);
    font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-align: center;
    overflow-wrap: anywhere;
}
.js .paso-grupo[data-revelar].visible {
    background: var(--negro);
    box-shadow: 0 0 0 8px rgba(159, 193, 112, .18), inset 0 0 0 2px var(--verde);
    transition: opacity 1s var(--curva), transform 1s var(--curva), background-color .8s ease, box-shadow .8s ease;
}
.paso-texto { grid-column: 1; position: relative; padding-top: 2.4rem; text-align: right; }
.paso-medio { grid-column: 2; position: relative; margin: 8rem 0 0; padding-top: 2.4rem; }
/* La raya hasta la línea del centro, con su punto */
.paso-texto::before, .paso-medio::before {
    content: '';
    position: absolute; top: 0; height: 1px;
    background: rgba(2, 2, 2, .55);
}
.paso-texto::before { left: 0; right: calc(var(--hueco) / -2); }
.paso-medio::before { left: calc(var(--hueco) / -2); right: 0; }
.paso-texto::after, .paso-medio::after {
    content: '';
    position: absolute; top: -5px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #5B5B5B;
}
.paso-texto::after { right: calc(var(--hueco) / -2 - 5px); }
.paso-medio::after { left: calc(var(--hueco) / -2 - 5px); }
.paso-texto h3 { margin: 0 0 1.2rem; color: var(--verde-hondo); }
.paso-texto p { font-size: 17px; line-height: 1.65; color: var(--tinta-2); }
.paso-sub { margin-top: 1.6rem; scroll-margin-top: 110px; }
.paso-sub h4 {
    margin: 0 0 .6rem;
    font-family: var(--f-cita); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.35;
    font-weight: 300; font-style: italic; letter-spacing: -.3px;
}
.paso-enlace { margin-top: 1.2rem; }
.paso-medio figcaption {
    margin: 0 0 1.2rem;
    font-family: var(--f-titular); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.8rem); line-height: 1.25;
    font-weight: 300; letter-spacing: -.5px;
    color: var(--verde-hondo);
}
.paso-foto { aspect-ratio: 4 / 3; }
.paso-foto video { background: #111; }
/* Las piezas recortadas van sobre gris claro y enteras */
.paso-foto--recorte { display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 45%, #FFFFFF, #EEF0EC); }
.paso-foto--recorte img { width: 70%; height: 70%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1s var(--curva); }
.paso-medio:hover .paso-foto--recorte img { transform: scale(1.06) rotate(-3deg); }
@media (max-width: 899px) {
    .pasos { --hueco: 0px; }
    .pasos-linea { left: 19px; }
    .paso { grid-template-columns: minmax(0, 1fr); padding-left: 52px; padding-bottom: 3.5rem; }
    .paso-grupo {
        justify-self: start;
        width: auto; height: auto; margin-bottom: 1.6rem; padding: .55rem 1.1rem;
        border-radius: var(--pildora);
        font-size: 12px;
    }
    .paso-grupo::before {
        content: '';
        position: absolute; left: -39px; top: 50%;
        width: 12px; height: 12px; margin-top: -6px;
        border-radius: 50%;
        background: var(--verde);
        box-shadow: 0 0 0 5px rgba(159, 193, 112, .22);
    }
    .paso-texto { grid-column: 1; padding-top: 0; text-align: left; }
    .paso-medio { grid-column: 1; margin-top: 2rem; padding-top: 0; }
    .paso-texto::before, .paso-texto::after, .paso-medio::before, .paso-medio::after { content: none; }
    .paso-texto p { font-size: 16px; }
}
.pasos-final { display: grid; justify-items: center; gap: .4rem; margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.pasos-final .t-32 { margin: 0; }
.pasos-final .botones { justify-content: center; margin-top: 1.4rem; }
.pasos-cinta { margin-top: clamp(3.5rem, 7vw, 6rem); }

/* ═══ Formularios de contacto y presupuesto: los campos píldora grises de la web actual ═ */
.formulario-rejilla { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 980px) { .formulario-rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 5vw, 80px); } }
.formulario { position: relative; }
.campos { display: grid; gap: 16px; }
@media (min-width: 620px) { .campos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.campo { position: relative; min-width: 0; }
.campo--ancho { grid-column: 1 / -1; }
/* La etiqueta va dentro de la píldora, como el texto de ayuda de la web actual, y sube al escribir */
.campo input, .campo textarea {
    display: block; width: 100%;
    min-height: 56px;
    padding: 24px 24px 8px;
    border: 0; border-radius: var(--pildora);
    background: #F2F2F2; color: var(--negro);
    font-size: 16px; line-height: 1.4;
    transition: background-color .3s ease, box-shadow .3s ease;
}
.campo textarea { min-height: 170px; padding-top: 30px; border-radius: 26px; resize: vertical; }
.campo label {
    position: absolute; left: 24px; right: 24px; top: 17px;
    font-size: 15px; line-height: 1.4; color: #737373;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .3s var(--curva), color .3s ease;
}
.campo input:hover, .campo textarea:hover { background: #ECECEC; }
.campo input:focus, .campo textarea:focus {
    outline: none;
    background: var(--blanco);
    box-shadow: inset 0 0 0 1.5px var(--verde), 0 0 0 4px rgba(159, 193, 112, .22);
}
.campo input:focus + label, .campo input:not(:placeholder-shown) + label,
.campo textarea:focus + label, .campo textarea:not(:placeholder-shown) + label {
    transform: translateY(-10px) scale(.74);
    color: #56752F;
}
.campo input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #F2F2F2 inset; }
.campo-error { display: block; margin: .45rem 1.2rem 0; color: #B3261E; font-size: .84rem; }
.campo-ayuda { display: block; margin: .7rem 1.2rem 0; font-size: .8rem; line-height: 1.5; color: #6B6B6B; }

.formulario-grupo { min-width: 0; margin: 0; padding: 0; border: 0; }
.formulario-grupo + .formulario-grupo { margin-top: 2.4rem; }
.formulario-grupo legend {
    margin: 0 0 1.1rem; padding: 0;
    font-family: var(--f-titular); font-size: clamp(1.4rem, 1.2rem + .8vw, 2rem); line-height: 1.25;
    font-weight: 300; letter-spacing: -1px;
}

.casilla {
    display: flex; align-items: flex-start; gap: .7rem;
    margin: 1.6rem 0 0;
    font-size: .95rem; color: var(--tinta-2);
    cursor: pointer;
}
.casilla input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--verde-hondo); }
.casilla a { color: #56752F; text-decoration: underline; text-underline-offset: 3px; }

/* «Enviar»: la píldora con borde verde y letra verde de la web actual; se rellena al pasar */
.boton.boton-enviar {
    --b-fondo: none;
    width: 100%; justify-content: center;
    margin-top: 1.8rem; padding-block: 18px;
    background-color: transparent;
    color: #56752F;
    box-shadow: inset 0 0 0 1.5px var(--verde);
    font-size: 15px;
}
.boton.boton-enviar:hover { background-image: var(--grad-boton); color: var(--blanco); box-shadow: 0 16px 34px -16px rgba(110, 143, 69, .8); }
.boton.boton-enviar .flecha { background: var(--verde); color: var(--blanco); }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario-nota { margin: 1rem 0 0; font-size: .8rem; color: #6B6B6B; text-align: center; }
.formulario-pieza {
    margin: 0 0 1.8rem; padding: .95rem 1.3rem;
    border-radius: var(--pildora);
    background: rgba(159, 193, 112, .16);
    font-size: .94rem;
}
.formulario-pieza a { margin-left: .5rem; color: #56752F; text-decoration: underline; font-size: .85rem; }
.mensaje-ok {
    margin-bottom: 2rem; padding: 1.3rem 1.6rem;
    border-radius: var(--radio-s);
    background: rgba(159, 193, 112, .16);
    box-shadow: inset 3px 0 0 var(--verde);
}
.mensaje-ok h3 { margin: 0 0 .35rem; font-size: 1.4rem; }
.mensaje-ok p { margin: 0; color: var(--tinta-2); }
.mensaje-ok a { color: #56752F; font-weight: 700; }

/* ═══ Contacto ═══════════════════════════════════════════════════════════════════════ */
.consulta-titulo { margin: 0 0 1rem; }
.consulta-texto {
    margin: 0; max-width: 34rem;
    font-family: var(--f-titular); font-size: clamp(1.2rem, 1.05rem + .7vw, 1.75rem); line-height: 1.35;
    font-weight: 300; letter-spacing: -.5px;
    color: var(--tinta-2);
}
.consulta-foto { max-width: 600px; margin-top: clamp(2rem, 4vw, 2.8rem); aspect-ratio: 600 / 426; }
.consulta-firma { margin: 1rem 0 0 1rem; font-size: .95rem; color: #6B6B6B; }

/* Las cuatro tarjetas de contacto de la web actual: blancas con borde y el icono verde */
.canales-seccion { padding-top: 0; }
.canales { display: grid; gap: 24px; }
@media (min-width: 640px) { .canales { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .canales { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.canal {
    position: relative;
    display: flex; flex-direction: column;
    min-height: 300px; padding: 34px 32px;
    border-radius: var(--radio-m);
    background: var(--blanco);
    box-shadow: inset 0 0 0 1px rgba(2, 2, 2, .13);
    transition: transform .55s var(--curva), background-color .45s ease, color .45s ease, box-shadow .55s var(--curva);
}
a.canal:hover, .canal:focus-within, .canal:hover {
    transform: translateY(-8px);
    background: var(--verde); color: var(--negro);
    box-shadow: 0 34px 60px -38px rgba(110, 143, 69, .9);
}
.canal-icono { width: 40px; height: 40px; color: var(--verde-hondo); transition: color .4s ease, transform .6s var(--curva); }
.canal:hover .canal-icono, .canal:focus-within .canal-icono { color: var(--negro); transform: rotate(-8deg) scale(1.08); }
.canal h3 {
    margin: auto 0 .9rem; padding-top: 2.6rem;
    font-family: var(--f-cuerpo); font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.25; font-weight: 700; letter-spacing: -.5px;
}
.canal p { margin: 0 0 .9rem; font-size: 15px; line-height: 1.55; }
.canal-dato { display: block; font-weight: 700; font-size: 1rem; overflow-wrap: anywhere; }
.canal-telefonos { display: grid; gap: .2rem; }
.canal-telefonos a { transition: color .3s ease; }
.canal-telefonos a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mapa-seccion { padding-top: clamp(3rem, 6vw, 5rem); }
.mapa { overflow: hidden; border-radius: var(--radio-m); background: var(--gris-tarjeta); box-shadow: inset 0 0 0 1px rgba(2, 2, 2, .1); }
.mapa iframe { display: block; width: 100%; height: clamp(320px, 50vh, 520px); border: 0; filter: grayscale(.4); transition: filter .6s ease; }
.mapa:hover iframe { filter: none; }
.mapa-pie { margin-top: .9rem; font-size: .85rem; color: #6B6B6B; }
.mapa-pie a { color: #56752F; text-decoration: underline; text-underline-offset: 3px; }

/* ═══ Presupuesto ════════════════════════════════════════════════════════════════════ */
@media (min-width: 980px) {
    .solicitud-rejilla { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .solicitud-lado { position: sticky; top: 120px; }
}
.solicitud-lado h2 { margin: 0; }
/* Las piezas redondas (en la web actual eran logos de la plantilla) y los años */
.solicitud-marca { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2.2rem; }
.solicitud-marca p { margin: 0; font-size: 1rem; color: #6B6B6B; }
.solicitud-redondas { display: flex; }
.solicitud-redondas > span {
    display: grid; place-items: center;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--blanco);
    box-shadow: 0 10px 22px -12px rgba(2, 2, 2, .5), inset 0 0 0 1px rgba(2, 2, 2, .06);
    transition: transform .5s var(--curva);
}
.solicitud-redondas > span + span { margin-left: -14px; }
.solicitud-redondas img { width: 74%; height: 74%; object-fit: contain; }
.solicitud-marca:hover .solicitud-redondas > span { transform: translateY(-5px); }
.solicitud-marca:hover .solicitud-redondas > span:nth-child(2) { transition-delay: 60ms; }
.solicitud-marca:hover .solicitud-redondas > span:nth-child(3) { transition-delay: 120ms; }
.solicitud-marca:hover .solicitud-redondas > span:nth-child(4) { transition-delay: 180ms; }

.solicitud-caja { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--radio-m); background: var(--gris-tarjeta); }
.solicitud-caja h3 { margin: 0 0 1.2rem; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); }
.solicitud-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.solicitud-pasos li { display: flex; align-items: flex-start; gap: .9rem; font-size: .95rem; color: var(--tinta-2); }
.solicitud-pasos b {
    display: grid; place-items: center; flex: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--verde); color: var(--negro);
    font-size: .8rem;
}
.solicitud-telefono { margin: 1.6rem 0 0; font-size: .95rem; color: #6B6B6B; }
.solicitud-telefono a { color: var(--negro); font-weight: 700; transition: color .3s ease; }
.solicitud-telefono a:hover { color: #56752F; }
.solicitud-telefono span { margin: 0 .3rem; }

/* ═══ Barra lateral (catálogo y noticias): los «widgets» de la web actual ═══════════════ */
.con-lateral { display: grid; gap: clamp(3.5rem, 7vw, 4.5rem); align-items: start; }
@media (min-width: 1080px) {
    .con-lateral { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(3rem, 5vw, 80px); }
    .lateral { position: sticky; top: 110px; }
}
.lateral { display: grid; gap: 2.8rem; }
.lateral-titulo { margin: 0 0 1.2rem; font-size: clamp(1.5rem, 1.3rem + .6vw, 2rem); line-height: 1.2; }
.lateral-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.lateral-lista a {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--linea);
    font-size: .9rem; letter-spacing: 1px; text-transform: uppercase;
    transition: color .3s ease, padding .35s var(--curva);
}
.lateral-lista a:hover, .lateral-lista a[aria-current] { color: #56752F; padding-left: .4rem; }
.lateral-lista b { flex: none; font-size: .78rem; font-weight: 600; color: var(--tinta-3); }
.lateral-fichas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.lateral-fichas a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: center; }
.lateral-fichas img, .lateral-sinfoto {
    width: 64px; height: 64px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--gris-tarjeta);
    transition: transform .5s var(--curva);
}
.lateral-sinfoto { display: grid; place-items: center; color: rgba(2, 2, 2, .25); }
.lateral-sinfoto svg { width: 26px; height: 26px; }
.lateral-fichas span { font-size: .84rem; font-weight: 700; line-height: 1.35; text-transform: uppercase; transition: color .3s ease; }
.lateral-fichas small { display: block; margin-bottom: .2rem; font-size: .72rem; font-weight: 600; letter-spacing: 1px; color: var(--tinta-3); }
.lateral-fichas a:hover img { transform: scale(1.06); }
.lateral-fichas a:hover span { color: #56752F; }
.lateral-aviso { padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--radio-m); background: var(--negro); color: var(--blanco); }
.lateral-aviso .lateral-titulo { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.75rem); }
.lateral-aviso p { margin: 0 0 1.6rem; font-size: .95rem; color: rgba(255, 255, 255, .74); }

.vacio {
    display: grid; justify-items: start; gap: 1.5rem;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--radio-m);
    box-shadow: inset 0 0 0 1px var(--linea);
}

/* ═══ Texto largo: legales, descripciones y noticias ═════════════════════════════════ */
.legal .contenedor { max-width: 900px; }
.texto-largo { font-size: 1.03rem; line-height: 1.72; color: var(--tinta-2); }
.texto-largo h2 {
    margin: 2.8rem 0 1rem; padding-top: 1.8rem;
    border-top: 1px solid var(--linea);
    color: var(--tinta);
    font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.1rem);
}
.texto-largo > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.texto-largo h3 { margin: 1.9rem 0 .6rem; color: var(--tinta); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
.texto-largo ul, .texto-largo ol { display: grid; gap: .45rem; margin: 0 0 1.2rem; padding-left: 1.3rem; }
.texto-largo li::marker { color: var(--verde-hondo); }
.texto-largo a { color: #56752F; text-decoration: underline; text-underline-offset: 3px; }
.texto-largo strong { color: var(--tinta); }
.texto-largo blockquote {
    margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem;
    border-left: 2px solid var(--verde);
    font-family: var(--f-cita); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.6rem); line-height: 1.4; font-weight: 300;
    color: var(--tinta);
}
.texto-largo code { font-family: var(--f-mono); font-size: .9em; padding: .1em .35em; border-radius: 6px; background: var(--gris-tarjeta); }

/* Ficha del titular y tablas de los textos legales */
.ficha-titular {
    margin: 0 0 2rem; padding: 1.4rem 1.6rem;
    border-radius: var(--radio-s);
    background: var(--gris-tarjeta);
}
.ficha-titular dt { font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tinta-3); }
.ficha-titular dd { margin: .15rem 0 .9rem; color: var(--tinta); }
.ficha-titular dd:last-child { margin-bottom: 0; }
.tabla-envoltorio { overflow-x: auto; margin: 1rem 0 1.6rem; border-radius: var(--radio-s); box-shadow: inset 0 0 0 1px var(--linea); }
.tabla-simple { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .92rem; }
.tabla-simple th, .tabla-simple td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); }
.tabla-simple tr:last-child td { border-bottom: 0; }
.tabla-simple th { background: var(--gris-tarjeta); font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tinta-3); }
.tabla-simple td { color: var(--tinta-2); }
.tabla-simple code { font-family: var(--f-mono); font-size: .86em; color: var(--tinta); }

/* Modelo de formulario de desistimiento (condiciones de compra) */
.modelo-formulario {
    padding: 1.3rem 1.5rem;
    border-radius: var(--radio-s);
    background: var(--gris-tarjeta);
    font-family: var(--f-mono); font-size: .88rem; line-height: 1.9;
}
