/* ============================================================
   CARACOL GARAGE — v2 Stylesheet
   Mecánica con Alma
   ============================================================ */

/* Native cross-document view transitions between pages (progressive enhancement) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Design Tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f7f6f4;
  --color-bg-card: #f5f5f4;
  --color-ink: #0a0a0a;
  --color-ink-soft: #333333;
  --color-muted: #767672;
  --color-border: #e8e6e1;
  --color-accent: #c8a961;
  --color-accent-hover: #dfc07a;
  --color-accent-dark: #a88b3d;
  --color-accent-a11y: #826d3f; /* WCAG AA-compliant (4.99:1 on white) for small gold text on light backgrounds */
  --color-success: #27ae60;
  --color-error: #c0392b;

  --font-display: 'Alfa Slab One', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Montserrat', var(--font-body);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-md: 0 10px 30px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 10, 10, 0.12);
  --shadow-glow: 0 0 0 3px rgba(200, 169, 97, 0.15);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s ease;
  --t-base: 0.35s var(--ease-out);
  --t-slow: 0.7s var(--ease-out);

  --container: 1280px;
  --container-wide: 1440px;
  --header-h: 132px;
}

@media (max-width: 767px) {
  :root { --header-h: 106px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10000;
  transition: top var(--t-fast);
}

.skip-link:focus { top: 1rem; }

/* ---------- Typography helpers ---------- */
.display-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 0.7px var(--color-ink);
}

.page-hero__title .outline-text {
  -webkit-text-stroke: 0.7px #ffffff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-ink);
  background: var(--color-ink);
  color: #fff;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn:hover, .btn:focus-visible {
  background: #fff;
  color: var(--color-ink);
}

.btn--light {
  border-color: #fff;
  background: #fff;
  color: var(--color-ink);
}

.btn--light:hover, .btn--light:focus-visible {
  background: transparent;
  color: #fff;
}

.btn--gold {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-ink);
}

.btn--gold:hover, .btn--gold:focus-visible {
  background: transparent;
  color: var(--color-accent);
}

.btn--outline {
  border-color: var(--color-ink);
  background: transparent;
  color: var(--color-ink);
}

.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--color-ink);
  color: #fff;
}

.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 65%, transparent 100%);
  pointer-events: none;
}

.header-inner {
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.brand-logo { display: flex; align-items: center; gap: 0.75rem; margin-top: 14px; }

.brand-logo img {
  height: 112px;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
  .brand-logo img { height: 82px; }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: #fff;
  transition: transform var(--t-base), opacity var(--t-base), background var(--t-fast);
  transform-origin: center;
}

.hamburger.is-active span { background: #fff; }

.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Fullscreen mobile/main nav ---------- */
.site-nav {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav.is-active { opacity: 1; pointer-events: auto; }

.nav-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  height: 100%;
  max-height: 620px;
  padding: 0 4%;
}

.nav-panel-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), color var(--t-fast);
}

.site-nav.is-active .nav-link { opacity: 1; transform: translateY(0); }

.site-nav.is-active .nav-link:nth-child(1) { transition-delay: 0.08s; }
.site-nav.is-active .nav-link:nth-child(2) { transition-delay: 0.14s; }
.site-nav.is-active .nav-link:nth-child(3) { transition-delay: 0.2s; }
.site-nav.is-active .nav-link:nth-child(4) { transition-delay: 0.26s; }
.site-nav.is-active .nav-link:nth-child(5) { transition-delay: 0.32s; }
.site-nav.is-active .nav-link:nth-child(6) { transition-delay: 0.38s; }
.site-nav.is-active .nav-link:nth-child(7) { transition-delay: 0.44s; }

.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-accent); }

.nav-signature {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 0.5s;
  text-align: center;
}

.site-nav.is-active .nav-signature { opacity: 1; }

