/* =====================================================================
   CASE IH · Expo Agroalimentaria 2026
   Design tokens
   ===================================================================== */
:root {
  /* Brand */
  --red:          #c8102e;
  --red-bright:   #e4162f;
  --red-deep:     #8e0a1f;

  /* Neutrals (dark) */
  --black:        #0a0c0f;
  --graphite:     #14171c;
  --graphite-2:   #1d2127;
  --line-dark:    #2b3038;

  /* Azul corporativo para títulos de secciones claras */
  --navy:         #16273f;
  --navy-deep:    #0e1b2d;

  /* Neutrals (light) */
  --paper:        #ffffff;
  --paper-2:      #f4f6f8;
  --line:         #dfe4ea;
  --ink:          #11151b;
  --body:         #4f5a66;
  --body-light:   #b9c1cb;

  /* System */
  --radius:       10px;
  --radius-lg:    16px;
  --container:    1240px;
  --header-h:     76px;
  --ease:         cubic-bezier(.2, .6, .2, 1);
}

/* =====================================================================
   Reset & base
   ===================================================================== */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.dialog-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a, button { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, .process-title {
  font-family: "Barlow Condensed", "Barlow", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

h1 { font-size: clamp(44px, 6.4vw, 78px); }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: clamp(20px, 2vw, 25px); }

/* Títulos de secciones claras: caja baja, azul corporativo, como la referencia */
.title-sentence {
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--navy);
}

p { color: var(--body); }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.section { padding: clamp(64px, 8vw, 110px) 0; }

/* =====================================================================
   Shared components
   ===================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 5px;
  background: var(--red);
  transform: skewX(-18deg);
  flex: none;
}
.eyebrow.light { color: #fff; }
.eyebrow.light::before { background: var(--red-bright); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.button:hover { background: var(--red-bright); box-shadow: 0 10px 24px rgb(200 16 46 / .3); }
.button:active { transform: translateY(1px); }
.button .icon { width: 20px; height: 20px; }

.button-lg { min-height: 60px; padding: 16px 18px 16px 28px; font-size: 15px; }
.button-sm { min-height: 42px; padding: 9px 16px; gap: 12px; font-size: 12px; }
.button-full { width: 100%; }

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.button-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
}

.button-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgb(255 255 255 / .28);
}
.button-ghost:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 24px rgb(200 16 46 / .32);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 600;
}
.text-link:hover { color: var(--red-bright); }

.note,
.download-meta {
  display: block;
  margin-top: 14px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.5;
}

.lead { font-size: clamp(18px, 1.5vw, 21px); }

/* Línea manuscrita con trazo rojo (hero y footer).
   Caveat es caligráfica de verdad; antes era un Barlow en cursiva falsa. */
.hero-script,
.footer-script {
  position: relative;
  display: inline-block;
  padding-bottom: .4em;
  font-family: Caveat, "Segoe Script", cursive;
  font-weight: 700;
  line-height: 1.04;
  color: #fff;
  text-shadow: 0 2px 14px rgb(0 0 0 / .45);
}
/* Caveat es vertical; la referencia va inclinada hacia adelante.
   inline-block hace que el párrafo se ajuste al ancho real del texto,
   para que el % del trazo se mida sobre él y no sobre la columna. */
.hero-script span,
.footer-script span {
  display: inline-block;
  transform: skewX(-9deg);
}

/* Trazo de pincel: afilado en las puntas y ascendente hacia la derecha.
   Va absoluto para no aportar su ancho intrínseco (300 px) al párrafo. */
.hero-script .swoosh,
.footer-script .swoosh {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72%;
  height: auto;
  fill: var(--red-bright);
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / .35));
}

/* =====================================================================
   Header
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 12 15 / .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand img { width: 128px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav > a:not(.button) {
  color: #e8ebef;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav > a:not(.button):hover { color: #fff; border-bottom-color: var(--red-bright); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { background: var(--black); }

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

/* Banda del evento bajo el slider */
.hero-panel {
  position: relative;
  padding: clamp(44px, 5vw, 72px) 0 clamp(50px, 5.5vw, 78px);
  background:
    radial-gradient(90% 150% at 6% 0%, rgb(200 16 46 / .22), transparent 62%),
    var(--black);
}
/* Filo rojo que amarra el slider con la banda del evento */
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-bright) 42%, transparent 92%);
}

