:root {
  --bg-dark: #0a0707;
  --bg-deep: #060404;
  --text-on-dark: #f0ede8;
  --text-on-dark-mute: #8d8780;
  --text-on-dark-soft: #c8c2b9;
  --accent-red: #d93636;
  --accent-red-soft: rgba(217, 54, 54, 0.18);
  --accent-red-glow: rgba(217, 54, 54, 0.55);
  --font-display: 'Archivo Black', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html, body { background: var(--bg-dark); color: var(--text-on-dark); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }

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

/* ========================
   LOADER
   ======================== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: .12em;
  color: var(--text-on-dark);
  position: relative;
}
.loader-brand::after {
  content: '';
  position: absolute; left: 50%; bottom: -.7rem;
  transform: translateX(-50%);
  width: 60%; height: 3px; background: var(--accent-red);
}
.loader-bar-wrap {
  width: clamp(220px, 26vw, 320px); height: 2px;
  background: rgba(255,255,255,.08);
  margin-top: 2.6rem;
  overflow: hidden; position: relative;
}
#loader-bar {
  display: block; height: 100%; width: 0;
  background: var(--accent-red);
  transition: width .25s linear;
  box-shadow: 0 0 12px var(--accent-red-glow);
}
#loader-percent {
  margin-top: 1rem;
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-on-dark-mute);
  font-variant-numeric: tabular-nums;
}

/* ========================
   HEADER
   ======================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, backdrop-filter .3s ease,
              border-color .3s ease, padding .25s ease;
}
.site-header.scrolled {
  background: rgba(8, 5, 5, .72);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: rgba(255, 255, 255, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  pointer-events: auto;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.1rem 4vw;
  position: relative;
}
.site-header.scrolled .nav-inner { padding-top: .9rem; padding-bottom: .9rem; }

.site-header .brand {
  display: inline-flex;
  align-items: center;
  height: 36px;
  flex-shrink: 0;
  position: relative;
  z-index: 60;
}
.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
  transition: transform .25s ease;
}
.site-header .brand:hover .brand-logo { transform: scale(1.05); }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: inline-block;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  font-weight: 500;
  padding: .5rem 0;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -.1rem;
  height: 1px;
  background: var(--accent-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover { color: var(--text-on-dark); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active {
  color: var(--text-on-dark);
}
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .65rem 1.3rem;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-on-dark);
  white-space: nowrap;
  transition: all .3s ease;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 54, 54, .35);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 9px 6px;
  position: relative;
  z-index: 60;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-on-dark);
  margin: 5px 0;
  transition: transform .3s ease, opacity .25s ease;
  transform-origin: center;
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 55;
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile drawer */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    background: var(--bg-deep);
    border-left: 1px solid rgba(255, 255, 255, .08);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5.5rem 2.2rem 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.65, 0, .35, 1);
    z-index: 56;
  }
  .nav-panel.open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .nav-links a {
    font-size: 1rem;
    letter-spacing: .14em;
    padding: 1.1rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--accent-red); }

  .nav-cta {
    margin-top: 1.6rem;
    text-align: center;
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    font-size: .82rem;
    letter-spacing: .15em;
    padding: 1rem 1.6rem;
  }
}

/* ========================
   CANVAS — visible from frame 1
   ======================== */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg-deep);
  transition: opacity .35s ease;
  overflow: hidden;

  /* Horizontal fade via mask. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);

  /* Inner soft shadow on top + bottom — fades the canvas pixels themselves
     into bg-deep at the top/bottom edges of the canvas region. */
  box-shadow:
    inset 0 120px 110px -60px var(--bg-deep),
    inset 0 -120px 110px -60px var(--bg-deep);
}

/* Vertical vignette: separate fixed overlay covering the full viewport.
   Paints bg-deep at top + bottom of the viewport with a very gradual fade
   so the cut between video and page bg becomes imperceptible. */