.nav-signature p {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 2.4vw, 0.8rem);
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .nav-panel { padding: 100px 8% 32px; overflow-y: auto; }
  .nav-panel-links { gap: 10px; }
  .nav-link { font-size: 1.6rem; }
  .nav-signature { margin-top: 1.5rem; padding-top: 1rem; }
}

/* ============================================================
   HERO — VIDEO (Home)
   ============================================================ */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.hero-video__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-video__media {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
  z-index: 1;
}

.hero-video__overlay {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2% 5% 5%;
}

.hero-video__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-video__services { margin-bottom: 20px; }

.hero-video__word {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8.5vh, 5.5rem);
  line-height: 0.85;
  color: #fff;
  text-transform: uppercase;
  opacity: 0;
  animation: revealWord 1.1s var(--ease-out) forwards;
}

.hero-video__word:nth-child(1) { animation-delay: 0.15s; }
.hero-video__word:nth-child(2) { animation-delay: 0.35s; }
.hero-video__word:nth-child(3) { animation-delay: 0.55s; }
.hero-video__word:nth-child(4) { animation-delay: 0.75s; }

@keyframes revealWord {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-video__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hero-video__address p {
  font-family: var(--font-ui);
  font-size: clamp(0.8rem, 1vh, 1rem);
  color: #fff;
  line-height: 1.3;
}

.hero-video__contact {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 0.9vw, 0.9rem);
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-video__contact .dot { margin: 0 8px; }

.hero-video__socials { display: flex; gap: 22px; margin-top: 6px; }
.hero-video__socials a { color: #fff; transition: transform var(--t-fast); }
.hero-video__socials a:hover { transform: scale(1.12); }
.hero-video__socials svg { width: 22px; height: 22px; }

.hero-video__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
  transition: opacity var(--t-base);
}

.hero-video__scroll.is-hidden { opacity: 0 !important; pointer-events: none; }

.hero-video__scroll-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero-video__scroll-pill {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.hero-video__scroll-pill::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: 0.3; top: 20px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 767px) {
  .hero-video__overlay { justify-content: center; padding: 0 20px 92px; }
  .hero-video__content { align-items: center; text-align: center; transform: translateY(10px); }
  .hero-video__services { margin-bottom: 14px; }
  .hero-video__word { font-size: clamp(1.6rem, 9vw, 2.4rem); line-height: 0.85; }
  .hero-video__footer { align-items: center; gap: 10px; }
  .hero-video__contact { flex-direction: column; gap: 5px; }
  .hero-video__contact .dot { display: none; }
  .hero-video__scroll { bottom: 14px; }
  .hero-video__scroll-label { display: none; }
}

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  text-align: center;
}

.page-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.62) contrast(1.05);
  z-index: 0;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.3) 60%, rgba(10,10,10,0.5) 100%);
}

.page-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-hero .container {
  position: relative;
  z-index: 3;
}

