/* =====================================================
   TK Noroeste — estética industrial sobria
   Distribuidor autorizado Thermo King
   ===================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --bg-dark: #181e24;
  --bg-darker: #10141a;
  --line: #e0e2e6;
  --line-dark: #2a323b;
  --text: #181e24;
  --text-on-dark: #f4f4f6;
  --muted: #6b7180;
  --muted-on-dark: #a0a8b4;
  --accent: #0099d8;
  --accent-deep: #006aa8;
  --accent-on-dark: #29b3ec;
  --warn: #c10f1b;
  --ok: #2d8a4e;

  --font-display: "Barlow Condensed", "Oswald", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --max: 1280px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
}

/* ------- reset ------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0; padding: 12px 18px;
  background: var(--accent); color: #fff; font-weight: 600; z-index: 1000;
}
.skip:focus { left: 16px; top: 16px; }

/* ------- utilities ------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.bg-dark .eyebrow { color: var(--accent-on-dark); }

/* ------- buttons ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,153,216,0.06); }

/* botones ghost sobre fondo oscuro */
.hero .btn--ghost,
.section--dark .btn--ghost,
.spotlight .btn--ghost,
.ficha__cta .btn--ghost {
  border-color: rgba(255,255,255,0.45);
  color: #ffffff;
  background: rgba(255,255,255,0.05);
}
.hero .btn--ghost:hover,
.section--dark .btn--ghost:hover,
.spotlight .btn--ghost:hover,
.ficha__cta .btn--ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255,255,255,0.12);
}

/* eyebrows sobre fondo oscuro */
.section--dark .eyebrow,
.spotlight .eyebrow,
.hero .eyebrow { color: var(--accent-on-dark); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 32px; font-size: 1.1rem; }

/* ====================== HEADER ====================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 14px var(--gutter);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: padding .25s ease;
}
.site-header.is-scrolled { padding: 10px var(--gutter); }

.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  color: var(--text);
}
.brand__logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand .brand__sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
/* En footer (fondo oscuro), pegar fondo blanco al logo */
.brand--on-dark .brand__logo {
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  height: 38px;
}
.brand--on-dark .brand__sub { color: var(--muted-on-dark); }

.nav { display: flex; gap: 1.6rem; justify-content: center; }
.nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 6px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--accent); }

.header__cta { justify-self: end; }

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

@media (max-width: 940px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--gutter);
    gap: 0.5rem;
  }
  .header__cta { display: none; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand__logo { height: 34px; }
  .brand .brand__sub { font-size: 0.6rem; letter-spacing: 0.14em; }
  .nav {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column;
    background: var(--bg);
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0;
    transform: translateY(-100%);
    transition: transform .35s ease, visibility .35s;
    visibility: hidden;
    pointer-events: none;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,.15);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
}
@media (max-width: 540px) {
  .brand__logo { height: 28px; }
  .brand .brand__sub { font-size: 0.55rem; letter-spacing: 0.12em; }
  .site-header { padding: 8px var(--gutter); }
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 7rem var(--gutter) 4rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
  display: grid;
  align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("assets/img/hero-tk.jpg");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.55;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,20,26,0.85) 0%, rgba(16,20,26,0.45) 50%, rgba(16,20,26,0.95) 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
}
.hero__content { max-width: 60ch; }
.hero__pre {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--accent-on-dark);
  color: var(--accent-on-dark);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.hero h1 strong { color: var(--accent-on-dark); font-weight: 700; }
.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted-on-dark);
  margin: 0 0 2rem;
  max-width: 56ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__sucursales {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
}
.hero__sucursales h3 {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin: 0 0 0.4rem;
  font-weight: 500;
}
.hero__sucursales > div {
  display: flex; flex-direction: column; gap: 2px;
}
.hero__sucursales strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
}
.hero__sucursales a {
  font-size: 0.9rem; color: var(--muted-on-dark);
  transition: color .15s;
}
.hero__sucursales a:hover { color: var(--accent-on-dark); }

@media (max-width: 940px) {
  .hero { min-height: auto; padding-top: 5.5rem; padding-bottom: 3rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__bg { opacity: 0.3; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 2.2rem; }
  .hero__sucursales { grid-template-columns: 1fr; }
  .hero__pre { font-size: 0.7rem; }
  .section { padding: 3rem var(--gutter); }
  .section-head { margin-bottom: 2rem; }
  .section-head h2 { font-size: 1.8rem; }
  .ficha__head h1 { font-size: 2.2rem; }
}

/* ====================== AUTORIZADO BAR ====================== */
.autorizado {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--gutter);
}
.autorizado__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.autorizado p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.autorizado img { max-height: 32px; width: auto; }

