/* Comercial Martín Forklift — hoja de estilos compartida */

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

:root {
  --red: #E2001A;
  --red-dark: #B80016;
  --charcoal: #3D4043;
  --ink: #111111;
  --black: #000000;
  --grey: #F2F2F2;
  --line: #DDDDDD;
  --line-strong: #777777;
  --muted: #555555;
  --text-2: #333333;
  --on-dark: #FFFFFF;
  --on-dark-2: #CCCCCC;
  --white: #FFFFFF;

  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; scrollbar-color: var(--charcoal) var(--grey); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  caret-color: var(--red);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red); color: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.on-dark :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; font-weight: 700; }
.skip-link:focus, .skip-link:hover { top: 12px; color: var(--white); }

/* Tipografía */
.h-display { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5.2vw, 4.75rem); line-height: 0.98; letter-spacing: -0.01em; }
.h-section { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.04; }
.h-card { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.2vw, 1.95rem); line-height: 1.08; }
.h-item { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 56ch; }
.muted { color: var(--muted); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 68ch; }
.section-head p { color: var(--muted); }
.section--dark .section-head p, .section--charcoal .section-head p { color: var(--on-dark-2); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font: 700 1rem/1.2 var(--font);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--charcoal); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--red-dark); }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow, .section--dark .link-arrow { color: var(--white); }

