/* ==========================================================
   IBEROTRUCKS — design system
   ========================================================== */

:root{
  --bg: #0b0b0d;
  --bg-alt: #141416;
  --bg-alt-2: #1c1c1f;
  --line: rgba(255,255,255,0.09);
  --text: #f4f3ef;
  --text-muted: #a4a3ab;
  --text-dim: #706f78;

  --primary: #ff5a1f;
  --primary-dark: #d9440f;
  --primary-light: #ff8a4d;

  --radius: 14px;
  --radius-sm: 8px;

  --ff-display: "Bebas Neue", Impact, sans-serif;
  --ff-body: "Inter", -apple-system, sans-serif;

  --container: 1240px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:auto; }
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--ff-body);
  font-weight:400;
  line-height:1.55;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,textarea,select{ font-family:inherit; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

section{ position:relative; }

/* ---------- typography ---------- */
h1,h2,h3,.hero-title{
  font-family:var(--ff-display);
  font-weight:400;
  letter-spacing:0.5px;
  text-transform:uppercase;
  line-height:1.02;
}

h2{ font-size:clamp(2.4rem, 5vw, 4rem); margin-bottom:1.1rem; }
h3{ font-size:1.5rem; margin-bottom:.5rem; letter-spacing:0.5px; }

.tag{
  display:inline-block;
  color:var(--primary);
  font-weight:600;
  font-size:.82rem;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:1rem;
}

.section-head{ max-width:760px; margin-bottom:4rem; }
.section-head.split{
  max-width:none;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:2.5rem;
  flex-wrap:wrap;
}
.section-note{ max-width:340px; color:var(--text-muted); font-size:.95rem; padding-bottom:.3rem; }

/* ---------- reveal animation base states (JS animates via GSAP) ---------- */
.reveal-up{ opacity:0; transform:translateY(46px); }
.reveal-line span{ transform:translateY(110%); display:inline-block; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.95rem 1.9rem;
  border-radius:100px;
  font-weight:600;
  font-size:.92rem;
  letter-spacing:.3px;
  transition:transform .45s var(--ease), background .3s ease, color .3s ease, border-color .3s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--primary);
  color:#0b0b0d;
}
.btn-primary:hover{ background:var(--primary-light); transform:translateY(-3px); }
.btn-outline{
  border:1.5px solid rgba(244,243,239,0.25);
  color:var(--text);
}
.btn-outline:hover{ border-color:var(--primary); color:var(--primary); transform:translateY(-3px); }

/* ==========================================================
   PRELOADER
   ========================================================== */
#preloader{
  position:fixed; inset:0; z-index:999;
  background:var(--bg);
  display:flex; align-items:center; justify-content:center;
}
.preloader-inner{ text-align:center; }
.preloader-logo{
  font-family:var(--ff-display);
  font-size:clamp(2.2rem,6vw,3.4rem);
  letter-spacing:2px;
}
.preloader-logo span{ color:var(--primary); }
.preloader-count{
  margin-top:.6rem;
  font-family:var(--ff-body);
  color:var(--text-dim);
  font-size:.85rem;
  letter-spacing:2px;
}
.preloader-curtain{
  position:absolute; inset:0;
  background:var(--primary);
  transform:scaleY(0);
  transform-origin:bottom;
}

/* ==========================================================
   CUSTOM CURSOR
   ========================================================== */
.cursor{
  position:fixed;
  top:0; left:0;
  width:22px; height:22px;
  border-radius:50%;
  border:1.5px solid var(--primary);
  pointer-events:none;
  z-index:9999;
  transform:translate(-50%,-50%);
  transition:width .25s var(--ease), height .25s var(--ease), background .25s ease, opacity .25s ease;
  mix-blend-mode:difference;
}
.cursor.hover{
  width:52px; height:52px;
  background:var(--primary);
}
@media (hover:none), (pointer:coarse){
  .cursor{ display:none; }
}

/* ==========================================================
   SCROLL PROGRESS BAR
   ========================================================== */
#progressBar{
  position:fixed; top:0; left:0;
  height:3px; width:100%;
  background:var(--primary);
  transform:scaleX(0);
  transform-origin:left;
  z-index:600;
  will-change:transform;
}

/* ==========================================================
   HEADER
   ========================================================== */
header{
  position:fixed; top:0; left:0; width:100%;
  z-index:500;
  padding:22px 0;
  transition:padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), top .5s var(--ease);
  border-bottom:1px solid transparent;
}
header.scrolled{
  padding:14px 0;
  background:rgba(11,11,13,0.85);
  backdrop-filter:blur(14px);
  border-color:var(--line);
}
header.hide{ top:-120px; }

.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap:2rem;
}

.logo{
  font-family:var(--ff-display);
  font-size:1.5rem;
  letter-spacing:1px;
}
.logo span{ color:var(--primary); }

.nav-links{
  display:flex; gap:2.1rem;
  font-size:.92rem; font-weight:500;
  margin-right:auto;
  margin-left:3rem;
}
.nav-links a{
  position:relative;
  color:var(--text-muted);
  transition:color .3s ease;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:-4px;
  width:0; height:1px;
  background:var(--primary);
  transition:width .35s var(--ease);
}
.nav-links a:hover{ color:var(--text); }
.nav-links a:hover::after{ width:100%; }
.nav-links a.active{ color:var(--text); }
.nav-links a.active::after{ width:100%; }
.mobile-menu a.active{ color:var(--primary); }

.nav-cta{ padding:.7rem 1.5rem; font-size:.85rem; }