.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-expo-logo { order: 2; flex: 0 0 auto; width: clamp(260px, 30vw, 420px); height: auto; }

.hero h1 { color: #fff; font-size: clamp(46px, 5.8vw, 80px); }
.hero h1 em { font-style: normal; color: var(--red-bright); }

.hero-lead {
  margin-top: 20px;
  max-width: 500px;
  color: var(--body-light);
  font-size: clamp(18px, 1.5vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 30px 0 34px;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--body-light);
  font-size: 16px;
  line-height: 1.35;
}
.hero-meta .icon { color: var(--red-bright); width: 30px; height: 30px; }
.hero-meta span { display: flex; flex-direction: column; }
.hero-meta strong { color: #fff; font-weight: 600; font-size: 17px; }

/* Slider: cada diapositiva se muestra completa, sin recortes
   (1920 × 800 en escritorio, 800 × 600 en móvil). */
.slider-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1920 / 800;
  touch-action: pan-y;
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform .6s var(--ease);
}
.slide { flex: 0 0 100%; min-width: 0; }
.slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; }

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .35);
  background: rgb(10 12 15 / .55);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-prev { left: clamp(10px, 2vw, 28px); }
.slider-next { right: clamp(10px, 2vw, 28px); }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 1.6vw, 20px);
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgb(10 12 15 / .5);
  transform: translateX(-50%);
}
/* Área táctil de 24 px; el punto visible es el ::before */
.slider-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.slider-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / .55);
  transition: width .25s var(--ease), background .25s var(--ease);
}
.slider-dot:hover::before { background: #fff; }
.slider-dot[aria-current="true"]::before { width: 26px; background: var(--red-bright); }

.hero-script {
  align-self: start;
  margin-top: 4px;
  max-width: 300px;
  text-align: right;
  font-size: clamp(26px, 2.5vw, 38px);
}
.hero-script .swoosh { width: 68%; }

/* =====================================================================
   Campañas
   ===================================================================== */
.campaigns { background: var(--paper-2); }

.campaigns-grid {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 58px);
  align-items: center;
}

.campaigns-intro p { margin: 18px 0 28px; font-size: 15.5px; }

.carousel { position: relative; min-width: 0; }

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.campaign-card {
  position: relative;
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgb(10 12 15 / .22);
}

.campaign-photo { aspect-ratio: 4 / 4.6; }
.campaign-photo img { width: 100%; height: 100%; object-fit: cover; }
.campaign-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgb(10 12 15 / .96) 4%, rgb(10 12 15 / .68) 28%, rgb(10 12 15 / .1) 58%, transparent 78%);
  pointer-events: none;
}

.campaign-body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 12px;
  padding: 18px;
  color: #fff;
}
.campaign-body h3 { grid-column: 1; color: #fff; font-size: clamp(16px, 1.25vw, 19px); }
.campaign-body p {
  grid-column: 1;
  margin-top: 5px;
  color: var(--body-light);
  font-size: 12.5px;
  line-height: 1.34;
}
.campaign-body .card-action { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

.card-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / .35);
  color: #fff;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.card-action:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateX(2px);
}

/* Flechas a los costados del carrusel, como en la referencia */
.carousel-arrow {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 6px 18px rgb(22 39 63 / .16);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.carousel-arrow-prev { left: clamp(-21px, -1.4vw, -12px); }
.carousel-arrow-next { right: clamp(-21px, -1.4vw, -12px); }
.carousel-arrow:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.carousel-arrow:disabled { opacity: .3; cursor: default; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carousel-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c3cbd4;
  transition: background .2s var(--ease), width .2s var(--ease);
}
.carousel-dots i.is-active { background: var(--red); width: 22px; border-radius: 4px; }

/* Sin controles cuando todas las tarjetas caben en pantalla */
.carousel.is-static .carousel-arrow,
.carousel.is-static .carousel-dots { display: none; }

/* =====================================================================
   CNH Parts
   ===================================================================== */
.parts {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 32% 50%, rgb(200 16 46 / .2), transparent 62%),
    linear-gradient(180deg, var(--graphite), var(--black));
  color: #fff;
  isolation: isolate;
}

/* Escena a sangre en el costado izquierdo, fundida con el fondo */
.parts-scene {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: clamp(260px, 34vw, 520px);
  /* Se desvanece con máscara para que no quede un corte de color */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 96%);
  mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 96%);
}
.parts-scene img { width: 100%; height: 100%; object-fit: cover; }
.parts-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 12 15 / .45) 0%, rgb(10 12 15 / .66) 60%, rgb(10 12 15 / .72) 100%);
}