/* ====================== SECTION HEAD ====================== */
.section {
  padding: var(--section-y) var(--gutter);
}
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark); color: var(--text-on-dark);
}
.section__inner {
  max-width: var(--max); margin: 0 auto;
}
.section-head {
  margin-bottom: 3rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}
.section--dark .section-head p { color: var(--muted-on-dark); }

/* ====================== INTRO + PRODUCT FAMILIES ====================== */
.families {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.family {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.family:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,.15);
}
.family__media {
  background: #f0f0f2;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.family__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem;
}
.family__body { padding: 1.5rem 1.5rem 1.6rem; }
.family__cat {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.family h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.family p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1rem;
  min-height: 3em;
}
.family__models {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 1rem;
}
.family__models li {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
}

@media (max-width: 940px) {
  .families { grid-template-columns: 1fr; }
}

/* ====================== V500X SPOTLIGHT ====================== */
.spotlight {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.spotlight__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.spotlight__image {
  background: #ffffff;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.spotlight__image img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem;
}
.spotlight__pre {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.spotlight h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.6rem;
}
.spotlight h2 .accent { color: var(--accent-on-dark); }
.spotlight h2 .strike {
  position: relative; color: var(--muted-on-dark);
  font-weight: 500;
  margin-right: 0.4em;
}
.spotlight h2 .strike::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 52%;
  height: 4px; background: var(--accent-on-dark);
}
.spotlight__lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted-on-dark);
  margin: 0 0 1.75rem;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.specs li {
  padding: 1.2rem 1.2rem;
  background: var(--bg-darker);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.specs li:nth-child(2n) { border-right: 0; }
.specs li:nth-last-child(-n+2) { border-bottom: 0; }
.specs__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-on-dark);
  line-height: 1;
}
.specs__num small {
  font-size: 0.5em;
  color: var(--text-on-dark);
  margin-left: 4px;
  font-weight: 500;
}
.specs__label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

.spotlight__features {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
}
.spotlight__features h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin: 0 0 0.8rem;
  font-weight: 600;
}
.spotlight__features ul {
  display: grid; gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.spotlight__features li {
  position: relative; padding-left: 1.4rem;
  color: var(--muted-on-dark);
  line-height: 1.5;
  font-size: 0.95rem;
}
.spotlight__features li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--accent-on-dark);
}
.spotlight__features b { color: var(--text-on-dark); font-weight: 600; }
.spotlight__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 940px) {
  .spotlight__inner { grid-template-columns: 1fr; gap: 2rem; }
  .spotlight__image { aspect-ratio: 16 / 10; }
}

/* ====================== PRODUCTOS GRID ====================== */
.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.12);
}
.product-card__media {
  background: #f0f0f2;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.6rem;
}
.product-card__body {
  padding: 1.2rem 1.2rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  flex-grow: 1;
}
.product-card__cat {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.product-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}
.product-card__link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.4rem;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s;
}
.product-card__link:hover { border-color: var(--accent); }

.product-card.is-featured {
  border-color: var(--accent);
  border-width: 2px;
}
.product-card__tag {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.product-card__media-wrap { position: relative; }

/* filter buttons */
.filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active {
  background: var(--text); color: #fff; border-color: var(--text);
}

/* ====================== SERVICIOS ====================== */
.services-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.services-grid__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.services-list {
  display: grid; gap: 1rem;
}
.services-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.services-list li:last-child { border-bottom: 0; }
.services-list .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 50px;
}
.services-list h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}
.services-list p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 940px) {
  .services-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ====================== SUCURSALES ====================== */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.branch {
  padding: 1.6rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color .2s, transform .2s;
}
.section--alt .branch { background: #fff; }
.branch:hover { border-color: var(--accent); transform: translateY(-2px); }
.branch h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0;
}
.branch__location {
  font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin: 0;
}
.branch__contact {
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  margin: 0.4rem 0 0.6rem;
}
.branch__contact a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
}
.branch__contact a:hover { color: var(--accent); }
.branch__contact .urgent a { color: var(--warn); font-weight: 600; }
.branch__hours {
  margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5;
}

@media (max-width: 940px) {
  .branches-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .branches-grid { grid-template-columns: 1fr; }
}