#burger{
  display:none;
  width:38px; height:32px;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  z-index:600;
}
#burger span{
  display:block; height:2px; width:100%;
  background:var(--text);
  transition:transform .35s var(--ease), opacity .35s ease;
}
#burger.active span:nth-child(1){ transform:translateY(9px) rotate(45deg); }
#burger.active span:nth-child(2){ opacity:0; }
#burger.active span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:0;
  background:var(--bg-alt);
  z-index:400;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:1.6rem;
  transform:translateY(-100%);
  transition:transform .55s var(--ease);
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu a{ font-size:1.6rem; font-family:var(--ff-display); letter-spacing:1px; }

/* ==========================================================
   PAGE BANNER (subpages — hero replacement)
   ========================================================== */
.page-banner{
  position:relative;
  min-height:44vh;
  display:flex;
  align-items:flex-end;
  padding:9.5rem 0 3.5rem;
  overflow:hidden;
}
.page-banner-bg{
  position:absolute; inset:-10%;
  background-size:cover;
  background-position:center;
  transform:scale(1.05);
}
.page-banner-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(11,11,13,0.5) 0%, rgba(11,11,13,0.88) 100%);
}
.page-banner-content{ position:relative; z-index:1; }
.page-banner h1{ font-size:clamp(2.6rem, 6vw, 4.4rem); color:var(--text); }
.page-banner .eyebrow span{ color:var(--primary); }
.breadcrumb-sep{ color:var(--text-dim); margin:0 .4em; }

/* ==========================================================
   EXPLORE GRID (landing hub links)
   ========================================================== */
#explora{ padding:7rem 0; }
.explore-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:1.2rem;
  perspective:1200px;
}
.explore-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:.9rem;
  background:var(--bg-alt);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:2rem 1.6rem 1.8rem;
  transition:border-color .4s ease, background .4s ease;
  will-change:transform;
  transform-style:preserve-3d;
}
.explore-card:hover{ border-color:rgba(255,90,31,0.4); background:var(--bg-alt-2); }
.explore-num{
  font-family:var(--ff-display);
  font-size:2rem;
  color:var(--text-dim);
  letter-spacing:1px;
}
.explore-card h3{ margin-bottom:.2rem; }
.explore-card p{ color:var(--text-muted); font-size:.88rem; flex-grow:1; }
.explore-arrow{
  align-self:flex-end;
  color:var(--primary);
  font-size:1.3rem;
  transition:transform .35s var(--ease);
}
.explore-card:hover .explore-arrow{ transform:translateX(6px); }

/* ==========================================================
   CTA BAND (bottom-of-subpage call to action)
   ========================================================== */
.cta-band{
  padding:5rem 0;
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  text-align:center;
}
.cta-band h2{ margin-bottom:1.6rem; }
.cta-band .btn{ margin:0 auto; }

/* ==========================================================
   HERO
   ========================================================== */
#hero{
  height:100vh;
  min-height:640px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero-bg-wrap{ position:absolute; inset:0; overflow:hidden; }
.hero-bg{
  position:absolute; inset:-10% ;
  transform:scale(1.15);
  will-change:transform;
}
.hero-bg .truck-scene{ width:100%; height:100%; display:block; }
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.72) 55%, rgba(11,11,13,0.96) 100%);
}

.hero-content{ position:relative; z-index:2; padding-top:3rem; }

.eyebrow{ overflow:hidden; margin-bottom:1.4rem; }
.eyebrow span{
  display:block;
  color:var(--primary);
  font-weight:600; letter-spacing:2px; font-size:.82rem;
  text-transform:uppercase;
}

.hero-title{
  font-size:clamp(3.2rem, 9vw, 7.6rem);
  color:var(--text);
}
.hero-title .line{ overflow:hidden; }
.hero-title .line span{ display:block; transform:translateY(110%); }
.text-outline{
  -webkit-text-stroke:2px var(--text);
  color:transparent;
}

.hero-sub{
  overflow:hidden;
  margin-top:1.6rem;
  max-width:560px;
}
.hero-sub span{
  display:block;
  color:var(--text-muted);
  font-size:1.08rem;
}

.hero-actions{ overflow:hidden; margin-top:2.4rem; }
.hero-actions span{ display:flex; gap:1rem; flex-wrap:wrap; }