.v-vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg,
    var(--bg-deep) 0%,
    var(--bg-deep) 12%,
    rgba(6, 4, 4, 0.78) 20%,
    rgba(6, 4, 4, 0.45) 28%,
    rgba(6, 4, 4, 0.18) 34%,
    rgba(6, 4, 4, 0) 40%,
    rgba(6, 4, 4, 0) 60%,
    rgba(6, 4, 4, 0.18) 66%,
    rgba(6, 4, 4, 0.45) 72%,
    rgba(6, 4, 4, 0.78) 80%,
    var(--bg-deep) 88%,
    var(--bg-deep) 100%);
}
@media (min-width: 1024px) {
  .canvas-wrap {
    top: 6vh;
    right: 3vw;
    bottom: 6vh;
    left: 49vw;
    border-radius: 4px;
  }
}
#canvas { width: 100%; height: 100%; display: block; }

/* ========================
   HERO OVERLAY (fixed, outside scroll container)
   ======================== */
#hero-overlay {
  position: fixed; inset: 0;
  z-index: 20;
  display: flex; align-items: flex-end;
  padding: 0 5vw 9vh;
  pointer-events: none;
}
#hero-overlay .hero-content {
  max-width: 44vw;
  position: relative;
}
@media (max-width: 1023px) {
  #hero-overlay .hero-content { max-width: 92vw; }
}
#hero-overlay a { pointer-events: auto; }

.hero-eyebrow {
  display: inline-block;
  font-size: .85rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-bottom: 1.6rem;
  padding-left: 2.4rem;
  position: relative;
  opacity: 0; transform: translateY(20px);
  animation: wordUp .9s .15s ease forwards;
  text-shadow: 0 2px 18px rgba(0,0,0,.85);
}
.hero-eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 1.8rem; height: 1px; background: var(--accent-red);
  transform: translateY(-50%);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: 1.08;
  letter-spacing: -.018em;
  text-shadow: 0 2px 30px rgba(0,0,0,.85), 0 0 60px rgba(0,0,0,.55);
  color: var(--text-on-dark);
  word-break: keep-all;
  hyphens: none;
}
.hero-word {
  display: block;
  margin: 0;
  white-space: nowrap;
  opacity: 0; transform: translateY(60px);
  animation: wordUp 1s ease forwards;
  will-change: opacity, transform;
}
.hero-word:nth-child(1) { animation-delay: .35s; }
.hero-word:nth-child(2) { animation-delay: .48s; }
.hero-word:nth-child(3) { animation-delay: .61s; color: var(--accent-red); }

.hero-tagline {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: var(--text-on-dark);
  margin-top: 1.8rem;
  max-width: 38rem;
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.45;
  opacity: 0; transform: translateY(20px);
  animation: wordUp .9s .9s ease forwards;
  text-shadow: 0 2px 18px rgba(0,0,0,.85);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: wordUp .9s 1.1s ease forwards;
  pointer-events: auto;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 1rem 1.7rem;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: all .25s ease;
  white-space: nowrap;
}
.hero-cta-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(217, 54, 54, .4);
}
.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(217, 54, 54, .55);
}
.hero-cta-primary .wa-icon { color: #fff; }
.hero-cta-secondary {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--text-on-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, .15);
  border-color: var(--text-on-dark);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute; bottom: -7vh; left: 0;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-on-dark-mute);
  opacity: 0;
  animation: wordUp .9s 1.5s ease forwards;
  display: flex; align-items: center; gap: 1rem;
}
.scroll-line {
  display: inline-block; width: 36px; height: 1px;
  background: var(--accent-red);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--text-on-dark);
  transform: translateX(-100%);
  animation: scrollSlide 1.8s ease-in-out infinite;
}