.page-hero__title {
  font-size: clamp(2.1rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 1.1rem;
}

.page-hero__subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  color: #ccc;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   BRAND MARQUEE
   ============================================================ */
.marquee {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.marquee__track { display: flex; }

.marquee__content {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}

.marquee__content--reverse { animation-name: marquee-reverse; animation-duration: 34s; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 20px;
}

.marquee__logo {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee__logo img { max-width: 100%; max-height: 70%; object-fit: contain; }

@media (max-width: 767px) {
  .marquee__logo { width: 80px; height: 40px; }
  .marquee__label { font-size: 9px; }
  .marquee__content { gap: 25px; }
}

/* ============================================================
   EDITORIAL SPLIT SECTION
   ============================================================ */
.editorial { background: #fff; overflow: hidden; }

.editorial__grid { display: flex; flex-wrap: wrap; }

.editorial--reversed .editorial__grid { flex-direction: row-reverse; }

.editorial__panel {
  flex: 0 0 50%;
  width: 50%;
  aspect-ratio: 1 / 1;
  position: relative;
}

.editorial__text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
}

.editorial__text-inner { max-width: 440px; width: 100%; }

.editorial__title { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 1.5rem; }

.editorial__body {
  font-family: var(--font-ui);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.editorial__text-inner .btn {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

.editorial__brand { font-family: var(--font-display); font-size: 0.9em; }

.editorial__tagline {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.editorial__media { background: #000; }

.editorial__visual {
  background: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial__fade {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: editorialFade 16s infinite ease-in-out;
}

.editorial__fade:nth-child(1) { animation-delay: 0s; }
.editorial__fade:nth-child(2) { animation-delay: 4s; }
.editorial__fade:nth-child(3) { animation-delay: 8s; }
.editorial__fade:nth-child(4) { animation-delay: 12s; }

@keyframes editorialFade {
  0% { opacity: 0; }
  5%, 25% { opacity: 1; }
  35%, 100% { opacity: 0; }
}

/* 3-image variant: wider overlap windows so no two images ever fully fade out at once */
.editorial__panel--three .editorial__fade {
  animation-name: editorialFadeThree;
  animation-duration: 12s;
}

.editorial__panel--three .editorial__fade:nth-child(1) { animation-delay: 0s; }
.editorial__panel--three .editorial__fade:nth-child(2) { animation-delay: 4s; }
.editorial__panel--three .editorial__fade:nth-child(3) { animation-delay: 8s; }

@keyframes editorialFadeThree {
  0%, 100% { opacity: 0; }
  16.67%, 50% { opacity: 1; }
  66.67% { opacity: 0; }
}

/* ---------- Fan stack (image cluster) ---------- */
.fan-stack {
  position: relative;
  width: 60%;
  aspect-ratio: 3 / 4;
}

.fan-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.fan-card img { width: 100%; height: 100%; object-fit: cover; }

.fan-card--1 { transform: rotate(-8deg) translateX(-15px); z-index: 1; opacity: 0.4; }
.fan-card--2 { transform: rotate(-4deg) translateX(-8px); z-index: 2; opacity: 0.6; }
.fan-card--3 { transform: rotate(4deg) translateX(8px); z-index: 3; opacity: 0.8; }
.fan-card--main { transform: rotate(0deg); z-index: 4; }

.fan-stack:hover .fan-card--1 { transform: rotate(-18deg) translateX(-90px); opacity: 1; }
.fan-stack:hover .fan-card--2 { transform: rotate(-9deg) translateX(-45px); opacity: 1; }
.fan-stack:hover .fan-card--3 { transform: rotate(9deg) translateX(45px); opacity: 1; }

.fan-card__label {
  position: absolute;
  bottom: 15px; left: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 5px 10px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .editorial__visual { height: 600px; }
  .fan-stack { width: 300px; }
}

@media (max-width: 767px) {
  .editorial__panel { flex: 0 0 100%; width: 100%; }
  .editorial__text { order: 1; padding: 3.5rem 8%; aspect-ratio: auto; min-height: 420px; }
  .editorial__media { order: 2; aspect-ratio: 1 / 1; }
  .editorial__visual { order: 2; aspect-ratio: auto; height: 450px; }
  .editorial--reversed .editorial__text { order: 1; }
  .editorial--reversed .editorial__media { order: 2; }
  .editorial--media-first .editorial__media { order: 1; }
  .editorial--media-first .editorial__text { order: 2; }
  .fan-stack { width: 220px; height: 300px; aspect-ratio: auto; }
  .editorial__title { font-size: 1.85rem; }
}

/* ============================================================
   SERVICES — NODE SYSTEM
   ============================================================ */
.services-nodes { background: #fff; padding: 2.75rem clamp(1.25rem, 4vw, 4%) 3rem; }

.nodes-wrapper { max-width: 1400px; margin: 0 auto; position: relative; padding: 0.5rem 0; }

.nodes-line {
  position: absolute;
  top: calc(100% - 47px);
  left: 0;
  width: 100%;
  height: 1px;
}

.nodes-line path { stroke: var(--color-ink); stroke-width: 1px; stroke-dasharray: 4; opacity: 0.12; }

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0.75rem 0.6rem;
  text-align: center;
  transition: transform var(--t-base);
}

.node:hover { transform: translateY(-10px); }

.node__icon-bg {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  color: rgba(10,10,10,0.04);
  z-index: 1;
  pointer-events: none;
  transition: color var(--t-base), transform var(--t-base);
}

.node__icon-bg svg { width: 100%; height: 100%; }

.node:hover .node__icon-bg { color: rgba(10,10,10,0.07); transform: translate(-50%, -50%) scale(1.1); }

.node__content { position: relative; z-index: 5; }

.node__num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  margin-bottom: 0.4rem;
  display: block;
}

.node__title {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node__desc {
  font-family: var(--font-ui);
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.node__tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.node__point {
  width: 7px; height: 7px;
  background: var(--color-ink);
  border-radius: 50%;
  margin-top: 1.25rem;
  z-index: 5;
  transition: transform var(--t-fast);
}

.node:hover .node__point { transform: scale(2); }

@media (max-width: 767px) {
  .nodes-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .node__icon-bg { width: 100px; height: 100px; }
  .node__title { min-height: auto; margin-bottom: 0.5rem; }
  .nodes-line { top: auto; bottom: 42px; }
}

/* ============================================================
   IMAGE SLIDER
   ============================================================ */
.gallery-slider { position: relative; overflow: hidden; line-height: 0; }

.gallery-slider__cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.gallery-slider__cta .btn { pointer-events: auto; }

.gallery-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-slider__track::-webkit-scrollbar { display: none; }

.gallery-slider__slide {
  flex: 0 0 100%;
  height: 90vh;
  min-height: 420px;
  scroll-snap-align: start;
}

.gallery-slider__slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-slider__dots {
  position: absolute;
  bottom: 25px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(0,0,0,0.25);
  padding: 8px 15px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
}

.gallery-slider__dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transition: all var(--t-fast);
}

.gallery-slider__dot.is-active { background: #fff; width: 20px; border-radius: 10px; }

@media (max-width: 767px) {
  .gallery-slider__slide { height: 70vh; min-height: 420px; }
}

/* ============================================================
   LOCATION / VISIT SECTION
   ============================================================ */
.location { background: #fff; overflow: hidden; }

.location__grid { display: flex; flex-wrap: wrap; }

.location__panel { flex: 0 0 50%; width: 50%; aspect-ratio: 1 / 1; position: relative; }

.location__text { display: flex; align-items: center; justify-content: center; padding: 8%; }

.location__inner { max-width: 500px; width: 100%; }

.location__title { font-size: clamp(1.4rem, 2.6vw, 2.3rem); margin-bottom: 1.5rem; white-space: nowrap; }

.location__lead {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.location__item { margin-bottom: 1.1rem; }

.location__label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.location__value { font-family: var(--font-ui); font-size: 0.9rem; }

.location__actions { display: flex; gap: 0.75rem; margin-top: 2rem; }
.location__actions .btn { flex: 1; }

.location__map { background: #000; }

.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.1);
}

@media (max-width: 767px) {
  .location__panel { flex: 0 0 100%; width: 100%; aspect-ratio: auto; }
  .location__text { order: 1; padding: 3.75rem 8%; }
  .location__map { order: 2; height: 400px; }
  .location__title { font-size: 1.8rem; white-space: normal; }
  .location__actions { flex-direction: column; }
}

/* ============================================================
   TRANSITION GALLERY
   ============================================================ */
.transition-gallery {
  display: flex;
  width: 100%;
  height: 550px;
  overflow: hidden;
  background: #000;
}

.transition-gallery__item {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.8s var(--ease-out);
}

.transition-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) grayscale(30%);
  transform: scale(1.1);
  transition: all 0.8s var(--ease-out);
}

@media (min-width: 1025px) {
  .transition-gallery__item:hover { flex: 4; }
  .transition-gallery__item:hover img { filter: brightness(1) grayscale(0%); transform: scale(1); }
}

@media (max-width: 1024px) {
  .transition-gallery { height: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
  .transition-gallery__item { height: 300px; }
  .transition-gallery__item img { filter: brightness(0.9) grayscale(0%); transform: scale(1); }
}

@media (max-width: 767px) {
  .transition-gallery { grid-template-columns: repeat(2, 1fr); }
  .transition-gallery__item { height: 220px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #fff; }

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--color-muted); }

.footer-legal { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: var(--color-muted); transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--color-accent); }

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   BIKES GRID (Caracol Bikes page)
   ============================================================ */
.bikes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding: 5rem clamp(1.25rem, 4vw, 4%);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.bike-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.bike-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.bike-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.bike-card__body { padding: 1.5rem; }

.bike-card__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-a11y);
  margin-bottom: 0.5rem;
}

.bike-card__name { font-size: 1.4rem; margin-bottom: 0.75rem; }

.bike-card__desc {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

@media (max-width: 1024px) { .bikes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .bikes-grid { grid-template-columns: 1fr; padding: 3rem 6%; } }

/* ============================================================
   TEAM GRID (Equipo page)
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding: 5rem clamp(1.25rem, 4vw, 4%);
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.team-card__photo { aspect-ratio: 1 / 1; overflow: hidden; background: #000; }

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform var(--t-slow);
}

.team-card:hover .team-card__photo img { transform: scale(1.05); }

.team-card__body { padding: 1.75rem 1.5rem 2rem; }

.team-card__name { font-size: 1.35rem; margin-bottom: 0.5rem; }

.team-card__role {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-accent-a11y);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.team-card__desc { font-family: var(--font-ui); font-size: 0.85rem; color: var(--color-ink-soft); line-height: 1.6; }

@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .team-grid { grid-template-columns: 1fr; padding: 3rem 6%; } }

/* ============================================================
   INVENTORY LISTING (On Sale — full stock)
   ============================================================ */
.inventory { padding: 5rem clamp(1.25rem, 4vw, 4%) 6rem; }

.inventory__header { margin-bottom: 3rem; }

.inventory__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.inventory__title { font-size: clamp(2rem, 5vw, 3rem); }

.inventory__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.inventory__row {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 3rem;
  align-items: center;
}

.inventory__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.inventory__body { display: flex; flex-direction: column; }

.inventory__index {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.inventory__name { font-size: 1.2rem; margin-bottom: 0.65rem; }

.inventory__desc {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
  margin-bottom: 1.1rem;
}

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

.inventory__specs {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.inventory__specs .inventory__sep { color: var(--color-border); }

.inventory__share { display: flex; gap: 0.5rem; }

.inventory__share a {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), transform var(--t-fast);
}

.inventory__share a:hover { background: #333; transform: translateY(-2px); }

.inventory__share svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 900px) {
  .inventory__row { grid-template-columns: 1fr; gap: 1.25rem; }
  .inventory__footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 5rem clamp(1.25rem, 4vw, 4%); max-width: 900px; margin: 0 auto; }

.faq-accordion { display: flex; flex-direction: column; gap: 1.25rem; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.faq-item.is-active { border-color: var(--color-ink); box-shadow: 0 5px 15px rgba(0,0,0,0.02); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  transition: color var(--t-fast);
}

.faq-question:hover { color: var(--color-accent); }

.faq-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--color-bg-card);
  transition: all var(--t-fast);
}

.faq-item.is-active .faq-icon { transform: rotate(180deg); background: var(--color-ink); color: #fff; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }

.faq-answer__inner {
  padding: 0 1.5rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  line-height: 1.65;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SERVICES LAB (interactive build-phases viewer — servicios page)
   ============================================================ */
.services-lab { background: #fff; overflow: hidden; }

.services-lab__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.services-lab__text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 5%;
}

.services-lab__inner { max-width: 480px; width: 100%; }

.services-lab__side {
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-lab__viewport {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.services-lab__grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 30px 30px;
}

.services-lab__stage {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.services-lab__phase {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-ink);
  margin-bottom: 0.75rem;
  text-align: center;
}

.services-lab__digit { color: var(--color-muted); }
.services-lab__sep { color: var(--color-border); margin: 0 5px; }

.services-lab__display {
  width: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-lab__stack {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
}

.services-lab__layer {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.services-lab__layer.is-active { opacity: 1; }

.services-lab__controls {
  position: absolute;
  bottom: 8%;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.services-lab__slider {
  width: 220px;
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.services-lab__rail {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(10,10,10,0.1);
  z-index: 1;
}

.services-lab__fill {
  position: absolute;
  height: 100%;
  width: 0%;
  background: var(--color-ink);
  z-index: 2;
  transition: width 0.3s ease;
}

.services-lab__ticks {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  top: -4px;
  z-index: 3;
}

.services-lab__tick { width: 1px; height: 10px; background: rgba(10,10,10,0.2); }
.services-lab__tick.is-active { background: var(--color-ink); }

.services-lab__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 10;
  margin: 0;
}

.services-lab__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--color-ink);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.services-lab__input::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--color-ink);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .services-lab__grid { min-height: 480px; }
}

@media (max-width: 767px) {
  .services-lab__grid { grid-template-columns: 1fr; min-height: auto; }
  .services-lab__text { justify-content: center; text-align: center; padding: 3rem 8% 0.5rem; }
  .services-lab__side { padding: 0 0 2rem; }
  .services-lab__viewport { min-height: 350px; }
  .services-lab__display { width: 95%; }
  .services-lab__slider { width: 200px; }
  .services-lab__controls { bottom: 5%; }
}

/* ============================================================
   FINAL CTA (minimal, white)
   ============================================================ */
.cta-final {
  background: #fff;
  padding: clamp(3.5rem, 8vw, 6.25rem) 5%;
  border-top: 1px solid var(--color-border);
}

.cta-final__wrap { max-width: 700px; margin: 0 auto; text-align: center; }

.cta-final__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.cta-final__title { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 1.5rem; }

.cta-final__text {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
  max-width: 550px;
  margin: 0 auto 3rem;
}

.cta-final__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.cta-final__or {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-border);
}

.cta-final__link {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  padding-bottom: 4px;
  transition: opacity var(--t-fast);
}

.cta-final__link:hover { opacity: 0.6; }

@media (max-width: 767px) {
  .cta-final__actions { flex-direction: column; gap: 1.25rem; }
}

/* ============================================================
   CONTACT INTRO + INFO CARDS
   ============================================================ */
.contact-intro { background: #fff; padding: clamp(3rem, 7vw, 5rem) 5% 1.5rem; text-align: center; }
.contact-intro__wrap { max-width: 800px; margin: 0 auto; }
.contact-intro__title { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }

.contact-intro__text {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
}

.contact-intro__text strong { color: var(--color-ink); }

.info-grid { background: #fff; padding: 1.25rem 5% 3.75rem; }

.info-grid__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: border-color var(--t-base), background var(--t-base);
}

.info-card:hover {
  border-color: var(--color-ink);
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 20px 20px;
}

.info-card__meta { display: flex; justify-content: space-between; margin-bottom: 1.25rem; }

.info-card__index {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-muted);
}

.info-card__status {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--color-ink);
  padding: 2px 6px;
}

.info-card__title { font-size: 1.1rem; margin-bottom: 1.75rem; }

.info-card__text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--color-ink);
  flex-grow: 1;
}

.info-card__tags { margin-top: 1.75rem; display: flex; align-items: center; gap: 0.6rem; }

.info-card__tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-muted);
}

.info-card__tag-sep { width: 1px; height: 10px; background: var(--color-border); }

@media (max-width: 1024px) {
  .info-grid__wrap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .info-grid__wrap { grid-template-columns: 1fr; gap: 1rem; }
  .info-card { min-height: auto; padding: 2.2rem 1.25rem; }
}

/* ============================================================
   MAP FEATURE
   ============================================================ */
.map-feature { background: #fff; border-top: 1px solid var(--color-border); }

.map-feature__frame { position: relative; width: 100%; height: 500px; }

.map-feature__iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.1); }

.map-feature__card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: #fff;
  border: 1px solid var(--color-ink);
  padding: 2.5rem;
  width: 300px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.map-feature__link {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-ink);
  transition: opacity var(--t-fast);
}

.map-feature__link:hover { opacity: 0.5; }
.map-feature__arrow { margin-left: 10px; }

.map-feature__tags { margin-top: 1rem; display: flex; justify-content: center; align-items: center; gap: 0.6rem; }

@media (max-width: 767px) {
  .map-feature__card { width: 85%; padding: 1.875rem; }
  .map-feature__frame { height: 400px; }
}

/* ============================================================
   FOOTER BRANDMARKS STRIP
   ============================================================ */
.footer-brandmarks {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3rem);
  padding: 1.5rem 10% 1.25rem;
}

.footer-brandmarks img {
  height: 34px;
  width: auto;
}

@media (max-width: 600px) {
  .footer-brandmarks { gap: 1.25rem; padding: 1.25rem 6% 1rem; }
  .footer-brandmarks img { height: 26px; }
}

/* ============================================================
   FOOTER NAV LIST
   ============================================================ */
.footer-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.75rem 10% 0.75rem;
}