.hero-scroll{
  position:absolute; right:40px; bottom:120px;
  z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:.7rem;
  color:var(--text-dim);
  font-size:.72rem; letter-spacing:2px; text-transform:uppercase;
  writing-mode:vertical-rl;
}
.scroll-line{
  width:1px; height:60px;
  background:rgba(244,243,239,0.15);
  overflow:hidden;
}
.scroll-line i{
  display:block; width:100%; height:30%;
  background:var(--primary);
  animation:scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown{
  0%{ transform:translateY(-100%); }
  100%{ transform:translateY(300%); }
}

.hero-stat-strip{
  position:absolute; left:0; right:0; bottom:0;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid rgba(244,243,239,0.12);
  background:rgba(11,11,13,0.4);
  backdrop-filter:blur(6px);
}
.hero-stat{
  padding:1.4rem 1.5rem;
  border-right:1px solid rgba(244,243,239,0.12);
  text-align:center;
}
.hero-stat:last-child{ border-right:none; }
.hero-stat strong{
  display:block;
  font-family:var(--ff-display);
  font-size:2.1rem;
  color:var(--primary);
}
.hero-stat small{
  color:var(--text-muted);
  font-size:.78rem;
  letter-spacing:.5px;
}

/* ==========================================================
   GALERÍA (pinned horizontal scroll)
   ========================================================== */
#galeria{
  padding:7rem 0 0;
  background:var(--bg);
  overflow:hidden;
}
.galeria-head{ margin-bottom:3rem; }
.galeria-track{
  display:flex;
  gap:1.6rem;
  width:max-content;
  padding:0 32px 7rem;
  will-change:transform;
}
.galeria-item{
  position:relative;
  width:min(70vw, 900px);
  height:58vh;
  min-height:380px;
  flex-shrink:0;
  border-radius:var(--radius);
  overflow:hidden;
  background-size:cover;
  background-position:center;
}
.galeria-item::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.8) 100%);
}
.galeria-item span{
  position:absolute; left:1.8rem; bottom:1.5rem;
  z-index:1;
  font-family:var(--ff-display);
  font-size:1.7rem;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--text);
}

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee-section{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--bg-alt);
  overflow:hidden;
  padding:1.4rem 0;
}
.marquee-track{ display:flex; width:max-content; }
.marquee-group{
  display:flex;
  align-items:center;
  gap:1.4rem;
  padding-right:1.4rem;
  animation:marquee 28s linear infinite;
  white-space:nowrap;
}
.marquee-group span{
  font-family:var(--ff-display);
  font-size:1.3rem;
  letter-spacing:2px;
  color:var(--text-dim);
}
.marquee-group span:nth-child(odd){ color:var(--text-muted); }
@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-100%); }
}

/* ==========================================================
   SERVICIOS
   ========================================================== */
#servicios{ padding:9rem 0; }

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.4rem;
  perspective:1200px;
}
.service-card{
  background:var(--bg-alt);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:2.4rem 2rem;
  transition:border-color .4s ease, background .4s ease;
  will-change:transform;
  transform-style:preserve-3d;
}
.service-card:hover{
  border-color:rgba(255,90,31,0.4);
  background:var(--bg-alt-2);
}
.service-icon{
  width:56px; height:56px;
  color:var(--primary);
  margin-bottom:1.4rem;
}
.service-icon svg{ width:100%; height:100%; }
.service-card p{ color:var(--text-muted); font-size:.95rem; }

/* ==========================================================
   NOSOTROS
   ========================================================== */
#nosotros{ padding:9rem 0; background:var(--bg-alt); }
.nosotros-grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:5rem;
  align-items:center;
}
.nosotros-media{ position:relative; }
.parallax-img{
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:4/5;
}
.parallax-img img{
  width:100%; height:130%;
  object-fit:cover;
  will-change:transform;
}
.nosotros-badge{
  position:absolute; left:-1.5rem; bottom:-1.5rem;
  background:var(--primary);
  color:#0b0b0d;
  padding:1.4rem 1.6rem;
  border-radius:var(--radius-sm);
  max-width:200px;
}
.nosotros-badge strong{ display:block; font-family:var(--ff-display); font-size:2rem; }
.nosotros-badge span{ font-size:.78rem; font-weight:600; line-height:1.3; }

.nosotros-content p{ color:var(--text-muted); max-width:520px; margin-bottom:2rem; }

.stats-row{ display:flex; gap:2.5rem; margin-bottom:2.4rem; flex-wrap:wrap; }
.stat-box strong{
  display:block;
  font-family:var(--ff-display);
  font-size:2.4rem;
  color:var(--primary);
}
.stat-box span{ color:var(--text-muted); font-size:.85rem; }

/* ==========================================================
   VEHICULOS
   ========================================================== */
#vehiculos{ padding:9rem 0; }

.filters{
  display:flex; gap:.7rem; margin-bottom:2.6rem; flex-wrap:wrap;
}
.filter-btn{
  padding:.6rem 1.3rem;
  border:1px solid var(--line);
  border-radius:100px;
  color:var(--text-muted);
  font-size:.85rem; font-weight:500;
  transition:all .3s ease;
}
.filter-btn:hover{ color:var(--text); border-color:rgba(255,255,255,0.25); }
.filter-btn.active{ background:var(--primary); color:#0b0b0d; border-color:var(--primary); }

.vehicles-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.6rem;
  perspective:1200px;
}
.vehicle-card{
  background:var(--bg-alt);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:border-color .4s ease;
  will-change:transform;
  transform-style:preserve-3d;
}
.vehicle-card:hover{ border-color:rgba(255,90,31,0.4); }
.vehicle-card.is-hidden{ display:none; }

.vehicle-img{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.vehicle-img img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .7s var(--ease);
}
.vehicle-card:hover .vehicle-img img{ transform:scale(1.08); }
.vehicle-tag{
  position:absolute; top:1rem; left:1rem;
  background:var(--primary);
  color:#0b0b0d;
  font-size:.7rem; font-weight:700;
  letter-spacing:.5px; text-transform:uppercase;
  padding:.35rem .7rem;
  border-radius:100px;
}

.vehicle-info{ padding:1.4rem 1.5rem 1.6rem; }
.vehicle-top{ display:flex; justify-content:space-between; align-items:baseline; gap:.5rem; margin-bottom:.6rem; }
.vehicle-top h3{ font-size:1.2rem; margin:0; }
.price{ color:var(--primary); font-weight:700; font-family:var(--ff-body); white-space:nowrap; }
.vehicle-specs{ display:flex; gap:.9rem; flex-wrap:wrap; }
.vehicle-specs li{
  color:var(--text-muted);
  font-size:.78rem;
  padding:.25rem .6rem;
  background:var(--bg-alt-2);
  border-radius:100px;
}