@keyframes wordUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollSlide {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ========================
   DARK OVERLAY (for stats)
   ======================== */
#dark-overlay {
  position: fixed; inset: 0;
  z-index: 5;
  background: rgba(6, 4, 4, 0.92);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ========================
   SCROLL CONTAINER
   ======================== */
#scroll-container {
  position: relative;
  z-index: 10;
  height: 1500vh;
  pointer-events: none;
}

/* Sections are FIXED at viewport center; ScrollTrigger flips opacity + plays entrance */
.scroll-section {
  position: fixed;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.scroll-section a, .scroll-section button { pointer-events: auto; }

/* Side-aligned text zones */
.align-left  { padding: 0 55vw 0 5vw; }
.align-right { padding: 0 5vw 0 55vw; }
.align-left .section-inner,
.align-right .section-inner { max-width: 40vw; }

/* ========================
   SECTION CONTENT
   ======================== */
.section-label {
  display: inline-block;
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-left: 2.4rem; position: relative;
}
.section-label::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 1.8rem; height: 1px; background: var(--accent-red);
  transform: translateY(-50%);
}
.section-label-center { padding-left: 0; }
.section-label-center::before { display: none; }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: .95;
  letter-spacing: -.018em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 25px rgba(0,0,0,.78);
  color: var(--text-on-dark);
}

.section-body {
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-on-dark);
  max-width: 32rem;
  text-shadow: 0 1px 14px rgba(0,0,0,.78);
  font-weight: 400;
}

/* ========================
   STATS
   ======================== */
.section-stats {
  padding: 0 6vw;
  text-align: center;
}
.stats-inner { max-width: 1300px; margin: 0 auto; }
.stats-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-top: 1rem;
  color: var(--text-on-dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.stat-value-wrap {
  display: flex; align-items: baseline; justify-content: center;
  gap: .1rem;
}
.stat-number, .stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-number { color: var(--text-on-dark); }
.stat-suffix { color: var(--accent-red); font-size: clamp(2rem, 5vw, 4.5rem); }
.stat-label {
  font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-on-dark-soft);
  font-weight: 500;
  margin-top: .4rem;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem; margin-top: 2.8rem; }
}

/* ========================
   CTA
   ======================== */
.section-cta .section-heading { color: var(--text-on-dark); }
.cta-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.4rem;
}
.cta-button {
  display: inline-block;
  padding: 1.05rem 2rem;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: all .3s ease;
}
.cta-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 6px 24px rgba(217,54,54,.3);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(217,54,54,.5);
}
.cta-secondary {
  border: 1px solid rgba(255,255,255,.28);
  color: var(--text-on-dark);
}
.cta-secondary:hover { border-color: var(--text-on-dark); transform: translateY(-2px); }
.cta-note {
  margin-top: 2.4rem;
  font-size: .78rem; letter-spacing: .12em;
  color: var(--text-on-dark-mute);
}