/* ====================== CONTACT ====================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact__direct {
  margin-top: 2rem;
  display: grid; gap: 0.8rem;
}
.contact__direct li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.section--dark .contact__direct li { background: rgba(255,255,255,0.04); }
.contact__direct span {
  font-family: var(--font-display);
  font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.contact__direct a {
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}
.contact__direct a:hover { color: var(--accent-on-dark); }

.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  align-content: start;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-on-dark);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  padding: 13px 14px;
  background: rgba(0,0,0,0.25);
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-on-dark);
  background: rgba(0,0,0,0.4);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%2329b3ec' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 36px;
}
.form__note {
  margin: 0.5rem 0 0; min-height: 1.2em;
  font-size: 0.9rem;
}
.form__note a { color: var(--accent-on-dark); text-decoration: underline; }

/* honeypot — invisible para humanos */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

@media (max-width: 940px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact__form { grid-template-columns: 1fr; padding: 1.5rem; }
}

/* ====================== FOOTER ====================== */
.footer {
  background: var(--bg-darker);
  color: var(--text-on-dark);
  padding: 4rem var(--gutter) 1.5rem;
}
.footer__top {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
}
.footer__brand p {
  color: var(--muted-on-dark);
  max-width: 36ch;
  margin-top: 1rem;
  line-height: 1.55;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer__col a {
  display: block;
  color: var(--muted-on-dark);
  padding: 4px 0;
  font-size: 0.95rem;
  transition: color .15s;
}
.footer__col a:hover { color: var(--accent-on-dark); }
.footer__legal {
  max-width: var(--max); margin: 3rem auto 0;
  border-top: 1px solid var(--line-dark);
  padding: 2rem 0 1.5rem;
}
.footer__legal-aessa {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.footer__legal-aessa small {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.footer__legal-aessa img {
  max-height: 44px;
  width: auto;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
}

.footer__bottom {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
  color: var(--muted-on-dark);
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

/* ====================== FICHA TÉCNICA ====================== */
.page-ficha { padding-top: 70px; background: var(--bg); }

.ficha {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}

.ficha__crumbs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.ficha__crumbs a { color: var(--accent); }
.ficha__crumbs a:hover { text-decoration: underline; }
.ficha__crumbs .sep { opacity: 0.5; }

.ficha__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--text);
  margin-bottom: 2.5rem;
}
.ficha__head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0.5rem 0 0.8rem;
}
.ficha__lede {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
  font-size: 1.05rem;
}
.ficha__actions {
  display: flex; flex-direction: column; gap: 0.5rem;
  align-items: flex-end;
}
.ficha__actions .btn { width: max-content; }

@media (max-width: 720px) {
  .ficha__head { grid-template-columns: 1fr; align-items: start; }
  .ficha__actions { align-items: stretch; flex-direction: row; flex-wrap: wrap; }
}

.ficha__models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.ficha-model {
  text-align: left;
  padding: 1rem 1.2rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .2s, transform .2s, background .2s;
}
.ficha-model:hover { border-color: var(--accent); transform: translateY(-1px); }
.ficha-model.is-active {
  border-color: var(--accent);
  background: rgba(0,153,216,0.06);
  border-width: 2px;
  padding: calc(1rem - 1px) calc(1.2rem - 1px) calc(1.1rem - 1px);
}
.ficha-model span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ficha-model.is-active span { color: var(--accent); }
.ficha-model strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ficha-model small {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.ficha__specs {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem 2rem;
  margin-bottom: 2.5rem;
}
.ficha__specs h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
  font-weight: 600;
}
.ficha-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.ficha-specs-grid > div {
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ficha-specs-grid dt {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.ficha-specs-grid dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.ficha__viewer header {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
}
.ficha__viewer h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0;
}
.ficha__viewer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.pdf-viewer {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  background:
    repeating-linear-gradient(45deg, var(--bg-alt) 0 18px, #ebebef 18px 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pdf-viewer.is-loaded {
  background: #f4f1ea;
  display: block;
}
.pdf-viewer iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
.pdf-load {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.6rem;
  width: min(90%, 380px);
  padding: 2.4rem 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.2);
}
.pdf-load:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pdf-load__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.pdf-load__icon svg { width: 26px; height: 26px; }
.pdf-load__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
}
.pdf-load__hint {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ficha__cta {
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.ficha__cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.ficha__cta p { color: var(--muted-on-dark); margin: 0; }
.ficha__cta-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .ficha__cta { grid-template-columns: 1fr; padding: 1.6rem; }
  .pdf-viewer { height: 70vh; min-height: 460px; }
}

/* ====================== REVEAL DEFAULT ====================== */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}