.vehicles-cta{
  margin-top:3.5rem;
  display:flex; align-items:center; justify-content:space-between;
  gap:1.5rem; flex-wrap:wrap;
  padding-top:2.5rem;
  border-top:1px solid var(--line);
}
.vehicles-cta p{ color:var(--text-muted); max-width:420px; }

/* ==========================================================
   PROCESO
   ========================================================== */
#proceso{ padding:9rem 0; background:var(--bg-alt); }

.process-list{ display:flex; flex-direction:column; }
.process-item{
  display:flex;
  gap:2.5rem;
  align-items:flex-start;
  padding:2.2rem 0;
  border-top:1px solid var(--line);
}
.process-item:last-child{ border-bottom:1px solid var(--line); }
.process-num{
  font-family:var(--ff-display);
  font-size:2.6rem;
  color:var(--primary);
  min-width:90px;
}
.process-item h3{ margin-bottom:.4rem; }
.process-item p{ color:var(--text-muted); max-width:520px; }

/* ==========================================================
   TESTIMONIOS
   ========================================================== */
#testimonios{ padding:9rem 0; text-align:center; }
#testimonios .section-head{ margin-left:auto; margin-right:auto; text-align:center; }

.testi-slider{ max-width:720px; margin:0 auto; }
.testi-track{
  display:flex;
  transition:transform .6s var(--ease);
}
.testi-slide{
  min-width:100%;
  padding:0 1rem;
}
.testi-slide p{
  font-family:var(--ff-display);
  font-size:clamp(1.4rem,3vw,2rem);
  letter-spacing:.3px;
  line-height:1.3;
  margin-bottom:1.6rem;
  text-transform:none;
}
.testi-slide strong{ display:block; color:var(--primary); }
.testi-slide span{ color:var(--text-dim); font-size:.85rem; }

.testi-dots{ display:flex; justify-content:center; gap:.6rem; margin-top:2.2rem; }
.testi-dots button{
  width:9px; height:9px; border-radius:50%;
  background:rgba(244,243,239,0.2);
  transition:background .3s ease, transform .3s ease;
}
.testi-dots button.active{ background:var(--primary); transform:scale(1.3); }

/* ==========================================================
   CONTACTO
   ========================================================== */
#contacto{ padding:9rem 0; overflow:hidden; }
.contacto-bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:.14;
}
.contacto-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  opacity:.9;
}

.contacto-grid{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4rem;
}

.info-list{ margin:2rem 0 2.2rem; display:flex; flex-direction:column; gap:1.2rem; }
.info-list li{ display:flex; flex-direction:column; gap:.15rem; }
.info-list strong{ color:var(--primary); font-size:.78rem; letter-spacing:1.5px; text-transform:uppercase; }
.info-list span{ color:var(--text-muted); }
.info-list a:hover{ color:var(--text); }
.info-list em{ color:var(--text-dim); font-style:normal; font-size:.78rem; }

.contacto-map{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  aspect-ratio:16/9;
}
.contacto-map iframe{ width:100%; height:100%; border:0; filter:grayscale(1) invert(0.92) contrast(0.9); }

.contacto-form{
  background:var(--bg-alt);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:2.4rem;
  display:flex; flex-direction:column; gap:1.1rem;
}
.contacto-form h3{ margin-bottom:.4rem; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.contacto-form label{
  display:flex; flex-direction:column; gap:.45rem;
  font-size:.8rem; color:var(--text-muted); letter-spacing:.3px;
}
.contacto-form input,
.contacto-form select,
.contacto-form textarea{
  background:var(--bg-alt-2);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:.8rem 1rem;
  color:var(--text);
  font-size:.95rem;
  outline:none;
  transition:border-color .3s ease;
  resize:vertical;
}
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus{ border-color:var(--primary); }
.contacto-form button{ margin-top:.4rem; }
.form-note{ color:var(--text-dim); font-size:.78rem; text-align:center; }

/* ==========================================================
   FOOTER
   ========================================================== */
footer{ background:var(--bg-alt); border-top:1px solid var(--line); padding:5rem 0 0; }
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr;
  gap:3rem;
  padding-bottom:3.5rem;
}
.footer-brand p{ color:var(--text-muted); margin-top:1rem; max-width:260px; font-size:.9rem; }
.footer-col h4{
  font-size:.78rem; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--text-dim); margin-bottom:1.1rem; font-weight:600;
}
.footer-col{ display:flex; flex-direction:column; gap:.7rem; }
.footer-col a{ color:var(--text-muted); font-size:.92rem; transition:color .3s ease; }
.footer-col a:hover{ color:var(--primary); }