.footer-nav__link {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  transition: color var(--t-fast);
}

.footer-nav__link:hover { color: var(--color-accent); }

@media (max-width: 600px) {
  .footer-nav { padding: 1.25rem 6% 0.5rem; gap: 0.15rem; }
}

/* ============================================================
   SOLID HEADER (legal pages — no dark hero underneath)
   ============================================================ */
.site-header.is-solid { background: #fff; border-bottom: 1px solid var(--color-border); }
.site-header.is-solid::before { display: none; }
.site-header.is-solid .brand-logo img { filter: none; }
.site-header.is-solid .hamburger span { background: var(--color-ink); }

/* ============================================================
   LEGAL PAGES (Aviso Legal / Privacidad / Cookies)
   ============================================================ */
.legal-hero { background: #fff; padding: calc(var(--header-h) + 2.5rem) 5% 1rem; }
.legal-hero__wrap { max-width: 1200px; margin: 0 auto; }

.legal-hero__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.9rem;
}

.legal-hero__title { font-size: clamp(2rem, 5vw, 3rem); }

.legal-section { background: #fff; padding: 1rem 5% clamp(4rem, 8vw, 6.25rem); }

.legal-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.75rem 2.5rem;
}

.legal-item { display: flex; flex-direction: column; }

.legal-item__index {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-muted);
  margin-bottom: 0.9rem;
}