/* "Sigue deslizando" hint at end of CTA */
.continue-hint {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  font-weight: 500;
}
.continue-arrow {
  display: inline-block;
  width: 16px;
  height: 28px;
  position: relative;
}
.continue-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 18px;
  background: var(--accent-red);
  transform: translateX(-50%);
}
.continue-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--accent-red);
  border-bottom: 1px solid var(--accent-red);
  transform: translateX(-50%) rotate(45deg);
}
.continue-hint {
  animation: hintBob 1.8s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ========================
   MOBILE
   ======================== */
@media (max-width: 768px) {
  #scroll-container { height: 950vh; }
  .align-left, .align-right { padding: 0 6vw; }
  .align-left .section-inner, .align-right .section-inner { max-width: 100%; }
  #hero-overlay { padding: 0 6vw 8vh; }
  #hero-overlay .hero-content { max-width: 92vw; }
  .scroll-indicator { bottom: -8vh; }
  .hero-heading { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .section-heading { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .cta-button { padding: .9rem 1.6rem; font-size: .72rem; }
}

/* ============================================================
   POST-3D — 2D area: trabajos, contacto, footer
   ============================================================ */
.post-3d {
  position: relative;
  z-index: 30;
  background: var(--bg-deep);
  color: var(--text-on-dark);
}

.container-2d {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section-2d {
  padding: 9rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 768px) {
  .section-2d { padding: 5rem 0; }
}

.section-2d-header { margin-bottom: 4rem; max-width: 720px; }
.section-2d-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.0;
  letter-spacing: -.018em;
  margin: 1.2rem 0 1rem;
  color: var(--text-on-dark);
}
.section-2d-lead {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--text-on-dark-soft);
  line-height: 1.55;
  max-width: 38rem;
}

/* Services grid */
.services-grid-2d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.service-card-2d {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background .35s ease, transform .35s ease;
}
.service-card-2d::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: 3;
}
.service-card-2d:hover::before { transform: scaleX(1); }
.service-card-2d:hover .card-media img { transform: scale(1.06); }

/* Image area: 4:3 ratio, fallback icon behind */
.card-media {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a0c0c 0%, #0d0707 100%);
  overflow: hidden;
  display: block;
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform .55s cubic-bezier(.25, .8, .35, 1), opacity .25s ease;
}
.card-media.no-image img { display: none; }
.card-icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  opacity: .35;
  z-index: 1;
}
.card-icon-fallback svg {
  width: clamp(40px, 6vw, 56px);
  height: clamp(40px, 6vw, 56px);
}

/* Card body: title + description below image */
.card-body {
  padding: 1.5rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -.005em;
  color: var(--text-on-dark);
}
.card-body p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-on-dark-soft);
}

.services-note {
  margin-top: 2.4rem;
  font-size: .92rem;
  color: var(--text-on-dark-mute);
}
.services-note a {
  color: var(--accent-red);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.services-note a:hover { border-color: var(--accent-red); }

/* Contact 2D */
.section-contact-2d { background: linear-gradient(180deg, var(--bg-deep), #0d0808); }
.contact-2d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-2d-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-info-list {
  margin: 2.4rem 0;
  display: flex; flex-direction: column;
  gap: 1.2rem;
}
.contact-info-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 1rem;
  color: var(--text-on-dark);
}
.ci-label {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-red);
  font-weight: 600;
}
.contact-info-list a {
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.contact-info-list a:hover { border-color: var(--accent-red); }

/* Form */
.contact-form-2d {
  background: var(--bg-dark);
  padding: 2.4rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  display: flex; flex-direction: column;
  gap: 1.4rem;
}
@media (max-width: 768px) { .contact-form-2d { padding: 1.6rem; } }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-on-dark);
  font-family: inherit;
  font-size: .95rem;
  border-radius: 3px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(217, 54, 54, .15);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-on-dark-mute); }
.cta-full { width: 100%; text-align: center; }