.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem;
  padding:1.6rem 32px;
  border-top:1px solid var(--line);
  color:var(--text-dim);
  font-size:.8rem;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width:1080px){
  .nosotros-grid{ grid-template-columns:1fr; }
  .contacto-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .vehicles-grid{ grid-template-columns:repeat(2,1fr); }
  .explore-grid{ grid-template-columns:repeat(3,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:820px){
  .hero-stat-strip{ grid-template-columns:repeat(2,1fr); }
  .hero-stat:nth-child(2){ border-right:none; }
  .hero-scroll{ display:none; }
  .section-head.split{ flex-direction:column; align-items:flex-start; }
  #galeria{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .page-banner{ min-height:36vh; padding:8.5rem 0 2.5rem; }
}

@media (max-width:640px){
  .galeria-item{ width:82vw; height:42vh; min-height:280px; }
  .galeria-track{ padding:0 20px 4rem; gap:1rem; }
  .container{ padding:0 20px; }
  .services-grid{ grid-template-columns:1fr; }
  .vehicles-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:2rem; }
  .process-item{ gap:1.4rem; }
  .process-num{ font-size:1.8rem; min-width:56px; }
  #servicios, #nosotros, #vehiculos, #proceso, #testimonios, #contacto, #explora{ padding:6rem 0; }
  .nosotros-badge{ left:1rem; bottom:1rem; }
  .explore-grid{ grid-template-columns:1fr; }
}

/* ==========================================================
   COOKIES
   ========================================================== */
.cookie-banner{
  position:fixed;
  left:20px;
  right:20px;
  bottom:20px;
  z-index:10000;
  display:none;
  max-width:1180px;
  margin:0 auto;
  padding:1px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,90,31,.6), rgba(255,255,255,.12));
  box-shadow:0 24px 80px rgba(0,0,0,.48);
}
.cookie-banner.is-visible{ display:block; }

.cookie-banner__content{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2rem;
  align-items:center;
  padding:1.45rem 1.5rem;
  border-radius:17px;
  background:rgba(20,20,22,.98);
  backdrop-filter:blur(18px);
}
.cookie-banner__copy{ max-width:720px; }
.cookie-kicker{
  display:block;
  margin-bottom:.35rem;
  color:var(--primary);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:1.8px;
  text-transform:uppercase;
}
.cookie-banner h2,
.cookie-modal h2{
  margin:0 0 .55rem;
  font-size:clamp(1.55rem,3vw,2.1rem);
}
.cookie-banner p,
.cookie-modal p{
  color:var(--text-muted);
  font-size:.88rem;
  line-height:1.6;
}
.cookie-banner a,
.cookie-modal a,
.cookie-policy-footer-link{
  color:var(--primary);
  text-decoration:underline;
  text-underline-offset:3px;
}

.cookie-banner__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.7rem;
  min-width:310px;
}
.cookie-btn{
  min-height:46px;
  padding:.78rem 1rem;
  border-radius:100px;
  font-weight:700;
  font-size:.84rem;
  transition:transform .2s ease, opacity .2s ease, background .2s ease;
}
.cookie-btn:hover{ transform:translateY(-1px); }
.cookie-btn:focus-visible,
.cookie-close:focus-visible,
.cookie-manage:focus-visible,
.cookie-switch input:focus-visible + span{
  outline:3px solid rgba(255,138,77,.55);
  outline-offset:2px;
}

/* Aceptar y rechazar tienen exactamente el mismo peso visual */
.cookie-btn-equal{
  background:var(--primary);
  color:#0b0b0d;
  border:1px solid var(--primary);
}
.cookie-btn-config{
  grid-column:1 / -1;
  border:1px solid rgba(244,243,239,.25);
  color:var(--text);
  background:transparent;
}

.cookie-modal{
  position:fixed;
  inset:0;
  z-index:10020;
  display:none;
}
.cookie-modal.is-visible{ display:block; }
.cookie-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
}
.cookie-modal__panel{
  position:absolute;
  left:50%;
  top:50%;
  width:min(680px, calc(100vw - 32px));
  max-height:min(760px, calc(100vh - 32px));
  overflow:auto;
  transform:translate(-50%,-50%);
  padding:2rem;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--bg-alt);
  box-shadow:0 30px 100px rgba(0,0,0,.6);
}
.cookie-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
.cookie-close{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:50%;
  font-size:1.6rem;
  line-height:1;
}
.cookie-modal__intro{ margin:1rem 0 1.35rem; }
.cookie-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.4rem;
  padding:1.1rem 0;
  border-top:1px solid var(--line);
}
.cookie-option strong{
  display:block;
  margin-bottom:.25rem;
  font-size:.92rem;
}
.cookie-option p{
  margin:0;
  max-width:500px;
  font-size:.8rem;
}
.cookie-always{
  flex:0 0 auto;
  color:var(--primary);
  font-size:.72rem;
  font-weight:700;
  text-align:right;
}
.cookie-switch{
  position:relative;
  flex:0 0 auto;
  width:48px;
  height:28px;
}
.cookie-switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.cookie-switch span{
  position:absolute;
  inset:0;
  border:1px solid rgba(244,243,239,.25);
  border-radius:100px;
  background:var(--bg-alt-2);
  transition:.2s ease;
}
.cookie-switch span::after{
  content:"";
  position:absolute;
  top:4px;
  left:4px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--text-muted);
  transition:.2s ease;
}
.cookie-switch input:checked + span{
  border-color:var(--primary);
  background:rgba(255,90,31,.2);
}
.cookie-switch input:checked + span::after{
  left:24px;
  background:var(--primary);
}
.cookie-modal__links{
  padding-top:1rem;
  border-top:1px solid var(--line);
  font-size:.82rem;
}
.cookie-modal__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.8rem;
  margin-top:1.3rem;
}
.cookie-manage{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:9998;
  display:none;
  padding:.58rem .9rem;
  border:1px solid rgba(255,90,31,.45);
  border-radius:100px;
  background:rgba(20,20,22,.94);
  color:var(--text-muted);
  font-size:.72rem;
  font-weight:600;
  box-shadow:0 10px 35px rgba(0,0,0,.3);
}
.cookie-manage.is-visible{ display:block; }
.cookie-manage:hover{ color:var(--primary); border-color:var(--primary); }
body.cookie-modal-open{ overflow:hidden; }

.cookie-policy-footer-link{
  font-size:.8rem;
}