.parts-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-left: clamp(0px, 13vw, 190px);
}

.parts h2 { color: #fff; font-size: clamp(40px, 5vw, 64px); }
.parts .lead { margin-top: 16px; color: var(--body-light); max-width: 420px; }

.parts-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin: 32px 0 34px;
}
.parts-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.35;
  color: #e6eaee;
}
.parts-points .icon { color: var(--red-bright); width: 26px; height: 26px; }

/* Tarjeta oscura con carrusel de refacciones y servicio */
.parts-figure {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1c2026 0%, #0d1014 100%);
  border: 1px solid var(--line-dark);
  box-shadow: 0 26px 60px rgb(0 0 0 / .5);
  padding: clamp(14px, 1.6vw, 22px);
}
.parts-figure::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--red);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 2;
}

.parts-track {
  gap: 0;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
}

.parts-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.parts-slide img {
  width: 100%;
  /* height:auto evita que el atributo height del <img> gane sobre aspect-ratio */
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Solo la toma de producto necesita fondo blanco; en las fotos dejaría
   una línea clara por el redondeo subpíxel del aspect-ratio. */
.parts-slide-light { background: #fff; }
.parts-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(0deg, rgb(10 12 15 / .88), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Flechas dentro de la tarjeta, sobre la imagen */
.parts-figure .carousel-arrow {
  top: calc(50% - 21px);
  border: 0;
  background: rgb(255 255 255 / .92);
  color: var(--navy);
}
.parts-figure .carousel-arrow-prev { left: clamp(20px, 2.2vw, 30px); }
.parts-figure .carousel-arrow-next { right: clamp(20px, 2.2vw, 30px); }

.parts-dots { margin-top: 14px; }
.parts-dots i { background: rgb(255 255 255 / .3); }
.parts-dots i.is-active { background: var(--red-bright); }

/* =====================================================================
   Financiamiento
   ===================================================================== */
.finance { background: var(--paper); }

/* Foto a sangre a la izquierda, copy al centro y proceso a la derecha */
.finance-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.78fr)
    minmax(0, 1.12fr)
    minmax(0, 1.4fr);
  gap: clamp(28px, 3.2vw, 50px);
  align-items: center;
  padding-right: max(32px, calc((100vw - var(--container)) / 2));
}

.finance-figure {
  align-self: stretch;
  min-height: clamp(300px, 34vw, 420px);
  overflow: hidden;
}
.finance-figure img { width: 100%; height: 100%; object-fit: cover; }

.finance-copy { padding: clamp(48px, 6vw, 86px) 0; }
.finance-copy p { margin: 18px 0 26px; max-width: 400px; font-size: 15.5px; }
.finance-copy .note { margin-top: 16px; }

.process-title {
  margin-bottom: 26px;
  color: var(--navy);
  font-size: 15px;
  letter-spacing: .13em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  position: relative;
}
/* connector line between steps */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 1px;
  background: var(--line);
}

.step-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--navy);
}
.step-mark .icon { width: 24px; height: 24px; }
.step-mark b {
  position: absolute;
  top: -7px;
  left: -5px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: Barlow, sans-serif;
}

.step-text {
  max-width: 130px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.38;
}

/* =====================================================================
   Fichas técnicas
   ===================================================================== */
.sheets {
  background: var(--paper-2);
  overflow: hidden;
}

.sheets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .66fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.sheets-copy h2 { color: var(--ink); }
.sheets-copy p { margin: 20px 0 30px; max-width: 360px; }

.sheets-art {
  position: relative;
  height: clamp(300px, 30vw, 400px);
}
.sheets-art .sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(150px, 15vw, 196px);
  height: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 34px rgb(10 12 15 / .18);
  transform-origin: bottom center;
  transition: transform .4s var(--ease);
}
.sheets-art .sheet-1 { transform: translate(-50%, -50%) rotate(0deg);   z-index: 5; }
.sheets-art .sheet-2 { transform: translate(-28%, -50%) rotate(7deg);   z-index: 4; }
.sheets-art .sheet-3 { transform: translate(-10%, -49%) rotate(14deg);  z-index: 3; }
.sheets-art .sheet-4 { transform: translate(-72%, -50%) rotate(-7deg);  z-index: 4; }
.sheets-art .sheet-5 { transform: translate(-90%, -49%) rotate(-14deg); z-index: 3; }

