/* UniVest · Uniformes y vestuario laboral · Valladolid
   Hoja de estilos única. Sin dependencias externas. */

@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #17231C;          /* tejido de trabajo, del fondo del logo */
  --ink-2: #213129;
  --green: #0B7A41;        /* verde UniVest (más oscuro que el del logo para leerse bien) */
  --green-dark: #08602F;
  --green-logo: #0B8848;
  --hivis: #DDF020;        /* amarillo alta visibilidad */
  --silver: #B8BEB9;       /* banda reflectante */
  --drill: #E7E9E3;        /* gris de tela de trabajo */
  --paper: #FFFFFF;
  --text: #1C2420;
  --muted: #55605A;
  --line: #CDD2CB;
  --on-dark: #F3F6F2;
  --on-dark-muted: #B9C6BE;

  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--hivis); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: .94; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.5; max-width: 36em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-drill { background: var(--drill); }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head p { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Cabecera ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.65rem; letter-spacing: .01em; }
.brand-sub { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; white-space: nowrap; padding: 10px 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: .01em; border-radius: 4px; }
.nav a:hover { background: var(--drill); color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.header-cta { min-height: 46px; padding: 8px 18px; font-size: 1.1rem; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 14px;
    background: var(--paper); color: var(--text); border: 2px solid var(--text); border-radius: var(--radius);
    font: 600 1rem var(--body); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; gap: 0; }
  .nav a { padding: 14px 4px; font-size: 1.3rem; border-bottom: 1px solid var(--drill); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); padding-left: 14px; }
  .header-cta { display: none; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand img { width: 44px; height: 44px; }
}

/* ---------- Tejido de trabajo (fondo oscuro con sarga) ---------- */
.fabric {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 6px);
  color: var(--on-dark);
}
.fabric a:not(.btn) { color: var(--hivis); }
.fabric .lead { color: var(--on-dark-muted); }
.fabric .btn-primary { background: var(--hivis); color: var(--ink); }
.fabric .btn-primary:hover { background: #fff; color: var(--ink); }
.fabric .btn-ghost { color: var(--on-dark); }
.fabric .btn-ghost:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }

/* ---------- Portada: chaqueta de trabajo ---------- */
.hero { position: relative; padding-top: clamp(56px, 9vw, 120px); overflow-x: clip; }
.hero .hero-tape-row { z-index: 3; }
.hero-copy { max-width: 760px; padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; }
.hero .lead { margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cinta reflectante: amarillo / plata / amarillo, con pespuntes */
.tape {
  position: relative; height: clamp(54px, 7vw, 76px);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 5px) center / 100% 36% no-repeat,
    linear-gradient(to bottom, var(--hivis) 0 32%, var(--silver) 32% 68%, var(--hivis) 68% 100%);
  transform-origin: left center;
}
.tape::before, .tape::after { content: ""; position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(23,35,28,.28); }
.tape::before { top: 5px; }
.tape::after { bottom: 5px; }
.tape-thin { height: 14px; background: linear-gradient(to bottom, var(--hivis) 0 30%, var(--silver) 30% 70%, var(--hivis) 70% 100%); }
.tape-thin::before, .tape-thin::after { display: none; }

/* El logo, cosido como un parche sobre la cinta */
.patch {
  position: absolute; z-index: 2;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: calc(clamp(54px, 7vw, 76px) / 2);
  width: clamp(132px, 19vw, 236px); aspect-ratio: 1;
  transform: translateY(50%) rotate(-7deg);
  border-radius: 50%;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}
/* El logo como una moneda 3D con grosor */
.patch { perspective: 900px; }
.coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.coin-face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; backface-visibility: hidden; }
.coin-front { transform: translateZ(7px); }
.coin-back { transform: rotateY(180deg) translateZ(7px); }
.coin-edge { position: absolute; inset: 1px; border-radius: 50%; transform: translateZ(var(--z));
  background: radial-gradient(circle, #0E1712 60%, #1E3328 100%); box-shadow: inset 0 0 0 2px #2C4A39; }
.coin-stitch { position: absolute; inset: 5px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.55); pointer-events: none; transform: translateZ(7.5px); }
.hero-tape-row { position: relative; }

@media (max-width: 760px) {
  .hero-copy { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .tape { animation: tape-in .7s cubic-bezier(.2,.7,.2,1) .15s both; }
  .hero .patch { animation: patch-in .55s cubic-bezier(.2,.9,.3,1.2) .75s both; }
}
/* ---------- Movimiento 3D ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .coin { animation: coin-spin 1.6s cubic-bezier(.25,.8,.25,1) .9s both, coin-swing 7s ease-in-out 2.5s infinite; }
  .js .reveal { opacity: 0; transform: perspective(1000px) translate3d(0, 32px, 0) rotateX(10deg); transform-origin: 50% 100%;
    transition: opacity .7s ease, transform .8s cubic-bezier(.2,.75,.2,1); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes coin-spin { from { rotate: y 360deg; } to { rotate: y 0deg; } }
@keyframes coin-swing { 0% { rotate: y 0deg; } 25% { rotate: y 24deg; } 75% { rotate: y -24deg; } 100% { rotate: y 0deg; } }

/* Fotos y catálogos que se inclinan en 3D con el ratón (solo ordenador) */
.tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.tilt.is-tilting { --s: 1.03; transition: transform .08s linear, box-shadow .3s; box-shadow: 0 22px 40px -18px rgba(23,35,28,.55); }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.32), transparent 55%); }
.tilt.is-tilting::after { opacity: 1; }
.sector:hover .sector-img.tilt img { transform: none; }

