﻿/*
Theme Name: GIPO | Aritec
Theme URI: https://gipo.es
Author: Aritec / GIPO
Description: Tema a medida para GIPO | Aritec con Custom Post Types para Maquinaria Nueva, Maquinaria Usada, Catálogos y Fichas Técnicas.
Version: 1.0.0
Text Domain: gipo-aritec
*/
/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #ffffff;
  --bg-2:        #ffffff;
  --bg-card:     #ffffff;
  --bg-card-2:   #f5f5f5;
  --text:        #0D1118;
  --text-2:      #475569;
  --text-3:      #7A8A9A;
  --accent:      #D42020;
  --accent-dark: #A01818;
  --accent-glow: rgba(212,32,32,0.10);
  --steel:       #0D1118;
  --line:        rgba(13,17,24,0.08);
  --line-2:      rgba(13,17,24,0.15);
  --sans:        'DM Sans', system-ui, sans-serif;
  --serif:       'Titillium Web', 'DM Sans', system-ui, sans-serif;
  --mono:        'JetBrains Mono', 'Courier New', monospace;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h:       72px;
  --r:           6px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-snap-type: y proximity;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
::selection { background: var(--accent); color: #07080A; }
/* Remove ALL outlines by default â€” no exceptions */
*, *::before, *::after { outline: none !important; }
/* Re-add focus ring ONLY on keyboard-navigable interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.2rem; background: var(--accent); color: #07080A;
  z-index: 9999; border-radius: var(--r); font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =============================================================
   4. Navigation
   ============================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  transition: background .4s var(--ease-soft), box-shadow .4s;
}
.site-nav.is-scrolled {
  background: #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transform: translateY(10px);
}
.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  object-position: center center;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-2);
  transition: color .25s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--text); }

/* White nav links when over the hero (not scrolled) */
.site-nav:not(.is-scrolled) .nav-link { color: rgba(255,255,255,0.85); }
.site-nav:not(.is-scrolled) .nav-link:hover,
.site-nav:not(.is-scrolled) .nav-link.is-active { color: #ffffff; }
.site-nav:not(.is-scrolled) .lang-btn { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25); }
.site-nav:not(.is-scrolled) .lang-btn:hover { color: #ffffff; border-color: rgba(255,255,255,0.6); }
.site-nav:not(.is-scrolled) .nav-hamburger span { background: #ffffff; }

/* Ghost button inside hero: white border + text */
.hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255,255,255,0.45);
}
.hero .btn-ghost:hover { border-color: #ffffff; color: #ffffff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-2);
  padding: .38rem .65rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: color .2s, border-color .2s;
  cursor: pointer;
}
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }
.nav-chevron {
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
  stroke: currentColor;
}
.lang-switcher.is-open .lang-btn .nav-chevron { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  min-width: 140px;
  padding: .4rem 0;
  box-shadow: 0 12px 36px rgba(0,0,0,.10);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.lang-switcher.is-open .lang-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-option {
  width: 100%;
  text-align: left;
  padding: .55rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color .15s, background .15s;
}
.lang-option:hover { color: var(--text); background: var(--bg-2); }
.lang-option.is-active { color: var(--accent); }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}
@media (min-width: 960px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 800;
  background: #ffffff;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu .nav-link { font-size: 1.5rem; font-weight: 700; }
.mobile-lang { display: flex; gap: 1rem; margin-top: 1rem; }
.mobile-lang .lang-option { font-size: .85rem; padding: .4rem .8rem; border: 1px solid var(--line-2); border-radius: var(--r); }
.mobile-lang .lang-option.is-active { border-color: var(--accent); color: var(--accent); }

/* =============================================================
   5. Splash (home) + Hero
   ============================================================= */
/* Nav hidden only on splash (index.html at top) */
.site-nav:not(.is-scrolled) {
  opacity: 0;
  pointer-events: none;
}
.site-nav.is-scrolled {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .4s var(--ease-soft), background .4s var(--ease-soft), box-shadow .4s;
}

.splash {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: #0d0d0d;
  position: relative;
}
.splash-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.splash-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.splash > * { position: relative; z-index: 1; }
.splash-video-bg { position: absolute; z-index: 0; }

.splash-logo {
  height: clamp(60px, 10vw, 120px);
  width: auto;
  object-fit: contain;
  position: absolute;
  top: clamp(2rem, 6vh, 5rem);
  left: 50%;
  transform: translateX(-50%);
}
.splash-arrow {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 0;
}
.splash-scroll-text {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .3em;
  color: #ffffff;
  transition: opacity .5s ease;
}
.splash-arrow-line {
  width: 2px;
  height: 48px;
  background: rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.splash-arrow-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  animation: scrollLine 1.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}
#splash-cta:hover { opacity: .6; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,8,10,0.35) 0%, rgba(7,8,10,0.5) 50%, rgba(7,8,10,0.92) 100%),
    linear-gradient(90deg, rgba(7,8,10,0.6) 0%, transparent 60%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
  padding-inline-start: clamp(1.25rem, 3vw, 2.5rem);
  margin-inline: 0;
}
.hero-eyebrow {
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title .hero-line { display: block; }
.hero-title .hero-line-accent { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; right: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.scroll-line {
  display: block; width: 1px; height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(.4); transform-origin: top; }
}
.hero-bienvenido {
  font-family: var(--sans);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 2rem;
}

/* =============================================================
   6. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.8rem;
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  border-radius: var(--r);
  transition: transform .25s var(--ease-out), box-shadow .25s, background .2s, color .2s;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 32px rgba(212,32,32,.25); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small {
  padding: .55rem 1.1rem;
  font-size: .8rem;
}

.btn-icon {
  width: 1rem; height: 1rem;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* =============================================================
   7. About section
   ============================================================= */
.about {
  padding: clamp(5rem, 10vh, 9rem) 0;
  border-top: 1px solid var(--line);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}
.about-text-col { }
.about-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.08;
}
.about-title em { font-style: italic; color: var(--accent); }
.about-body {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-tagline {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-3);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 2rem;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* =============================================================
   8. Families grid
   ============================================================= */
.families {
  padding: clamp(4rem, 8vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.section-header {
  margin-bottom: clamp(2rem, 4vh, 3rem);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin: .75rem 0 .75rem;
}
.section-sub {
  font-size: .95rem;
  color: var(--text-2);
  max-width: 480px;
}

/* Horizontal strip â€” breaks out of .container */
.families-grid {
  display: flex;
  gap: 3px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  cursor: default;
  height: clamp(420px, 65vh, 720px);
  user-select: none;
}
.families-grid::-webkit-scrollbar { display: none; }

.family-row {
  flex: 1 1 0;
  min-width: 160px;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  scroll-snap-align: start;
  cursor: inherit;
  transition: flex .6s cubic-bezier(.4, 0, .2, 1);
}

.family-row-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.family-row-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .55s ease, transform .55s cubic-bezier(.25,.46,.45,.94);
  filter: brightness(.55) saturate(.8);
}
.family-row:hover .family-row-img img {
  filter: brightness(1) saturate(1);
  transform: none;
}

/* Gradient overlay */
.family-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.45) 45%,
    rgba(0,0,0,.06) 100%);
  z-index: 1;
  transition: background .55s ease;
}
.family-row:hover::after {
  background: linear-gradient(to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.0) 38%);
}