.legal-page{
  padding:10rem 0 7rem;
}
.legal-page__inner{
  max-width:850px;
}
.legal-page .tag{ margin-bottom:.7rem; }
.legal-page h1{
  font-size:clamp(2.8rem,7vw,5.5rem);
  margin-bottom:1.2rem;
}
.legal-page h2{
  margin-top:3rem;
  font-size:clamp(1.8rem,4vw,2.6rem);
}
.legal-page h3{
  margin-top:1.8rem;
  font-size:1.25rem;
}
.legal-page p,
.legal-page li{
  color:var(--text-muted);
  margin-bottom:1rem;
}
.legal-page ul{
  list-style:disc;
  padding-left:1.4rem;
}
.legal-table-wrap{
  overflow-x:auto;
  margin:1.5rem 0;
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.legal-table{
  width:100%;
  min-width:700px;
  border-collapse:collapse;
  font-size:.84rem;
}
.legal-table th,
.legal-table td{
  padding:1rem;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.legal-table th{
  color:var(--text);
  background:var(--bg-alt);
}
.legal-table td{ color:var(--text-muted); }
.legal-table tr:last-child td{ border-bottom:none; }

@media (max-width:760px){
  .cookie-banner{
    left:10px;
    right:10px;
    bottom:10px;
  }
  .cookie-banner__content{
    grid-template-columns:1fr;
    gap:1rem;
    padding:1.15rem;
  }
  .cookie-banner__actions{ min-width:0; }
  .cookie-modal__panel{ padding:1.35rem; }
  .cookie-option{ align-items:flex-start; }
}
@media (max-width:480px){
  .cookie-banner__actions,
  .cookie-modal__actions{
    grid-template-columns:1fr;
  }
  .cookie-btn-config{ grid-column:auto; }
}


/* ==========================================================
   CATÁLOGO + FICHAS DE VEHÍCULOS
   ========================================================== */
.vehicle-list-banner .page-banner-bg{ background-position:center 42%; }

.vehicles-grid--catalog{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.vehicle-card--catalog{
  height:100%;
}
.vehicle-card__link{
  display:flex;
  flex-direction:column;
  height:100%;
}
.vehicle-card--catalog .vehicle-img{
  aspect-ratio:16/10;
  background:var(--bg-alt-2);
}
.vehicle-card--catalog .vehicle-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.vehicle-card--catalog .vehicle-info{
  display:flex;
  flex-direction:column;
  flex:1;
}
.vehicle-card--catalog .vehicle-top{
  align-items:flex-start;
  margin-bottom:1rem;
}
.vehicle-card--catalog .vehicle-top h3{
  max-width:70%;
  line-height:1.08;
}
.vehicle-card__quick{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.55rem;
  margin-top:auto;
}
.vehicle-card__quick li{
  display:flex;
  flex-direction:column;
  gap:.15rem;
  min-width:0;
  padding:.7rem .65rem;
  background:var(--bg-alt-2);
  border-radius:var(--radius-sm);
}
.vehicle-card__quick span{
  color:var(--text-dim);
  font-size:.65rem;
  text-transform:uppercase;
  letter-spacing:.6px;
}
.vehicle-card__quick strong{
  color:var(--text);
  font-size:.78rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.vehicle-card__cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid var(--line);
  color:var(--primary);
  font-size:.82rem;
  font-weight:700;
}
.vehicle-card--catalog:hover .vehicle-card__cta span{
  transform:translateX(4px);
}
.vehicle-card__cta span{ transition:transform .25s ease; }

.vehicle-detail-hero{
  padding:10rem 0 3rem;
  background:linear-gradient(180deg,var(--bg-alt),var(--bg));
  border-bottom:1px solid var(--line);
}
.vehicle-back{
  display:inline-block;
  margin-bottom:2.5rem;
  color:var(--text-muted);
  font-size:.85rem;
}
.vehicle-back:hover{ color:var(--primary); }
.vehicle-detail-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:3rem;
}
.vehicle-detail-heading h1{
  max-width:900px;
  font-size:clamp(3rem,7vw,6rem);
}
.vehicle-detail-heading p{
  max-width:720px;
  margin-top:1rem;
  color:var(--text-muted);
}
.vehicle-detail-price{
  min-width:190px;
  padding:1.3rem 1.5rem;
  border:1px solid rgba(255,90,31,.35);
  border-radius:var(--radius);
  background:rgba(255,90,31,.08);
  text-align:right;
}
.vehicle-detail-price span{
  display:block;
  color:var(--text-muted);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:1px;
}
.vehicle-detail-price strong{
  display:block;
  margin-top:.2rem;
  color:var(--primary);
  font-size:1.7rem;
}
.vehicle-summary-strip{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  margin-top:3rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--bg-alt);
}
.vehicle-summary-strip div{
  padding:1rem 1.15rem;
  border-right:1px solid var(--line);
}
.vehicle-summary-strip div:last-child{ border-right:0; }
.vehicle-summary-strip span{
  display:block;
  color:var(--text-dim);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.7px;
}
.vehicle-summary-strip strong{
  display:block;
  margin-top:.25rem;
  font-size:.9rem;
}

.vehicle-detail-content{ padding:4rem 0 8rem; }
.vehicle-gallery{
  margin-bottom:4rem;
}
.vehicle-gallery__main{
  position:relative;
  height:min(68vh,720px);
  min-height:420px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--bg-alt);
}
.vehicle-gallery__main img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#0a0a0b;
}
.vehicle-gallery__counter{
  position:absolute;
  right:1rem;
  bottom:1rem;
  padding:.45rem .75rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:100px;
  background:rgba(11,11,13,.78);
  backdrop-filter:blur(10px);
  color:var(--text-muted);
  font-size:.72rem;
}
.vehicle-gallery__thumbs{
  display:flex;
  gap:.7rem;
  overflow-x:auto;
  padding:.85rem .1rem .25rem;
  scrollbar-width:thin;
}
.vehicle-thumb{
  flex:0 0 104px;
  width:104px;
  height:76px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  opacity:.58;
  transition:opacity .2s ease,border-color .2s ease,transform .2s ease;
}
.vehicle-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.vehicle-thumb:hover,
.vehicle-thumb.is-active{
  opacity:1;
  border-color:var(--primary);
}
.vehicle-thumb.is-active{ transform:translateY(-2px); }