.legal-item__title { font-size: 1.1rem; margin-bottom: 0.9rem; line-height: 1.3; }

.legal-item__text {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
}

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   TAP GALLERY (full-bleed, hover/tap-to-expand strip)
   ============================================================ */
.tap-gallery {
  display: flex;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.tap-gallery__item {
  flex: 1;
  height: 100%;
  min-width: 40px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  -webkit-tap-highlight-color: transparent;
}

.tap-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) grayscale(20%);
  transform: scale(1.1);
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.tap-gallery__item:hover,
.tap-gallery__item:active,
.tap-gallery__item:focus {
  flex: 4;
}

.tap-gallery__item:hover img,
.tap-gallery__item:active img,
.tap-gallery__item:focus img {
  filter: brightness(1) grayscale(0%);
  transform: scale(1);
}

@media (max-width: 767px) {
  .tap-gallery { height: 450px; }
  .tap-gallery__item:hover, .tap-gallery__item:active { flex: 5; }
}

/* ============================================================
   FEATURED ON-SALE (home teaser)
   ============================================================ */
.featured-sale { background: #fff; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4%); }

.featured-sale__header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.featured-sale__title { font-size: clamp(2rem, 4vw, 2.8rem); }

.featured-sale__grid {
  max-width: var(--container-wide);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.featured-sale__card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.featured-sale__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.featured-sale__media { aspect-ratio: 4 / 3; overflow: hidden; }
.featured-sale__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.featured-sale__card:hover .featured-sale__media img { transform: scale(1.06); }

.featured-sale__info { padding: 1.25rem 1.25rem 1.5rem; }

.featured-sale__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-accent-a11y);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.featured-sale__name { font-size: 1.1rem; }

.featured-sale__cta { display: flex; justify-content: center; }

@media (max-width: 1024px) {
  .featured-sale__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .featured-sale__grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ============================================================
   GOOGLE REVIEWS CTA
   ============================================================ */
.reviews-cta { background: var(--color-bg-soft); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: clamp(3.5rem, 8vw, 5.5rem) 5%; text-align: center; }

.reviews-cta__wrap { max-width: 640px; margin: 0 auto; }

.reviews-cta__stars {
  color: var(--color-accent);
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 1.25rem;
}

.reviews-cta__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }

.reviews-cta__text {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
  margin-bottom: 2rem;
}

.reviews-cta__link { display: inline-flex; align-items: center; gap: 0.65rem; }
.reviews-cta__link svg { width: 18px; height: 18px; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -10px 30px rgba(10,10,10,0.08);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  transform: translateY(110%);
  transition: transform var(--t-slow);
}

.cookie-banner.is-active { transform: translateY(0); }

.cookie-banner__wrap {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cookie-banner__text { max-width: 640px; }

.cookie-banner__text p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.cookie-banner__text a { color: var(--color-ink); text-decoration: underline; }

.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ---------- Deferred map placeholder ---------- */
.map-gate {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--color-bg-soft);
  text-align: center;
  padding: 2rem;
}

.map-gate__text {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  max-width: 320px;
  line-height: 1.6;
}

.map-gate.is-hidden { display: none; }

@media (max-width: 600px) {
  .cookie-banner__wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
}

/* ============================================================
   LEGAL MODALS (Aviso Legal / Privacidad / Cookies)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10,10,10,0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.modal.is-active { opacity: 1; pointer-events: auto; }

.modal__panel {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--t-base);
}

.modal.is-active .modal__panel { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-card);
  color: var(--color-ink);
  transition: background var(--t-fast);
}

.modal__close:hover { background: var(--color-border); }
.modal__close svg { width: 16px; height: 16px; }

.modal__tag { display: block; }

.modal__title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 1.5rem 1.75rem 0; }

.modal__body .legal-grid { grid-template-columns: 1fr; gap: 1.75rem; }
.modal__body .legal-item__text a { color: var(--color-accent-dark); text-decoration: underline; }

@media (max-width: 600px) {
  .modal__panel { padding: 1.5rem; max-height: 88vh; }
}

/* ============================================================
   404 ERROR PAGE
   ============================================================ */
.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  padding: calc(var(--header-h) + 2rem) 5% 3rem;
  text-align: center;
}

.error-page__wrap { max-width: 620px; }

.error-page__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.error-page__code {
  font-size: clamp(5rem, 18vw, 9rem);
  color: #fff;
  line-height: 0.9;
  margin-bottom: 1rem;
}

.error-page__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 1.25rem;
}

.error-page__text {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #999;
  max-width: 460px;
  margin: 0 auto 2.5rem;
}

.error-page__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .error-page__actions { flex-direction: column; align-items: stretch; }
}