.family-row-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.family-row-num {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
}
.family-row-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.0;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.family-row:hover .family-row-name { transform: translateY(-6px); }

.family-row-desc {
  font-family: var(--sans);
  font-size: .83rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s cubic-bezier(.25,.46,.45,.94), opacity .35s ease .05s;
}
.family-row:hover .family-row-desc {
  max-height: 5em;
  opacity: 1;
}

.family-row-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease .1s, transform .35s ease .1s, gap .2s;
  margin-top: .35rem;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: .2rem;
  width: fit-content;
}
.family-row:hover .family-row-link {
  opacity: 1;
  transform: translateY(0);
  gap: .7rem;
}
.family-row-link svg { flex-shrink: 0; }

/* =============================================================
   9. Sectors
   ============================================================= */
.sectors {
  padding: clamp(4rem, 8vh, 7rem) 0;
  border-top: 1px solid var(--line);
}
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) * 2);
  overflow: hidden;
}
@media (min-width: 720px) { .sectors-grid { grid-template-columns: 1fr 1fr; } }
.sector-panel {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.sector-panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.7) brightness(.6);
  transition: filter .6s var(--ease-out), transform .6s var(--ease-out);
}
.sector-panel:hover img { filter: saturate(.9) brightness(.7); transform: scale(1.04); }
.sector-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,8,10,.9) 0%, rgba(7,8,10,.2) 60%, transparent 100%);
}
.sector-body {
  position: relative; z-index: 1;
  padding: 2rem;
}
.sector-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.1;
}
.sector-desc {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 400px;
}

/* =============================================================
   10. Why us
   ============================================================= */
.why-us {
  padding: clamp(4rem, 8vh, 7rem) 0;
  border-top: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: clamp(2.5rem, 4vh, 3.5rem);
}
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
  transition: border-color .3s, background .3s;
}
.why-card:hover { border-color: var(--line-2); background: var(--bg-card-2); }
.why-num {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}
.why-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.why-desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.7;
}
.why-line {
  position: absolute; top: 0; left: 2rem;
  width: 30px; height: 2px;
  background: var(--accent);
}