/* Footer */
.site-footer {
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,.06);
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
}
.footer-brand { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.footer-info {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-on-dark-soft);
}
.footer-info a {
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.footer-info a:hover { border-color: var(--accent-red); }
.footer-credit {
  font-size: .82rem;
  color: var(--text-on-dark-mute);
  text-align: right;
  line-height: 1.7;
}
@media (max-width: 768px) { .footer-credit { text-align: left; } }
.footer-iberyon {
  color: var(--text-on-dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--accent-red);
  transition: color .2s ease;
}
.footer-iberyon:hover { color: var(--accent-red); }

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 36px rgba(37, 211, 102, .55);
  animation: none;
}
.wa-float svg { display: block; }
@keyframes waPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4),
                0 0 0 0 rgba(37, 211, 102, .55);
  }
  50% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4),
                0 0 0 14px rgba(37, 211, 102, 0);
  }
}
@media (max-width: 600px) {
  .wa-float {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 52px;
    height: 52px;
  }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ============================================================
   COOKIE BANNER (RGPD / LSSI Spain)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.4rem;
  left: 1.4rem;
  right: 6rem; /* leave room for WA float */
  max-width: 600px;
  margin: 0;
  z-index: 88;
  background: rgba(8, 5, 5, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner p {
  margin: 0;
  font-size: .82rem;
  color: var(--text-on-dark-soft);
  line-height: 1.5;
  flex: 1;
}
.cookie-banner p a {
  color: var(--accent-red);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.cookie-banner p a:hover { border-color: var(--accent-red); }

.cookie-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.cookie-accept,
.cookie-reject {
  border: none;
  padding: .65rem 1.4rem;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.cookie-accept {
  background: var(--accent-red);
  color: #fff;
}
.cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 54, 54, .4);
}
.cookie-reject {
  background: transparent;
  color: var(--text-on-dark-soft);
  border: 1px solid rgba(255, 255, 255, .18);
}
.cookie-reject:hover {
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem;
    right: 1.4rem;
    bottom: 5.5rem; /* above WA float on mobile */
    gap: .9rem;
  }
  .cookie-actions { width: 100%; }
  .cookie-accept,
  .cookie-reject { flex: 1; padding: .85rem; }
}

/* Honeypot anti-spam — visible to bots, hidden to real users */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Footer legal links */
.footer-legal-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: .78rem;
  margin-top: .2rem;
}
.footer-legal-links a {
  color: var(--text-on-dark-soft);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.footer-legal-links a:hover {
  color: var(--text-on-dark);
  border-bottom-color: var(--accent-red);
}
@media (max-width: 768px) {
  .footer-legal-links { justify-content: flex-start; }
}

/* ============================================================
   LEGAL PAGES (aviso-legal, privacidad, cookies)
   ============================================================ */
.legal-page,
.error-page {
  background: var(--bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-main {
  flex: 1;
  padding: 7rem 5vw 5rem;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}
.legal-article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -.018em;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--text-on-dark);
}
.legal-updated {
  color: var(--text-on-dark-mute);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.legal-article > p:first-of-type:not(.legal-updated) {
  font-size: 1.05rem;
  color: var(--text-on-dark);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.legal-article h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -.005em;
  margin: 3rem 0 1.2rem;
  color: var(--accent-red);
}
.legal-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-on-dark);
  letter-spacing: .02em;
}
.legal-article p,
.legal-article li {
  color: var(--text-on-dark-soft);
  font-size: .98rem;
  line-height: 1.7;
}
.legal-article p { margin-bottom: 1rem; }
.legal-article ul {
  list-style: disc;
  padding-left: 1.6rem;
  margin: 1rem 0 1.5rem;
}
.legal-article ul li { margin-bottom: .5rem; }
.legal-article a {
  color: var(--accent-red);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.legal-article a:hover { border-color: var(--accent-red); }
.legal-article strong { color: var(--text-on-dark); font-weight: 600; }
.legal-article code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .88rem;
  background: rgba(255, 255, 255, .06);
  padding: .15rem .4rem;
  border-radius: 3px;
  color: var(--text-on-dark);
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: .92rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  overflow: hidden;
}
.cookies-table th,
.cookies-table td {
  text-align: left;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  vertical-align: top;
}
.cookies-table th {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-red);
  font-weight: 600;
  background: rgba(0, 0, 0, .2);
}
.cookies-table tr:last-child td { border-bottom: none; }
.cookies-table td { color: var(--text-on-dark-soft); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 16rem);
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--accent-red), #7a1f1f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.error-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: -.018em;
  color: var(--text-on-dark);
}
.error-main p {
  color: var(--text-on-dark-soft);
  font-size: 1rem;
  max-width: 32rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ============================================================
   PREFERS-REDUCED-MOTION ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-word,
  .hero-eyebrow,
  .hero-tagline,
  .hero-ctas,
  .scroll-indicator,
  .continue-hint {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .scroll-line::after,
  .wa-float,
  .continue-hint {
    animation: none !important;
  }
}