.vehicle-detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:3rem;
  align-items:start;
}
.vehicle-detail-specs{
  display:flex;
  flex-direction:column;
  gap:1.4rem;
}
.vehicle-spec-block{
  padding:1.6rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--bg-alt);
}
.vehicle-spec-block h2{
  margin-bottom:1.2rem;
  font-size:1.75rem;
}
.vehicle-spec-table{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 2rem;
}
.vehicle-spec-row{
  display:flex;
  justify-content:space-between;
  gap:1.5rem;
  padding:.8rem 0;
  border-top:1px solid var(--line);
}
.vehicle-spec-row span{
  color:var(--text-muted);
  font-size:.82rem;
}
.vehicle-spec-row strong{
  max-width:58%;
  text-align:right;
  font-size:.84rem;
  font-weight:600;
}
.vehicle-notes ul{
  list-style:disc;
  padding-left:1.2rem;
}
.vehicle-notes li{
  margin:.55rem 0;
  color:var(--text-muted);
  font-size:.86rem;
}
.vehicle-contact-card{
  position:sticky;
  top:100px;
  padding:1.7rem;
  border:1px solid rgba(255,90,31,.3);
  border-radius:var(--radius);
  background:var(--bg-alt);
}
.vehicle-contact-card h2{
  margin-bottom:.8rem;
  font-size:2.2rem;
}
.vehicle-contact-card p{
  margin-bottom:1.4rem;
  color:var(--text-muted);
  font-size:.88rem;
}
.vehicle-contact-card .btn{
  width:100%;
  justify-content:center;
  margin-bottom:.7rem;
}
.vehicle-contact-card small{
  display:block;
  margin-top:.6rem;
  color:var(--text-dim);
  text-align:center;
}