/* Barra superior */
.utility { background: var(--charcoal); color: var(--on-dark); font-size: 14px; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; min-height: 38px; padding-block: 6px; }
.utility__info { display: flex; flex-wrap: wrap; gap: 4px 24px; color: var(--on-dark-2); }
.utility a { color: var(--white); font-weight: 700; text-decoration: none; }
.utility a:hover { color: var(--white); text-decoration: underline; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 3px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; transition: min-height .3s var(--ease); }
.brand { display: flex; flex: none; margin-right: auto; }
.brand img { height: 54px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .wrap { min-height: 66px; }
.site-header.is-scrolled .brand img { height: 42px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 11px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-actions .btn { min-height: 46px; padding: 10px 20px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
  background: transparent; border: 2px solid var(--ink); font: 700 15px var(--font); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; min-height: 72px; gap: 12px; }
  .brand img { height: 46px; }
  .nav {
    display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line); padding: 6px 0 14px;
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 50px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
}
@media (max-width: 560px) {
  .header-actions .btn--primary { display: none; }
  .utility__info span + span { display: none; }
}

/* Migas */
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.on-dark .breadcrumb, .on-dark .breadcrumb a { color: var(--on-dark-2); }
.on-dark a:not(.btn):not(.route):hover, .contact-band__info a:not(.btn):hover, .cta-band a:not(.btn):hover, .section--charcoal a:not(.btn):hover { color: var(--white); }

/* Hero fotográfico */
.hero { position: relative; isolation: isolate; color: var(--on-dark); background: var(--charcoal); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,17,17,.9) 0%, rgba(61,64,67,.82) 48%, rgba(61,64,67,.55) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero__copy { display: grid; gap: 24px; }
.hero__copy .lead { color: var(--on-dark-2); }
.hero--simple .wrap { grid-template-columns: minmax(0, 1fr); max-width: var(--wrap); }
.hero--simple .hero__copy { max-width: 760px; }
.credentials { display: flex; flex-wrap: wrap; gap: 8px 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.credentials li { display: flex; align-items: center; }
.credentials li + li::before { content: ""; width: 1px; height: 16px; background: var(--red); margin: 0 16px; }
@media (max-width: 640px) {
  .credentials { flex-direction: column; gap: 6px; }
  .credentials li::before, .credentials li + li::before { content: ""; width: 14px; height: 2px; background: var(--red); margin: 0 10px 0 0; }
}

.routes { display: grid; gap: 12px; }
.routes__label { font-size: 15px; color: var(--on-dark-2); }
.route {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 26px; text-decoration: none; background: var(--white); color: var(--ink);
  transition: transform .25s var(--ease), background-color .18s var(--ease);
}
.route:hover { color: var(--ink); }
.route--red { background: var(--red); color: var(--white); }
.route--red:hover { background: var(--red-dark); color: var(--white); }
.route__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.95rem; line-height: 1.05; }
.route__sub { display: block; font-size: 16px; margin-top: 4px; color: var(--muted); }
.route--red .route__sub { color: var(--white); }
.route svg { width: 28px; height: 28px; flex: none; transition: transform .25s var(--ease); }
.route:hover svg { transform: translateX(5px); }
.hero__phone { color: var(--white); text-decoration: none; padding: 8px 0; font-size: 16px; }
.hero__phone strong { border-bottom: 2px solid var(--red); }
.hero__phone:hover { color: var(--white); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero::before { background: rgba(40,42,44,.86); }
}

/* Cabecera de página con producto */
.page-hero { background: var(--grey); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.page-hero__copy { display: grid; gap: 22px; align-content: start; }
.page-hero__copy .lead { color: var(--text-2); }
.page-hero__logo { height: 52px; width: auto; mix-blend-mode: multiply; }
.page-hero__media { overflow: hidden; }
.page-hero__media img { width: 100%; height: auto; mix-blend-mode: multiply; }
.page-hero__media--photo img { mix-blend-mode: normal; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero--plain .wrap { grid-template-columns: minmax(0, 1fr); }
.page-hero--plain .page-hero__copy { max-width: 820px; }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* Split hero con foto vertical */
.split-hero { background: var(--ink); color: var(--on-dark); }
.split-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; padding-inline: 0; max-width: none; }
.split-hero__copy { display: grid; gap: 24px; align-content: center; padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 96px) clamp(56px, 8vw, 112px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.split-hero__copy .lead { color: var(--on-dark-2); }
.split-hero__media { min-height: 480px; position: relative; overflow: hidden; }
.split-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
@media (max-width: 900px) {
  .split-hero .wrap { grid-template-columns: 1fr; }
  .split-hero__copy { padding: 56px var(--gutter); }
  .split-hero__media { min-height: 360px; }
}

/* Secciones */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--grey { background: var(--grey); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--charcoal { background: var(--charcoal); color: var(--on-dark); }

/* Franja de marcas */
.brand-strip { border-bottom: 1px solid var(--line); }
.brand-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(32px, 5vw, 72px); min-height: 104px; padding-block: 20px; }
.brand-strip__label { font-size: 15px; color: var(--muted); max-width: 22ch; line-height: 1.35; }
.brand-strip a { display: flex; align-items: center; opacity: .9; transition: opacity .18s; }
.brand-strip a:hover { opacity: 1; }
.brand-strip img { height: 38px; width: auto; }
.brand-strip img.logo-baoli { height: 46px; }
.brand-strip img.logo-nilfisk { height: 26px; }
@media (max-width: 640px) {
  .brand-strip .wrap { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; align-items: center; gap: 14px 16px; }
  .brand-strip__label { grid-column: 1 / -1; max-width: none; }
  .brand-strip img { height: 26px; }
  .brand-strip img.logo-baoli { height: 34px; }
  .brand-strip img.logo-nilfisk { height: 18px; }
}

/* Pasos */
.steps { position: relative; list-style: none; padding: 3px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ink); transform-origin: left; }
.js .steps.is-pending::before { transform: scaleX(0); }
.js .steps.is-in::before { transition: transform .9s var(--ease); }
.steps__n { display: inline-block; }
.js .steps.is-in .steps__n { animation: tick .5s var(--ease) both; }
.js .steps.is-in li:nth-child(2) .steps__n { animation-delay: .18s; }
.js .steps.is-in li:nth-child(3) .steps__n { animation-delay: .36s; }
.js .steps.is-in li:nth-child(4) .steps__n { animation-delay: .54s; }
.steps li { display: grid; gap: 10px; align-content: start; padding: 28px 28px 8px 0; }
.steps__n { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--red); }
.steps p { color: var(--muted); }

/* Comparativa */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; }
.compare__col { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.compare__col--accent { border-top-color: var(--red); }
.compare__col > .btn, .compare__col > .link-arrow { justify-self: start; margin-top: 8px; }
.compare__fit { font-weight: 600; }

/* Listas con marca */
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 9px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.section--dark .check-list li, .section--charcoal .check-list li { color: var(--on-dark); }
.num-list { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 0; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.num-list li::before { content: counter(n); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--red); }

/* Rejilla de prestaciones (filetes, no tarjetas) */
.ruled { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px clamp(24px, 3vw, 40px); }
.ruled > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--red); }
.ruled p { color: var(--muted); }
.section--dark .ruled p, .section--charcoal .ruled p { color: var(--on-dark-2); }
.ruled--ink > div { border-top-color: var(--ink); }
@media (min-width: 900px) { .ruled--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Bloque dividido texto + contenido */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split--media-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.split__stack { display: grid; gap: 20px; align-content: start; }
@media (max-width: 900px) { .split, .split--even, .split--media-left { grid-template-columns: 1fr; } }

/* Figuras */
.figure { margin: 0; display: grid; gap: 10px; }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-wide { aspect-ratio: 21 / 9; }
.photo-pair { display: grid; gap: 8px; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3.2; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }

/* Familias de producto */
.families { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.family { display: grid; gap: 10px; align-content: start; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.family p { color: var(--muted); }
.family__tag { width: 28px; height: 3px; background: var(--red); }

/* Tarjetas de marca */
.brand-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.brand-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); transition: border-color .18s var(--ease); }
.brand-card:hover { color: var(--ink); border-color: var(--ink); }
.brand-card__media { background: var(--grey); display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; }
.brand-card__media img { width: 78%; height: auto; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.brand-card:hover .brand-card__media img { transform: scale(1.03); }
.brand-card__body { display: grid; gap: 14px; align-content: start; padding: 28px; }
.brand-card__body img { height: 40px; width: auto; }
.brand-card__body p { color: var(--text-2); }
.brand-card .link-arrow { margin-top: 4px; }
.brand-note { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 24px; padding: 24px 28px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.brand-note:hover { border-color: var(--ink); color: var(--ink); }
.brand-note img { height: 28px; width: auto; }
.brand-note span { flex: 1 1 320px; }

/* Bloque de contacto / formulario */
.contact-band { background: var(--ink); color: var(--on-dark); border-top: 6px solid var(--red); }
.contact-band .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 80px); padding-block: var(--section); }
.contact-band__info { display: grid; gap: 20px; align-content: start; }
.contact-band__info .lead { color: var(--on-dark-2); }
.big-phone { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; color: var(--white); text-decoration: none; }
.big-phone:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); }
.contact-lines { display: grid; gap: 4px; color: var(--on-dark-2); font-size: 16px; font-style: normal; }
.contact-band__photo { margin-top: 12px; }
.contact-band__photo img { width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 62%; }
@media (max-width: 900px) { .contact-band .wrap { grid-template-columns: 1fr; } }