/* =============================================================
   11. Contact
   ============================================================= */
.contact {
  padding: clamp(5rem, 10vh, 9rem) 0;
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
@media (min-width: 960px) { .contact-inner { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.contact-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  margin: .75rem 0 1rem;
}
.contact-sub {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-icon {
  width: 18px; height: 18px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; margin-top: .1rem;
}
.contact-item-text { font-size: .9rem; color: var(--text-2); line-height: 1.5; }
.contact-item-text strong { color: var(--text); font-weight: 600; display: block; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .1rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--text-2); letter-spacing: .04em; }
.form-input,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: .85rem 1rem;
  font: inherit;
  font-size: .9rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-submit { align-self: flex-start; }

/* =============================================================
   12. Footer
   ============================================================= */
.site-footer {
  background: #0D1118;
  border-top: none;
}
.footer-logo-band {
  background: #ffffff;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
}
.footer-logo-band img { height: 68px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2.5rem 0;
}
.footer-dist {
  font-size: 1rem;
  color: #ffffff;
}
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================================
   13. Page hero (inner pages)
   ============================================================= */

/* Wide container for inner pages â€” use more screen real estate */
.page-hero .container,
.machinery-intro .container,
.machinery-page .container,
.catalogs-page .container,
.usados-page .container {
  max-width: 1640px;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

.page-hero {
  padding: calc(var(--nav-h) + clamp(4.5rem, 10vh, 7rem)) 0 clamp(3rem, 6vh, 4.5rem);
  background: var(--bg-2);
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--text);
  margin: .75rem 0 .75rem;
  line-height: 1.05;
}
.page-hero-sub {
  font-size: .95rem;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
}

/* Catalogs page hero â€” full-bleed photo background */
.catalogs-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 30vw;
  min-height: 250px;
}
.catalogs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.catalogs-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.catalogs-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,8,10,.78) 0%, rgba(7,8,10,.5) 45%, rgba(7,8,10,.25) 100%);
}
.catalogs-hero .container {
  position: relative;
  z-index: 1;
}
.catalogs-hero .page-hero-title { color: #ffffff; }
.catalogs-hero .page-hero-sub { color: rgba(255,255,255,.7); }

/* Machinery page hero â€” full-bleed photo background */
.machinery-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 30vw;
  min-height: 250px;
}
.machinery-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.machinery-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.machinery-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.25) 40%, rgba(255,255,255,.05) 100%);
}
.machinery-hero .container {
  position: relative;
  z-index: 1;
}

/* =============================================================
   14. Machinery page
   ============================================================= */
.machinery-intro {
  padding: clamp(1rem, 2vh, 1.5rem) 0 0;
}
.machinery-intro-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.machinery-page { padding: clamp(2rem, 4vh, 3.5rem) 0; }

.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.filter-label {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-2);
  display: flex;
  align-items: center;
  margin-right: .5rem;
}
.filter-btn {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: transparent;
  transition: color .2s, border-color .2s, background .2s;
  cursor: pointer;
}
.filter-btn:hover { color: var(--text); border-color: var(--line-2); }
.filter-btn.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }

.machinery-family-section { margin-bottom: 4rem; }
.machinery-family-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 1rem;
}
.machinery-family-title .family-badge { font-family: var(--mono); font-size: .7rem; }

/* Models list â€” replaces old card grid */
.models-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.model-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: transparent;
  transition: background .18s;
}
.model-list-item:nth-child(even) {
  border-left: 1px solid var(--line);
}
.model-list-item:last-child {
  border-bottom: none;
}
.model-list-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}
.model-list-item:hover {
  background: var(--bg-2);
}
.model-list-ref {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.model-list-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .18s;
}
.model-list-item:hover .model-list-action {
  color: var(--accent);
}
.model-list-action--na {
  opacity: .45;
  pointer-events: none;
}
@media (max-width: 600px) {
  .models-list { grid-template-columns: 1fr; }
  .model-list-item:nth-child(even) { border-left: none; }
  .model-list-item:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .model-list-item:last-child { border-bottom: none; }
}

.catalog-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-top: 1rem;
}
.catalog-cta-text { font-size: .9rem; color: var(--text-2); }
.catalog-cta-text strong { color: var(--text); display: block; font-size: .875rem; }

/* =============================================================
   15. Catalogs page
   ============================================================= */
.catalogs-page { padding: clamp(3rem, 6vh, 5rem) 0; }