.sheets-art:hover .sheet-2 { transform: translate(-24%, -51%) rotate(9deg); }
.sheets-art:hover .sheet-3 { transform: translate(-2%,  -49%) rotate(17deg); }
.sheets-art:hover .sheet-4 { transform: translate(-76%, -51%) rotate(-9deg); }
.sheets-art:hover .sheet-5 { transform: translate(-98%, -49%) rotate(-17deg); }

.sheets-features {
  display: grid;
  gap: 20px;
  padding-left: clamp(20px, 2vw, 34px);
  border-left: 1px solid var(--line);
}
.sheets-features li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.sheets-features .icon { color: var(--red); width: 24px; height: 24px; }

/* =====================================================================
   Registro
   ===================================================================== */
.registration {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  isolation: isolate;
}

/* Fotografía de fondo velada, como en la referencia */
.registration-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.registration-scene img { width: 100%; height: 100%; object-fit: cover; }
.registration-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(10 12 15 / .94) 0%, rgb(10 12 15 / .82) 42%, rgb(10 12 15 / .9) 100%),
    radial-gradient(70% 100% at 6% 18%, rgb(200 16 46 / .3), transparent 58%);
}

.registration-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.registration-copy h2 { color: #fff; }
.registration-copy h2 em { font-style: normal; color: var(--red-bright); }
.registration-copy > p {
  margin: 22px 0 36px;
  max-width: 470px;
  color: var(--body-light);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
  max-width: 470px;
  padding-top: 30px;
  border-top: 1px solid rgb(255 255 255 / .12);
}
.benefits li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #e6eaee;
  font-size: 13.5px;
  line-height: 1.35;
}
.benefits .icon { color: var(--red-bright); width: 26px; height: 26px; }

.registration-card {
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius-lg);
  background: rgb(14 17 21 / .82);
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: 0 24px 60px rgb(0 0 0 / .45);
  backdrop-filter: blur(10px);
}