@media (max-width:1080px){
  .vehicles-grid--catalog{ grid-template-columns:repeat(2,1fr); }
  .vehicle-detail-grid{ grid-template-columns:1fr; }
  .vehicle-contact-card{ position:static; }
}
@media (max-width:820px){
  .vehicle-detail-heading{ grid-template-columns:1fr; }
  .vehicle-detail-price{ width:100%; text-align:left; }
  .vehicle-summary-strip{ grid-template-columns:repeat(2,1fr); }
  .vehicle-summary-strip div{ border-bottom:1px solid var(--line); }
  .vehicle-summary-strip div:nth-child(2n){ border-right:0; }
  .vehicle-summary-strip div:last-child{ border-bottom:0; }
  .vehicle-gallery__main{ min-height:330px; height:54vh; }
  .vehicle-spec-table{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .vehicles-grid--catalog{ grid-template-columns:1fr; }
  .vehicle-card__quick{ grid-template-columns:1fr 1fr 1fr; }
  .vehicle-detail-hero{ padding-top:8rem; }
  .vehicle-summary-strip{ grid-template-columns:1fr 1fr; }
  .vehicle-gallery__main{ min-height:280px; height:46vh; }
  .vehicle-thumb{ flex-basis:88px; width:88px; height:66px; }
}



/* ==========================================================
   IBEROTRUCKS 2026 — dropdown de equipamiento y catálogo
   ========================================================== */
.nav-dropdown{ position:relative; display:flex; align-items:center; }
.nav-dropdown-toggle{
  position:relative; display:inline-flex; align-items:center; gap:.35rem;
  padding:0; border:0; background:transparent; color:var(--text-muted);
  font:inherit; cursor:pointer; transition:color .3s ease;
}
.nav-dropdown-toggle::after{
  content:""; position:absolute; left:0; bottom:-4px; width:0; height:1px;
  background:var(--primary); transition:width .35s var(--ease);
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active, .nav-dropdown:focus-within .nav-dropdown-toggle{ color:var(--text); }
.nav-dropdown-toggle:hover::after, .nav-dropdown-toggle.active::after, .nav-dropdown:focus-within .nav-dropdown-toggle::after{ width:100%; }
.nav-dropdown-toggle span{ color:var(--primary); font-size:.9em; transition:transform .25s ease; }
.nav-dropdown-menu{
  position:absolute; top:calc(100% + 16px); left:-18px; min-width:260px;
  padding:.7rem; border:1px solid var(--line); border-radius:var(--radius-sm);
  background:rgba(17,17,20,.97); backdrop-filter:blur(14px);
  opacity:0; visibility:hidden; transform:translateY(-8px); pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}
.nav-dropdown-menu::before{ content:""; position:absolute; left:0; right:0; top:-18px; height:18px; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.is-open .nav-dropdown-menu{
  opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto;
}
.nav-dropdown:hover .nav-dropdown-toggle span, .nav-dropdown.is-open .nav-dropdown-toggle span{ transform:rotate(180deg); }
.nav-dropdown-menu a{ display:block; padding:.72rem .8rem; border-radius:8px; white-space:nowrap; }
.nav-dropdown-menu a::after{ display:none; }
.nav-dropdown-menu a:hover{ background:var(--bg-alt-2); color:var(--text); }
.mobile-menu-group{ display:flex; flex-direction:column; align-items:center; gap:.65rem; }
.mobile-menu-label{ font-family:var(--ff-display); font-size:1.25rem; letter-spacing:1px; color:var(--primary); }
.mobile-menu a.mobile-sub-link{ font-family:var(--ff-body); font-size:.95rem; letter-spacing:0; color:var(--text-muted); }
#como-trabajamos{ padding:9rem 0; background:var(--bg-alt); }
.catalog-section{ padding:7rem 0; scroll-margin-top:110px; }
.catalog-section--alt{ background:var(--bg-alt); }
#equipamiento-intro .service-card h3{ margin-bottom:.65rem; }
@media (max-width:820px){
  .mobile-menu{ gap:1rem; padding:5.5rem 1.25rem 2rem; overflow-y:auto; }
}
@media (max-width:640px){
  #como-trabajamos, .catalog-section{ padding:6rem 0; }
}


/* ==========================================================
   KYVOS QA — navegación responsive + formulario legal + 404
   ========================================================== */
/* Con el nuevo desplegable, la navegación completa necesita más ancho.
   Antes de que pueda colisionar o superponerse, pasamos al menú burger. */
@media (max-width:1180px){
  .nav-links, .nav-cta{ display:none; }
  #burger{ display:flex; }
}

.form-honeypot{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  white-space:nowrap !important;
}
.privacy-check{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:.75rem;
  align-items:start;
  margin:.35rem 0 .55rem;
  color:var(--text-muted);
  font-size:.82rem;
  line-height:1.5;
  cursor:pointer;
}
.privacy-check input{
  width:18px;
  height:18px;
  margin-top:.1rem;
  accent-color:var(--primary);
}
.privacy-check a{
  color:var(--text);
  text-decoration:underline;
  text-decoration-color:rgba(255,90,31,.65);
  text-underline-offset:3px;
}
.privacy-check a:hover{ color:var(--primary); }

.legal-notice{
  margin:1.5rem 0;
  padding:1rem 1.1rem;
  border:1px solid var(--line);
  border-left:3px solid var(--primary);
  border-radius:var(--radius-sm);
  background:var(--bg-alt-2);
  color:var(--text-muted);
}
.legal-data{
  display:grid;
  grid-template-columns:minmax(140px,.35fr) 1fr;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  overflow:hidden;
  margin:1.5rem 0 2rem;
}
.legal-data dt,
.legal-data dd{
  padding:.85rem 1rem;
  border-bottom:1px solid var(--line);
}
.legal-data dt{
  font-weight:700;
  color:var(--text);
  background:rgba(255,255,255,.02);
}
.legal-data dd{ color:var(--text-muted); }
.legal-data dt:last-of-type,
.legal-data dd:last-of-type{ border-bottom:0; }

.error-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:10rem 0 7rem;
  overflow:hidden;
}
.error-page::before{
  content:"404";
  position:absolute;
  right:-.03em;
  bottom:-.18em;
  font-family:var(--ff-display);
  font-size:clamp(14rem,38vw,38rem);
  line-height:.75;
  color:rgba(255,255,255,.025);
  pointer-events:none;
}
.error-page__content{ position:relative; z-index:2; max-width:780px; }
.error-page__code{
  color:var(--primary);
  font-family:var(--ff-display);
  font-size:clamp(5rem,14vw,10rem);
  line-height:.8;
  margin-bottom:1.2rem;
}
.error-page h1{ font-size:clamp(3rem,8vw,6.5rem); margin-bottom:1rem; }
.error-page p{ max-width:620px; color:var(--text-muted); font-size:1.05rem; }
.error-page__actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:2rem; }

@media (max-width:640px){
  .legal-data{ grid-template-columns:1fr; }
  .legal-data dt{ border-bottom:0; padding-bottom:.2rem; }
  .legal-data dd{ padding-top:.2rem; }
  .error-page{ padding-top:8rem; }
}


/* === IBEROTRUCKS BRAND ASSETS === */
.logo{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  line-height:0;
}
.brand-logo-img{
  display:block;
  width:clamp(148px, 13vw, 190px);
  height:auto;
  max-height:54px;
  object-fit:contain;
}
.preloader-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:82px;
}
.preloader-logo-img{
  display:block;
  width:min(330px, 70vw);
  height:auto;
  max-height:150px;
  object-fit:contain;
}
.footer-brand .brand-logo-img{
  width:min(230px, 78vw);
  max-height:none;
}
@media (max-width: 900px){
  .brand-logo-img{ width:148px; max-height:46px; }
}
@media (max-width: 520px){
  .brand-logo-img{ width:132px; max-height:42px; }
  .preloader-logo-img{ width:min(280px, 76vw); }
}


/* === FIX: ghost mobile menu while the sticky header hides on scroll ===
   The old header transform made the fixed mobile menu use the header as its
   containing block, so the last menu items could leak into the viewport. */
.mobile-menu{
  visibility:hidden;
  pointer-events:none;
  overflow:hidden;
}
.mobile-menu.open{
  visibility:visible;
  pointer-events:auto;
  overflow-y:auto;
}
@media (min-width:1181px){
  .mobile-menu{ display:none !important; }
}