@keyframes tape-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes patch-in { from { opacity: 0; transform: translateY(50%) rotate(-30deg) scale(.6); } to { opacity: 1; transform: translateY(50%) rotate(-7deg) scale(1); } }

/* Foto de la tienda de fondo, teñida de verde y suave */
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; background: var(--ink); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; opacity: .2; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,35,28,.55) 0%, rgba(23,35,28,.2) 55%, rgba(23,35,28,0) 100%); }
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .hero-bg img { object-position: 22% 50%; opacity: .22; }
  .hero-bg::after { background: rgba(23,35,28,.3); }
}

/* Datos de la tienda bajo la cinta */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 24px 40px; padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(28px, 4vw, 40px); }
@media (min-width: 861px) { .facts-grid { grid-template-columns: 1.1fr 1.4fr 1fr clamp(132px, 19vw, 236px); } }
.fact h2 { font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--muted); margin: 0 0 4px; letter-spacing: 0; }
.fact p { margin: 0; font-weight: 500; }
.fact a { color: var(--text); text-decoration-color: var(--green); }
@media (max-width: 860px) {
  .facts-grid { grid-template-columns: 1fr; gap: 18px; }
  .facts-grid > .fact { padding-right: clamp(130px, 32vw, 170px); }
}
@media (max-width: 520px) { .facts-grid { padding-top: 84px; } .facts-grid > .fact { padding-right: 0; } }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; padding-top: clamp(40px, 6vw, 80px); }
.page-hero .hero-copy { padding-bottom: clamp(44px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); color: #fff; }
.crumbs { font-size: .95rem; margin-bottom: 18px; color: var(--on-dark-muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--on-dark) !important; }

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.sector { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.sector-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--drill); margin-bottom: 16px; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sector:hover .sector-img img { transform: scale(1.03); }
.sector h3 { margin-bottom: 6px; }
.sector p { color: var(--muted); margin-bottom: 10px; font-size: 1rem; }
.sector .more { margin-top: auto; font-weight: 600; color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sector:hover .more { color: var(--green-dark); }
.also { margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 2px dashed var(--line); color: var(--muted); max-width: 52em; }
@media (max-width: 960px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .sectors { grid-template-columns: 1fr; }
  .sector-img { aspect-ratio: 16 / 10; }
}

/* ---------- Proceso (sí es una secuencia) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 2px dashed #B7BDB5; }
.step-num { display: block; font-family: var(--display); font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--green); margin-bottom: 12px; }
.step h3 { font-size: 1.4rem; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step, .step + .step { padding: 22px 0 22px 64px; border-left: 0; border-top: 2px dashed #B7BDB5; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step-num { position: absolute; left: 0; top: 18px; font-size: 2.8rem; }
  .step:first-child .step-num { top: -4px; }
}

/* ---------- Personalización ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }

.techniques { margin: 0; }
.technique { display: grid; grid-template-columns: 11rem 1fr; gap: 6px 24px; padding: 18px 0; border-top: 2px dashed var(--line); }
.technique:last-child { border-bottom: 2px dashed var(--line); }
.technique dt { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.technique dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .technique { grid-template-columns: 1fr; } }

.garments { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.garments li { padding: 6px 14px; border: 1.5px solid var(--text); border-radius: 999px; font-weight: 500; font-size: .98rem; }

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

/* ---------- Catálogos ---------- */
.catalogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.catalog { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.catalog-cover { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.catalog strong { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.catalog span { color: var(--muted); font-size: .95rem; }
.catalog:hover strong { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.catalog-group + .catalog-group { margin-top: clamp(40px, 5vw, 60px); }
.catalog-group h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.brands-line { margin-top: 28px; color: var(--muted); }

/* ---------- Tienda ---------- */
.store-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.store-photo { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--drill); }
.store-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .store-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; margin-bottom: clamp(32px, 5vw, 56px); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 24px; white-space: nowrap; }

/* Mapa: se carga solo al pulsar (privacidad) */
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); min-height: 340px; color: var(--on-dark); }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; padding: clamp(20px, 4vw, 36px);
  background-image:
    linear-gradient(to top, rgba(23,35,28,.95), rgba(23,35,28,.35)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 44px); }
.map-placeholder p { margin: 0; color: var(--on-dark-muted); font-size: .95rem; max-width: 34em; }
.map-placeholder strong { font-family: var(--display); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.map-placeholder button.btn { background: var(--hivis); color: var(--ink); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 2px dashed var(--line); }
.faq details:last-child { border-bottom: 2px dashed var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 48px 20px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* ---------- Presupuesto ---------- */
.quote { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
.quote-points { list-style: none; padding: 0; margin: 24px 0 28px; }
.quote-points li { position: relative; padding: 0 0 14px 34px; }
.quote-points li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.fabric .quote-points li::before { border-color: var(--hivis); }
.direct { padding-top: 20px; border-top: 2px dashed var(--line); }
.fabric .direct { border-color: rgba(255,255,255,.2); }
.direct p { margin: 0 0 6px; }
.direct a { font-weight: 600; }

.form-card { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); }
.section-drill .form-card { border-color: transparent; }
.form-card h2, .form-card h3 { color: var(--text); }
.fabric .form-card a:not(.btn) { color: var(--green); }
@media (min-width: 861px) { .split-wide { grid-template-columns: 7fr 5fr; } }
.quote-landing { grid-template-areas: "intro form" "points form"; grid-template-rows: auto 1fr; }
.quote-landing .q-intro { grid-area: intro; }
.quote-landing .q-points { grid-area: points; }
.quote-landing .form-card { grid-area: form; }
@media (max-width: 900px) { .quote-landing { grid-template-areas: "intro" "form" "points"; grid-template-rows: auto; row-gap: 28px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label, .label { font-weight: 600; font-size: 1rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1.05rem; color: var(--text);
  background: #fff; border: 2px solid #A9B0A8; border-radius: var(--radius);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(11,122,65,.25); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-submit { width: 100%; min-height: 58px; font-size: 1.35rem; }
.form-error { display: none; background: #FCECEA; border-left: 4px solid #B3261E; color: #5C1410; padding: 12px 16px; margin-bottom: 18px; border-radius: 4px; }
.form-error.is-visible { display: block; }

/* ---------- Bloque de llamada a la acción ---------- */
.cta-band { padding: clamp(48px, 7vw, 84px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: var(--on-dark-muted); }

/* ---------- Texto de páginas de sector ---------- */
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 48px); }
.col h3 { padding-bottom: 10px; border-bottom: 3px solid var(--green); margin-bottom: 14px; }
.col ul { list-style: none; padding: 0; margin: 0; }
.col li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.feature-img { border-radius: var(--radius); overflow: hidden; background: var(--drill); aspect-ratio: 4 / 5; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Páginas legales y gracias ---------- */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }
.todo { background: #FFF6C2; padding: 0 4px; border-radius: 3px; }
.thanks { min-height: 50vh; display: flex; align-items: center; }

/* ---------- Pie ---------- */
.site-footer { padding: clamp(48px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--on-dark) !important; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { text-decoration-color: var(--hivis); }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand strong { font-family: var(--display); font-size: 1.6rem; line-height: 1; display: block; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--on-dark-muted); font-size: .92rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barra fija de móvil: llamar / presupuesto ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 3px solid var(--hivis);
  }
  .callbar.single { grid-template-columns: 1fr; }
  .callbar .btn { min-height: 50px; font-size: 1.15rem; padding: 8px 10px; }
  .callbar .btn-call { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
  .callbar .btn-quote { background: var(--hivis); color: var(--ink); }
  body { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .callbar, .map, .tape, .patch { display: none !important; }
  .fabric { background: #fff; color: #000; }
}
@media (max-width: 860px) { .feature-img { aspect-ratio: 4 / 3; } }

/* ---------- Cambios oct 2026 ---------- */
.catalogs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (min-width: 1100px) { .sectors-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1099px) { .sectors-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.brand-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); }
@media (min-width: 600px) { .brand-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .brand-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.brand-logos li { display: flex; align-items: center; justify-content: center; height: 96px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.brand-logos img { display: block; width: auto; height: auto; max-width: 100%; max-height: 46px; }
.brand-logos .brand-more { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: .02em; color: #17231C; }
.direct-phones span { color: var(--muted); font-size: .9em; }
.callbar .btn svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 1181px) and (max-width: 1560px) { .brand-sub { display: none; } }
@media (min-width: 1181px) and (max-width: 1300px) { .nav a { padding: 10px 7px; font-size: 1.1rem; } }