.form-heading { margin-bottom: 24px; }
.form-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.form-heading h3 { color: #fff; }

#lead-form { display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }
.field label {
  color: #d5dbe2;
  font-size: 13px;
  font-weight: 500;
}
.field label span { color: var(--red-bright); }

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / .18);
  background: rgb(10 12 15 / .5);
  color: #fff;
  font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder { color: #7b8694; }
.field input:hover,
.field select:hover { border-color: rgb(255 255 255 / .32); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--red-bright);
  background: rgb(10 12 15 / .75);
}
.field select { appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c1cb' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field select option { background: var(--graphite); color: #fff; }

.field.has-error input,
.field.has-error select { border-color: #ff6b6b; }
.field-error {
  color: #ff8a8a;
  font-size: 12.5px;
  line-height: 1.4;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  color: #c7cdd5;
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.checkbox-label.has-error { color: #ff8a8a; }

.inline-button {
  padding: 0;
  color: #fff;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-button:hover { color: var(--red-bright); }

.form-security {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  color: #8e98a4;
  font-size: 12.5px;
  line-height: 1.45;
}
.form-security .icon { width: 17px; height: 17px; }

.form-success { text-align: center; padding: 10px 0; }
.success-check {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.success-check .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { color: #fff; margin-bottom: 12px; }
.form-success p { color: var(--body-light); }
.success-interest { margin: 14px 0 24px; font-size: 14px; }
.success-interest strong { color: #fff; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--black); color: #fff; padding: 52px 0 28px; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 34px;
}

.footer-brand img { width: 150px; height: auto; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}
.footer-meta li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--body-light);
  font-size: 13px;
  line-height: 1.35;
}
/* Separadores verticales entre los datos del evento */
.footer-meta li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: rgb(255 255 255 / .16);
}
.footer-meta .icon { color: var(--red-bright); width: 23px; height: 23px; }
.footer-meta span { display: flex; flex-direction: column; }
.footer-meta strong { color: #fff; font-weight: 600; }

.footer-script { font-size: clamp(25px, 2.3vw, 34px); text-align: right; }
.footer-script .swoosh { width: 70%; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding-top: 26px;
  border-top: 1px solid rgb(255 255 255 / .1);
}
.footer-bottom p { color: #7f8893; font-size: 13px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .16);
  color: #d5dbe2;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links button,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d5dbe2;
  font-size: 13px;
  transition: color .2s var(--ease);
}
.footer-links button:hover,
.footer-links a:hover { color: var(--red-bright); }
.footer-links .icon { width: 17px; height: 17px; }

/* =====================================================================
   Floating CTA
   ===================================================================== */
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 100px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgb(10 12 15 / .35);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.floating-contact.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating-contact:hover { background: var(--red-bright); }

/* =====================================================================
   Dialog
   ===================================================================== */
.privacy-dialog {
  width: min(600px, calc(100% - 40px));
  padding: clamp(26px, 3vw, 40px);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
}
.privacy-dialog::backdrop { background: rgb(10 12 15 / .72); backdrop-filter: blur(3px); }
.privacy-dialog h2 { margin-bottom: 18px; }
.privacy-dialog p { margin-bottom: 16px; font-size: 15px; }
.privacy-dialog .text-link { display: flex; width: fit-content; margin-bottom: 28px; }
.privacy-dialog .button { display: flex; width: fit-content; }

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dialog-close:hover { background: var(--ink); color: #fff; }

/* Trade Gothic LT Std Bold Condensed No. 20: claim "LA DECISIÓN DEFINITIVA" */
@font-face {
  font-family: "Trade Gothic Condensed";
  src: url("assets/fonts/trade-gothic-bold-condensed-20.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =====================================================================
   Ajustes de revisión (comentarios del cliente, 27 oct)
   ===================================================================== */
:root {
  --header-h: 84px;
  --font-claim: "Trade Gothic Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
}

/* Header más grande */
.brand img { width: 148px; }
.nav { gap: 34px; }
.nav > a:not(.button) { font-size: 16px; }
.button-sm { min-height: 48px; padding: 10px 20px; font-size: 14px; }

/* Campañas: título y botón con texto largo */
.campaigns-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.campaigns-intro p { font-size: 17px; }
.campaigns-intro .button { text-align: left; white-space: normal; line-height: 1.3; }

/* CNH Parts: sección y cuadro de promociones más grandes */
.parts-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); padding-left: clamp(0px, 9vw, 130px); }
.parts h2 { font-size: clamp(48px, 6vw, 78px); }
.parts .lead { max-width: 480px; font-size: clamp(18px, 1.5vw, 21px); }
.parts-points { gap: 22px 38px; }
.parts-points li { font-size: 16px; }
.parts-points .icon { width: 34px; height: 34px; }
.parts .button-ghost { min-height: 58px; font-size: 15px; }
.parts-figure { padding: clamp(18px, 2vw, 28px); }
.parts-slide figcaption { font-size: 16px; }

/* Financiamiento: foto JXM sobre negro, pasos con íconos más grandes */
.finance-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.6fr); }
.finance-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: clamp(360px, 36vw, 480px);
  padding: 20px 18px 26px;
  background: #000;
  color: #fff;
}
/* El fondo del JXM es negro puro: se amplía y se recorta sin que se note */
.finance-figure img { width: 130%; max-width: none; margin-left: -15%; height: auto; object-fit: contain; }
.finance-figure figcaption { display: grid; gap: 4px; text-align: center; }
.finance-figure strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.finance-figure figcaption span { color: var(--body-light); font-size: 14px; }

.process-title { font-size: 17px; }
.steps { gap: 18px; }
.step-mark {
  width: 80px;
  height: 80px;
  border: 0;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgb(22 39 63 / .28);
}
.step-mark .icon { width: 36px; height: 36px; stroke-width: 1.6; }
.step-mark b { top: -8px; left: -8px; width: 28px; height: 28px; font-size: 14px; box-shadow: 0 0 0 3px var(--paper); }
.steps li:not(:last-child)::after { top: 40px; left: calc(50% + 48px); right: calc(-50% + 48px); background: var(--line); }
.step-text { max-width: 150px; font-size: 15px; line-height: 1.38; color: var(--ink); }

/* Fichas técnicas más grandes */
.sheets-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .7fr); }
.sheets-copy p { font-size: 17px; max-width: 400px; }
.sheets-art { height: clamp(380px, 38vw, 540px); }
/* Páginas del portafolio 2026: proporción 1:2 */
.sheets-art .sheet { width: clamp(130px, 13vw, 185px); }
.sheets-features li { font-size: 17px; }
.sheets-features .icon { width: 28px; height: 28px; }

/* Registro: textos un poco más grandes */
.registration-copy > p { font-size: 18px; max-width: 520px; }
.benefits { max-width: 520px; }
.benefits li { font-size: 16px; }
.benefits .icon { width: 32px; height: 32px; }

/* Footer: claim, datos y redes */
.footer-meta li { font-size: 14.5px; }
.footer-claim {
  font-synthesis: none;
  font-family: var(--font-claim);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: .03em;
  text-align: right;
  text-transform: uppercase;
  color: #fff;
}
.footer-social { gap: 14px; }
.footer-social a { width: 48px; height: 48px; }
.footer-social .icon { width: 24px; height: 24px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1240px) {
  .finance-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    padding-right: max(24px, calc((100vw - var(--container)) / 2));
  }
  .finance-process {
    grid-column: 1 / -1;
    padding: 0 0 clamp(48px, 6vw, 70px);
  }
  .finance-figure { min-height: 100%; }
}