.catalog-family {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.catalog-family:last-child { border-bottom: 0; margin-bottom: 0; }
.catalog-family-header {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.catalog-family-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--text);
}
.catalog-family-count {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-3);
  letter-spacing: .08em;
}

.catalog-main-card {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color .25s, background .25s;
}
.catalog-main-card:hover { border-color: var(--accent-dark); background: var(--bg-card-2); }
.catalog-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(201,166,81,.2);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.catalog-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.catalog-main-info { flex: 1; }
.catalog-type-label {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .25rem;
}
.catalog-filename {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.catalog-dl-btn {
  flex-shrink: 0;
}

.sheets-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.sheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.sheet-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem;
  transition: border-color .2s, background .2s;
  text-decoration: none;
}
.sheet-card:hover { border-color: var(--accent-dark); background: var(--bg-card-2); }
.sheet-ref {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}
.sheet-download {
  font-size: .875rem;
  color: var(--text-3);
  display: flex; align-items: center; gap: .35rem;
  margin-top: auto;
}
.sheet-download svg { width: 14px; height: 14px; stroke: var(--text-3); fill: none; stroke-width: 2; stroke-linecap: round; }

.no-models-notice {
  font-size: .875rem;
  color: var(--text-3);
  font-style: italic;
  padding: 1rem 0;
}

/* =============================================================
   16. Scroll reveal animations
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-split] { opacity: 1; transform: none; }

.reveal-stagger .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 50ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 100ms; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 150ms; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 200ms; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 250ms; }

/* =============================================================
   17. Card tilt (JS-driven via CSS vars)
   ============================================================= */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* =============================================================
   18. View transitions â€” disabled (caused blank screen on scroll)
   ============================================================= */

/* =============================================================
   19. Responsive tweaks
   ============================================================= */
@media (max-width: 539px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}
@media (max-width: 700px) {
  .families-grid {
    height: clamp(340px, 55vh, 480px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .families-grid:has(.family-row:hover) .family-row { flex: 1 1 0; }
  .family-row { flex: 0 0 78vw !important; }
  .family-row:hover { flex: 0 0 78vw !important; }
  .family-row-name { font-size: 1.5rem; }
}

/* =============================================================
   20. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; }
  .eyebrow-dot { animation: none; }
}

/* =============================================================
   21. OcasiÃ³n â€” Used machinery page
   ============================================================= */
.usados-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 30vw;
  min-height: 250px;
}
.usados-hero-bg { position: absolute; inset: 0; z-index: 0; }
.usados-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.usados-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.25) 40%, rgba(255,255,255,.05) 100%);
}
.usados-hero .container { position: relative; z-index: 1; }

.usados-page { padding: clamp(3rem, 6vh, 5rem) 0; }

.usados-intro {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.usados-intro-text { max-width: 560px; }
.usados-intro-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: .6rem;
}
.usados-intro-sub {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.usados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.usado-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) * 1.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
.usado-card:hover {
  border-color: var(--accent-dark);
  background: var(--bg-card-2);
  transform: translateY(-3px);
}
.usado-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.usado-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.8);
  transition: transform .5s var(--ease-out), filter .5s;
}
.usado-card:hover .usado-card-img img {
  transform: scale(1.05);
  filter: saturate(1) brightness(.95);
}
.usado-status-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.usado-status-badge.available {
  background: rgba(34,197,94,0.18);
  border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80;
}
.usado-status-badge.reserved {
  background: rgba(251,146,60,0.18);
  border: 1px solid rgba(251,146,60,0.4);
  color: #fb923c;
}
.usado-status-badge.sold {
  background: rgba(239,68,68,0.18);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
}

.usado-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .75rem;
}
.usado-ref {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.usado-family-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.usado-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}
.usado-spec-pill {
  font-family: var(--sans);
  font-size: .7rem;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: .2rem .55rem;
}
.usado-notes {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.usado-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  padding-top: .5rem;
  border-top: 1px solid var(--line);
}
.usado-price .price-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .15rem;
}
.usado-price .price-consult {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--text-2);
}

.usado-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.usados-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.usados-empty-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: .75rem;
}
.usados-empty-sub { font-size: .9rem; line-height: 1.65; }

/* OcasiÃ³n teaser on home */
.ocasion-teaser {
  padding: clamp(4rem, 8vh, 7rem) 0;
  border-top: 1px solid var(--line);
}
.ocasion-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
/* =============================================================
   Video section
   ============================================================= */
.video-section {
  padding: 0;
  background: #000;
  line-height: 0;
}
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ocasion-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  padding: .3rem .85rem;
  margin-bottom: 1rem;
}
.ocasion-teaser-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
}
.ocasion-teaser-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: .75rem;
}
.ocasion-teaser-sub {
  font-size: .95rem;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
}