/* Formularios */
.form { background: var(--white); color: var(--ink); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-content: start; }
.form--bordered { border: 1px solid var(--line); }
.form__title { grid-column: 1 / -1; }
.form__intro { grid-column: 1 / -1; color: var(--muted); margin-top: -8px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > span, .field legend { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  font: 400 16px/1.4 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' 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 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #6B6B6B; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--red); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field__error { display: none; font-size: 14px; color: var(--red-dark); font-weight: 600; }
.field.has-error .field__error { display: block; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.check { flex-wrap: wrap; }
.check > span:not(.field__error) { flex: 1 1 0; }
.check .field__error { flex-basis: 100%; padding-left: 32px; }
.check.has-error .field__error { display: block; }
.check.has-error { color: var(--red-dark); }
.form .btn { grid-column: 1 / -1; min-height: 54px; font-size: 1.08rem; }
.form__note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.form__success { grid-column: 1 / -1; display: none; padding: 20px 22px; background: var(--grey); border-top: 3px solid var(--red); }
.form__success strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.form.is-sent > *:not(.form__success):not(.form__title) { display: none; }
.form.is-sent .form__success { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Opciones tipo botón (radio) */
.choice { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice legend { padding: 0; margin-bottom: 10px; }
.choice__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.choice__opt { position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 50px; border: 1px solid var(--line-strong); cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice__opt:hover { border-color: var(--ink); }
.choice__opt input { position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.choice__opt strong { font-size: 16px; }
.choice__opt small { font-size: 14px; color: var(--muted); line-height: 1.4; }
.choice__opt { transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.choice__opt:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #FFF6F7; }
.choice__opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

/* Pestañas del formulario de contacto */
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--white); }
.tabs::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 50%; height: 3px; background: var(--red); transition: transform .25s var(--ease); }
.tabs:has(#tab-visita[aria-selected="true"])::after { transform: translateX(100%); }
.tab {
  display: grid; gap: 2px; text-align: left; padding: 18px 22px 16px; cursor: pointer;
  background: var(--grey); border: 0; border-bottom: 3px solid transparent; font: 400 15px/1.35 var(--font); color: var(--muted);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.tab strong { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.tab:hover { background: #E8E8E8; }
.tab[aria-selected="true"] { background: var(--white); color: var(--text-2); }
.tab strong { transition: color .2s var(--ease); }
.tab[aria-selected="true"] strong { color: var(--red); }
@media (max-width: 560px) { .tab { padding: 14px 16px 12px; font-size: 14px; } .tab strong { font-size: 1.2rem; } }
.tabpanel[hidden] { display: none; }
.is-hidden { display: none !important; }

/* Ofertas */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 8px 18px; font: 600 15px var(--font); background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.offer { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); }
.offer__media { position: relative; aspect-ratio: 4 / 3; background: var(--grey); overflow: hidden; }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }
.offer__media--cutout img { object-fit: contain; padding: 6% 8%; mix-blend-mode: multiply; }
.offer__tag { position: absolute; left: 0; top: 16px; padding: 6px 12px; font-size: 13px; font-weight: 700; letter-spacing: .02em; background: var(--ink); color: var(--white); }
.offer__body { display: grid; gap: 16px; align-content: start; padding: 24px; }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__value { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price__unit { font-size: 14px; color: var(--muted); }
.offer__valid { font-size: 14px; color: var(--muted); }
.offer .btn { margin-top: auto; }
.offers-empty { display: none; padding: 40px; text-align: center; border: 1px dashed var(--line-strong); color: var(--muted); }
.offers-none { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 4vw, 48px); background: var(--grey); border-top: 3px solid var(--ink); }
.offers-none p { color: var(--text-2); max-width: 62ch; }
.legal-note { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 80ch; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.contact-item { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-item__value { font-size: 1.15rem; font-weight: 600; font-style: normal; }
.contact-item__value.big-phone { color: var(--ink); font-size: 2.4rem; }
.contact-item__value.big-phone:hover { color: var(--red); }
.form-shell { border: 1px solid var(--line); background: var(--white); }
.form-shell .form { padding-top: 32px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* Llamada final */
.cta-band { background: var(--ink); color: var(--on-dark); border-top: 6px solid var(--red); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; padding-block: clamp(56px, 7vw, 88px); }
.cta-band__copy { display: grid; gap: 10px; max-width: 46ch; }
.cta-band__copy p { color: var(--on-dark-2); font-size: 1.15rem; }
.cta-band .btn-row { align-items: center; }
.cta-band .big-phone { font-size: 2.2rem; margin-left: 12px; }

/* Newsletter */
.newsletter { background: var(--grey); border-top: 1px solid var(--line); }
.newsletter .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 6vw, 72px); }
.newsletter__copy { display: grid; gap: 10px; }
.newsletter__copy p { color: var(--text-2); max-width: 46ch; }
.newsletter__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.newsletter__form .field { grid-column: 1; }
.newsletter__form .btn { min-height: 50px; align-self: end; }
.newsletter__form .check { grid-column: 1 / -1; font-size: 14px; }
.newsletter__form .form__success { background: var(--white); }
.newsletter__form.is-sent > *:not(.form__success) { display: none; }
.newsletter__form.is-sent .form__success { display: block; }
@media (max-width: 900px) { .newsletter .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .newsletter__form { grid-template-columns: 1fr; } .newsletter__form .btn { grid-column: 1; } }

/* Pie */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: 15px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px; padding-block: 64px 48px; }
.footer-logo { background: var(--white); padding: 10px 12px; display: inline-flex; justify-self: start; }
.footer-logo img { height: 46px; width: auto; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 { font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-col address { font-style: normal; display: grid; gap: 4px; }
.footer-phone { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--white) !important; line-height: 1.1; }
.footer-bottom { background: var(--black); font-size: 14px; color: #BBBBBB; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 22px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: #BBBBBB; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* Movimiento: entrada del hero, ya visible por defecto */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { animation: rise .7s var(--ease) both; }
  .js .reveal-2 { animation: rise .7s .08s var(--ease) both; }
  .js .reveal-3 { animation: rise .7s .16s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* La foto de cabecera se asienta mientras entra el texto */
  .js .hero__media img, .js .split-hero__media img, .js .page-hero__media img { animation: settle .9s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.04); } to { transform: none; } }

  html { scroll-behavior: smooth; }

  /* Respuesta a acciones */
  .tabpanel:not([hidden]) { animation: panel-in .22s var(--ease); }
  .form.is-sent .form__success, .newsletter__form.is-sent .form__success { animation: panel-in .3s var(--ease); }
  .has-error .field__error { animation: err-in .18s var(--ease); }
  @media (max-width: 1180px) { .nav.is-open a { animation: panel-in .22s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); } }
  @keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes err-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
  @keyframes tick { from { transform: translateY(6px); } 60% { transform: translateY(-2px); } to { transform: none; } }
}
.field select.is-flash { box-shadow: 0 0 0 3px var(--red); border-color: var(--red); transition: box-shadow .4s var(--ease), border-color .4s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Información de protección de datos junto a los formularios */
.form__legal { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form__legal a { color: inherit; }
.newsletter__form .form__legal { margin-top: -4px; }

/* Páginas legales */
.prose { max-width: 76ch; display: grid; gap: 16px; color: var(--text-2); }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.1; color: var(--ink); margin-top: 24px; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--grey); color: var(--ink); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
.prose__updated { font-size: 14px; color: var(--muted); }
/* Dato pendiente de completar antes de publicar */
.ph { background: #FFF3B0; color: var(--ink); padding: 0 4px; font-weight: 600; }

/* Envío de formularios */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled, .newsletter__form .btn:disabled { opacity: .7; cursor: progress; }
.form__fail { grid-column: 1 / -1; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--red-dark); background: #FDECEE; border-left: 3px solid var(--red); }

/* Gestión de la suscripción a la newsletter */
.manage > div { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 3vw, 36px); background: var(--grey); border-top: 3px solid var(--ink); }
.manage > div[hidden] { display: none; }

/* Aviso de cookies (solo con Google Ads configurado) */
[hidden] { display: none !important; }
.footer-cookies { background: none; border: 0; padding: 0; font: inherit; color: #BBBBBB; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; cursor: pointer; }
.footer-cookies:hover { color: var(--red); }
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--white); border-top: 3px solid var(--red); box-shadow: 0 -8px 24px rgba(0,0,0,.12); max-height: 85vh; overflow-y: auto; }
.cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 20px; }
.cookie-banner__text { flex: 1 1 520px; display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
.cookie-banner__title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.cookie-banner__options { display: grid; gap: 12px; margin-top: 8px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cookie-banner__actions .btn { min-width: 132px; }
.cookie-banner__link { background: none; border: 0; padding: 8px 4px; font: 600 15px/1.2 var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.cookie-banner__link:hover { color: var(--red); }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-in .24s var(--ease) both; }
  @keyframes cookie-in { from { transform: translateY(100%); } }
}
.prose__block { display: grid; gap: 16px; }
.prose code { font-size: 0.92em; background: var(--grey); padding: 0 4px; }