@media (max-width: 1100px) {
  .campaigns-grid { grid-template-columns: 1fr; }
  .campaign-card { flex-basis: calc(33.333% - 14px); }
  .campaign-photo { aspect-ratio: 4 / 3.8; }
  /* Sin columna de intro las flechas van dentro del riel */
  .campaigns .carousel-arrow-prev { left: 10px; }
  .campaigns .carousel-arrow-next { right: 10px; }
  .sheets-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sheets-features {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    padding-top: 26px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 899px) {
  .slider-viewport { aspect-ratio: 800 / 600; }
}

@media (max-width: 980px) {
  .container { width: calc(100% - 44px); }

  /* width:fit-content hace que el % del trazo se mida sobre el texto */
  .hero-script { text-align: left; max-width: none; }
  .hero-script .swoosh { left: 0; right: auto; width: 72%; }

  .parts-grid,
  .finance-grid,
  .registration-grid { grid-template-columns: 1fr; }

  .parts-grid { padding-left: 0; }
  .parts-scene { display: none; }
  .parts-figure { order: -1; }

  .finance-grid { padding: 0; gap: 0; }
  .finance-figure { order: -1; min-height: 0; aspect-ratio: auto; padding: 28px 18px; }
  .finance-figure img { width: 100%; max-width: 560px; margin: 0 auto; }
  .finance-copy,
  .finance-process { width: calc(100% - 44px); margin-inline: auto; }
  .finance-copy { padding: clamp(40px, 6vw, 64px) 0 0; }
  .finance-process { padding: clamp(32px, 4vw, 48px) 0 clamp(48px, 6vw, 72px); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .steps li::after { display: none; }
  .step-text { max-width: 160px; font-size: 14px; }

  .footer-inner { justify-content: flex-start; }
  .footer-script, .footer-claim { text-align: left; }
  .footer-script .swoosh { left: 0; right: auto; width: 74%; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 22px;
    background: var(--black);
    border-bottom: 1px solid rgb(255 255 255 / .1);
    box-shadow: 0 18px 34px rgb(0 0 0 / .45);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path .3s var(--ease), opacity .2s var(--ease);
  }
  .nav.open { clip-path: inset(0 0 0 0); opacity: 1; }
  .nav > a:not(.button) {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgb(255 255 255 / .08);
  }
  .nav > a:not(.button):hover { border-bottom-color: rgb(255 255 255 / .08); }
  .nav .button { margin-top: 18px; justify-content: center; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }

  .carousel-track { gap: 16px; }
  .campaign-card { flex-basis: 80%; }
  .campaign-photo { aspect-ratio: 4 / 3.2; }
  .slider-arrow { width: 38px; height: 38px; margin-top: -19px; }
  .hero-meta { gap: 14px 24px; }
  .hero-copy .button { width: 100%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .sheets-grid { grid-template-columns: 1fr; }
  .sheets-art { height: 290px; }
  .sheets-art .sheet { width: 140px; }
  .sheets-features { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .floating-contact span { display: none; }
  .floating-contact { padding: 15px; }
}

@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { flex-direction: row; text-align: left; align-items: center; gap: 18px; }
  .step-text { max-width: none; }
  .benefits { grid-template-columns: 1fr; }
}

/* =====================================================================
   Motion preferences
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 899px) {
  .hero-grid { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-expo-logo { order: 0; width: min(240px, 70%); }
}
