@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

/* ═══════════════════════════════════════════════════════
   CARTELERAS.COM — Design System
   Billboard-Cinematic Aesthetic · Dark & Bold
   ═══════════════════════════════════════════════════════ */

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

/* ── DESIGN TOKENS ──────────────────────────────────── */
:root {
  --c-bg:          #04060D;
  --c-surface:     #080B14;
  --c-surface-2:   #0C1020;
  --c-border:      rgba(255, 255, 255, 0.07);
  --c-border-2:    rgba(255, 255, 255, 0.12);

  --c-accent:      #CC1212;
  --c-accent-light:#E02424;
  --c-accent-glow: rgba(204, 18, 18, 0.30);
  --c-accent-dim:  rgba(204, 18, 18, 0.10);

  --c-blue:        #1E3070;
  --c-blue-light:  #2748B0;
  --c-blue-dim:    rgba(30, 48, 112, 0.15);

  --c-gold:        #1E3070;
  --c-gold-dim:    rgba(30, 48, 112, 0.15);

  --c-text:        #F2F2F2;
  --c-text-muted:  #b5b5b5;
  --c-text-subtle: #333333;   /* solo decorativo (puntos, bordes) */
  --c-text-dim:    #8c8c8c;   /* texto secundario legible */

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --nav-h:   80px;
  --max-w:   1400px;
  --pad:     clamp(1.25rem, 5vw, 4rem);

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

/* ── TYPOGRAPHY SCALE ───────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

/* ── UTILITIES ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.accent { color: var(--c-accent); }
.gold   { color: var(--c-gold); }
.muted  { color: var(--c-text-muted); }

.tag {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--c-accent-light);
  box-shadow: 0 6px 24px var(--c-accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border-2);
}
.btn-outline:hover {
  border-color: var(--c-text);
  background: rgba(255,255,255,0.04);
}

.btn-dark {
  background: #000;
  color: #fff;
}
.btn-dark:hover { background: #1A1A1A; }

/* ── KEYFRAMES ──────────────────────────────────────── */
@keyframes slideUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn    { to { opacity: 1; } }
@keyframes marquee   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse     { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }
@keyframes scanline  { from { transform: translateY(-100%); } to { transform: translateY(100vh); } }
@keyframes glow      { 0%, 100% { box-shadow: 0 0 20px var(--c-accent-glow); } 50% { box-shadow: 0 0 40px var(--c-accent-glow), 0 0 80px rgba(204,18,18,0.1); } }

/* ── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--c-border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.nav-logo img { height: 56px; width: auto; }
.nav-logo-img { height: 56px; width: auto; display: block; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--c-text);
  line-height: 1;
}
.nav-logo-text span { color: var(--c-accent); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--c-text); }

/* Dropdown */
.nav-dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 100;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--c-border-2);
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}
.nav-dropdown a .dd-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-text-subtle);
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-dropdown a:hover {
  color: var(--c-text);
  background: rgba(255,255,255,0.03);
  border-left-color: var(--c-accent);
  padding-left: 1.5rem;
}
.nav-dropdown a:hover .dd-dot { background: var(--c-accent); }

/* CTA link */
.nav-cta > a {
  background: var(--c-accent) !important;
  color: #000 !important;
  padding: 0.45rem 1.1rem !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
  transition: background 0.2s !important;
}
.nav-cta > a:hover { background: var(--c-accent-light) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile */
@media (max-width: 1040px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--c-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--pad) 3rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-expo);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    padding: 1rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--c-border);
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
    border: none;
    pointer-events: all;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
  }
  .nav-dropdown::before { display: none; }
  .has-dropdown.open .nav-dropdown { max-height: 400px; }

  .nav-dropdown a { padding-left: 1rem; border-left: none; }
  .nav-dropdown a:hover { padding-left: 1.25rem; }

  .nav-cta { margin-top: 1.5rem; }
  .nav-cta > a { margin-left: 0 !important; }
}

/* ══════════════════════════════════════════════════════
   HOME — HERO
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 72% 38%, rgba(204,18,18,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 18% 65%, rgba(30,48,112,0.04) 0%, transparent 55%);
}

/* Subtle grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
}

/* Ghost year in background */
.hero-ghost {
  position: absolute;
  right: -2%;
  bottom: -5%;
  font-family: var(--font-display);
  font-size: clamp(14rem, 30vw, 34rem);
  color: rgba(255,255,255,0.012);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--pad) 8rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 0.6s 0.2s ease forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--c-accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 14vw, 15rem);
  line-height: 0.87;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.title-line {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  margin-top: -0.12em;
}
.title-line-inner {
  display: block;
  opacity: 0;
  transform: translateY(105%);
  animation: slideUp 0.9s var(--ease-expo) forwards;
}
.title-line:nth-child(1) .title-line-inner { animation-delay: 0.25s; }
.title-line:nth-child(2) .title-line-inner { animation-delay: 0.4s; }
.title-line:nth-child(3) .title-line-inner { animation-delay: 0.55s; }

.hero-counter { color: var(--c-accent); }
.hero-title-muted { color: rgba(242,242,242,0.18); }

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--c-text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.85s var(--ease-expo) forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 1.05s var(--ease-expo) forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.6s ease forwards;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--c-text-subtle), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════
   HOME — STATS BAR
   ══════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 2.5rem var(--pad);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--c-border-2);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--c-accent);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 0.35rem;
}
@media (max-width: 640px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::before { display: none; }
}

/* ══════════════════════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════════════════════ */
.section {
  padding: clamp(4rem, 8vw, 8rem) var(--pad);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ══════════════════════════════════════════════════════
   HOME — TECH / INNOVATION
   ══════════════════════════════════════════════════════ */
.tech-section {
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}
.tech-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(204,18,18,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  margin-top: 3rem;
}
.tech-card {
  background: var(--c-surface);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.tech-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width 0.45s var(--ease-expo);
}
.tech-card:hover::after { width: 100%; }
.tech-card:hover { background: var(--c-surface-2); }

.tech-card-icon {
  width: 44px; height: 44px;
  margin-bottom: 2rem;
  color: var(--c-accent);
}
.tech-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.tech-card p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.tech-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--c-accent-dim);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
@media (max-width: 768px) { .tech-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   HOME — LANDMARKS
   ══════════════════════════════════════════════════════ */
.landmarks-section {
  background: #000;
  position: relative;
  overflow: hidden;
}
.landmarks-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/landmark-sur.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.landmarks-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) var(--pad);
  position: relative;
  z-index: 1;
}
.landmarks-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lm-card {
  background: rgba(20,20,20,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s ease;
}
.lm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lm-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.lm-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.lm-card:hover .lm-img img { transform: scale(1.05); }
.lm-body { padding: 0.9rem 1.25rem; }
.lm-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #fff;
}
.lm-body p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  text-transform: uppercase;
}
.landmarks-text .section-title { margin-bottom: 1.5rem; }
.landmarks-text p {
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 460px;
}
@media (max-width: 900px) {
  .landmarks-inner { grid-template-columns: 1fr; gap: 3rem; }
  .lm-card:nth-child(2) { display: none; }
}

/* ══════════════════════════════════════════════════════
   HOME — WTC
   ══════════════════════════════════════════════════════ */
.wtc-section {
  background: #000;
  position: relative;
  overflow: hidden;
  padding: 8rem var(--pad);
  text-align: center;
}
.wtc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(204,18,18,0.10) 0%, transparent 60%);
}
.wtc-tag {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.wtc-tag::before, .wtc-tag::after {
  content: '';
  height: 1px; width: 40px;
  background: var(--c-accent);
}
.wtc-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8.5rem);
  line-height: 0.88;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}
.wtc-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}
.wtc-screen-wrap {
  max-width: 820px;
  margin: 3.5rem auto 0;
  position: relative;
  z-index: 1;
}
.wtc-screen {
  border: 1.5px solid rgba(204,18,18,0.35);
  padding: 6px;
  background: #0A0A0A;
  animation: glow 3s ease-in-out infinite;
}
.wtc-screen-inner {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #060606 0%, #111 50%, #060606 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}
.wtc-screen-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(204,18,18,0.04), transparent);
}
/* Scanline effect */
.wtc-screen-inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(204,18,18,0.15);
  animation: scanline 4s linear infinite;
}
.wtc-screen-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: rgba(255,255,255,0.06);
  letter-spacing: 0.1em;
}
.wtc-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  position: relative;
  z-index: 1;
}
.wtc-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 1.5s ease-in-out infinite;
}
.wtc-coords {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.12);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════
   HOME — MEDIOS PREVIEW
   ══════════════════════════════════════════════════════ */
.medios-preview { background: var(--c-surface); }
.medios-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--c-border);
  margin-top: 3rem;
}
.medio-mini {
  background: var(--c-surface);
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0.75rem;
  text-align: center;
  transition: background 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.medio-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent-dim);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.medio-mini:hover::before { opacity: 1; }
.medio-mini:hover { background: var(--c-surface-2); }
.medio-mini-icon {
  font-size: 1.75rem;
  color: var(--c-text-subtle);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}
.medio-mini:hover .medio-mini-icon { color: var(--c-accent); }
.medio-mini-name {
  font-family: var(--font-display);
  font-size: 0.93rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--c-text-muted);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}
.medio-mini:hover .medio-mini-name { color: var(--c-text); }
@media (max-width: 900px) { .medios-mini-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .medios-mini-grid { grid-template-columns: repeat(2, 1fr); } }

/* ══════════════════════════════════════════════════════
   HOME — BRANDS
   ══════════════════════════════════════════════════════ */
.brands-section {
  background: var(--c-bg);
  padding: 5rem 0;
  overflow: hidden;
}
.brands-header {
  padding: 0 var(--pad);
  max-width: var(--max-w);
  margin: 0 auto 3.5rem;
}
.brands-track {
  display: flex;
  gap: 0;
  animation: marquee 36s linear infinite;
  width: max-content;
}
.brands-track-wrap:hover .brands-track { animation-play-state: paused; }
.brand-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 64px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--c-text-subtle);
  flex-shrink: 0;
  min-width: 150px;
  margin-right: 1rem;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.brand-pill:hover {
  color: var(--c-text-muted);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ══════════════════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════════════════ */
.cta-band {
  background: var(--c-accent);
  padding: 6rem var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: 'OOH';
  position: absolute;
  right: -2%;
  top: -15%;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  color: rgba(0,0,0,0.05);
  line-height: 1;
  user-select: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  color: #000;
  line-height: 0.9;
  margin-bottom: 1.25rem;
}
.cta-band p {
  color: rgba(0,0,0,0.55);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 5rem var(--pad) 2.5rem;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.footer-brand-name span { color: var(--c-accent); }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}
.footer-desc {
  font-size: 0.93rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.75rem;
}
.footer-socials {
  display: flex;
  gap: 0.5rem;
}
.social-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--c-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 0.88rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.social-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-dim);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a {
  font-size: 0.91rem;
  color: var(--c-text-dim);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--c-accent-light); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.15em;
  color: var(--c-text-dim);
}
.footer-bottom a { color: var(--c-accent); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ══════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) var(--pad) 5rem;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(204,18,18,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  margin-bottom: 1.5rem;
}
.page-hero p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--c-text-muted);
  max-width: 580px;
  line-height: 1.8;
}
.page-hero-deco {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(7rem, 18vw, 20rem);
  color: rgba(255,255,255,0.018);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   MEDIOS PAGE
   ══════════════════════════════════════════════════════ */
.medios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  margin-top: 3rem;
}
.medio-card {
  background: var(--c-surface);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.3s ease;
}
.medio-card:hover { background: var(--c-surface-2); }

.medio-card-visual {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.medio-card-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--c-surface-2) 0%, var(--c-bg) 100%);
  transition: transform 0.6s var(--ease-expo);
}
.medio-card:hover .medio-card-visual-bg { transform: scale(1.04); }

.medio-card-visual-icon {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.06);
  transition: color 0.3s ease;
}
.medio-card:hover .medio-card-visual-icon { color: rgba(204,18,18,0.15); }

.medio-card-visual-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  z-index: 2;
}

/* Orange accent top border on hover */
.medio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-expo);
  z-index: 10;
}
.medio-card:hover::before { transform: scaleX(1); }

.medio-card-body {
  padding: 2rem;
  border-top: 1px solid var(--c-border);
}
.medio-card-body h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.medio-card:hover .medio-card-body h3 { color: var(--c-accent); }
.medio-card-body p {
  font-size: 0.93rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.medio-specs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.spec-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--c-border);
}
@media (max-width: 900px) { .medios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .medios-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   PROYECTOS ESPECIALES
   ══════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--c-surface);
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 8/3; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 4/6; }

.gallery-item-inner {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--c-surface-2), var(--c-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-expo);
  color: var(--c-text-subtle);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.15em;
}
.gallery-item:hover .gallery-item-inner { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.gallery-item-overlay p {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  position: relative;
}
.lightbox-img {
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  transition: color 0.2s;
  line-height: 1;
}
.lightbox-close:hover { color: #fff; }
.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-item.tall { grid-row: span 1; } }

/* ══════════════════════════════════════════════════════
   UBICACIONES PAGE
   ══════════════════════════════════════════════════════ */
.map-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.map-layout .navbar { position: relative; flex-shrink: 0; }
.map-layout .navbar.scrolled { position: relative; }

.map-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  overflow: hidden;
}

#map {
  flex: 1;
  margin-top: 56px;            /* libera la barra de filtros (antes: padding inline que desfasaba Leaflet) */
  transition: margin-right 0.45s var(--ease-expo);
  z-index: 1;
}
#map.panel-open { margin-right: 420px; }

/* Map top controls bar */
.map-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  z-index: 400;
}
.map-topbar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}
.map-topbar-count {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.15em;
  color: var(--c-text-muted);
  background: var(--c-surface);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--c-border);
}

/* Filter chips */
.map-filters {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  overflow-x: auto;
}
.map-filter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.map-filter:hover, .map-filter.active {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-dim);
}

/* Site panel */
.site-panel {
  position: absolute;
  top: 0; right: -420px;
  width: 420px;
  height: 100%;
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  overflow-y: auto;
  transition: right 0.45s var(--ease-expo);
  z-index: 500;
  display: flex;
  flex-direction: column;
}
.site-panel.open { right: 0; }

.panel-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
  flex-shrink: 0;
}
.panel-close:hover { color: var(--c-text); border-color: var(--c-border-2); }

.panel-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, var(--c-surface-2), var(--c-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-subtle);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-body { padding: 1.5rem; flex: 1; }

.panel-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}
.panel-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.panel-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--c-border);
}
.panel-row:last-of-type { border-bottom: none; }
.panel-row-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.panel-row-value {
  font-size: 0.93rem;
  color: var(--c-text);
  line-height: 1.5;
}
.panel-cta {
  padding: 1.5rem;
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
}
.panel-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
}

/* Map legend */
.map-legend {
  position: absolute;
  bottom: 2rem; left: 1.5rem;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  padding: 1rem 1.25rem;
  z-index: 400;
  pointer-events: none;
}
.map-legend-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
}
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Leaflet dark theme override */
.leaflet-container {
  background: #0A0A0A !important;
  font-family: var(--font-body) !important;
}
/* filtro en el pane (1 capa) y no en cada tile: evita parpadeo entre tiles */
.leaflet-tile-pane {
  filter: brightness(0.55) saturate(0.35) hue-rotate(190deg);
}
.leaflet-control-attribution {
  background: rgba(8,8,8,0.7) !important;
  color: var(--c-text-subtle) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
}
.leaflet-control-zoom a {
  background: var(--c-surface) !important;
  color: var(--c-text-muted) !important;
  border-color: var(--c-border) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--c-surface-2) !important;
  color: var(--c-text) !important;
}
.leaflet-popup-content-wrapper {
  background: var(--c-surface) !important;
  border: 1px solid var(--c-border) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}
.leaflet-popup-tip { background: var(--c-surface) !important; }
.leaflet-popup-content {
  font-family: var(--font-body) !important;
  color: var(--c-text) !important;
  margin: 0.75rem 1rem !important;
}

/* Custom markers */
.c-marker {
  width: 12px !important; height: 12px !important;
  margin: -6px 0 0 -6px !important;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid rgba(204,18,18,0.3);
  box-shadow: 0 0 0 5px rgba(204,18,18,0.12);
  cursor: pointer;
  /* Leaflet posiciona el marcador con "transform"; escalamos con la propiedad "scale"
     para no pisarlo (antes el hover lo mandaba a la esquina = parpadeo) */
  transition: scale 0.2s ease, box-shadow 0.2s ease;
}
.c-marker:hover {
  scale: 1.5;
  box-shadow: 0 0 0 8px rgba(204,18,18,0.1);
}
.c-marker.active {
  background: #fff;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  #map.panel-open { margin-right: 0; }
  .site-panel {
    width: 100%;
    top: auto; bottom: -65%;
    height: 65%;
    right: 0;
    border-left: none;
    border-top: 1px solid var(--c-border);
    transition: bottom 0.45s var(--ease-expo);
  }
  .site-panel.open { bottom: 0; right: 0; }
  .map-filters { display: none; }
}

/* ══════════════════════════════════════════════════════
   CENTRO DE IMPRESION
   ══════════════════════════════════════════════════════ */
.print-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.print-intro p {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.print-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--c-surface) 0%, var(--c-bg) 100%);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.print-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(204,18,18,0.04) 100%);
}
@media (max-width: 800px) { .print-intro { grid-template-columns: 1fr; gap: 2.5rem; } }

.print-features-section { background: var(--c-surface); }
.print-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  margin-top: 3rem;
}
.print-feat {
  background: var(--c-surface);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.print-feat::after {
  content: attr(data-n);
  position: absolute;
  top: -1rem; right: 1.25rem;
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  user-select: none;
}
.print-feat-icon {
  color: var(--c-accent);
  width: 40px; height: 40px;
  margin-bottom: 1.5rem;
}
.print-feat h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.print-feat p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.75;
}
@media (max-width: 900px) { .print-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .print-features { grid-template-columns: 1fr; } }

.print-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  margin-top: 4rem;
}
.print-spec {
  background: var(--c-surface);
  padding: 2.5rem 2rem;
  text-align: center;
}
.print-spec-val {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.print-spec-lbl {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
@media (max-width: 768px) { .print-specs { grid-template-columns: repeat(2, 1fr); } }

.print-gallery-section { background: var(--c-bg); padding: 0 var(--pad) clamp(4rem, 8vw, 8rem); }
.print-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 1px;
  background: var(--c-border);
}
.pg-item {
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--c-text-subtle);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
}
.pg-item img {
  transition: transform 0.6s var(--ease-expo);
}
.pg-item:hover img { transform: scale(1.05); }
.pg-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 70%, rgba(204,18,18,0.04) 100%);
}
.pg-item:first-child { grid-row: span 2; }
@media (max-width: 768px) {
  .print-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
  .pg-item:first-child { grid-row: span 1; }
}

/* ══════════════════════════════════════════════════════
   HOME — BRAND LOGOS
   ══════════════════════════════════════════════════════ */
.brand-logo-img {
  width: auto;
  max-width: 120px;
  height: 36px;
  object-fit: contain;
  transition: opacity 0.3s ease;
  opacity: 0.85;
}
.brand-pill:hover .brand-logo-img {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   HOME — MEDIOS PREVIEW (7 Formas) WITH IMAGES
   ══════════════════════════════════════════════════════ */
.medio-mini-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}
.medio-mini:hover .medio-mini-img { opacity: 0.4; }

/* ══════════════════════════════════════════════════════
   FOOTER LOGO IMAGE
   ══════════════════════════════════════════════════════ */
.footer-brand-logo { margin-bottom: 1rem; }
.footer-brand-logo img { height: 64px; width: auto; }

/* ══════════════════════════════════════════════════════
   VIDEO HERO (Home)
   ══════════════════════════════════════════════════════ */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.65;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.45) 0%, transparent 40%, rgba(8,8,8,0.7) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero-content, .hero-scroll {
  z-index: 2;
  position: relative;
}
.hero-grid, .hero-ghost {
  z-index: 1;
  position: absolute;
}

/* ══════════════════════════════════════════════════════
   MARKER HIGHLIGHT (Home — entre Stats y Tech)
   ══════════════════════════════════════════════════════ */
.marker-section {
  background: var(--c-bg);
  padding: clamp(3rem, 6vw, 6rem) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.marker-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(30,48,112,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 75% 50%, rgba(204,18,18,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.marker-phrase {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.mh-word {
  position: relative;
  display: inline-block;
}
.mh-word.highlight {
  color: #fff;
}
.mh-word.highlight::before {
  content: '';
  position: absolute;
  inset: 0.02em -0.1em;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: -1;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.mh-word.highlight.revealed::before { transform: scaleX(1); }
.mh-word.blue-hl {
  color: #fff;
}
.mh-word.blue-hl::before {
  background: var(--c-blue);
}
.marker-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════
   STARS CANVAS (Medios page hero)
   ══════════════════════════════════════════════════════ */
.stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}
.page-hero { position: relative; overflow: hidden; }
.page-hero .page-hero-inner,
.page-hero .page-hero-deco,
.page-hero .tag,
.page-hero h1,
.page-hero p { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════
   LAMP HERO (Proyectos Especiales)
   ══════════════════════════════════════════════════════ */
.lamp-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #05050a;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.lamp-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lamp-cone-left {
  position: absolute;
  right: 50%;
  height: 224px;
  width: 480px;
  background: conic-gradient(from 70deg at center top, var(--c-accent) 0deg, transparent 40deg);
  opacity: 0.7;
  animation: lampExpand 1s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.lamp-cone-right {
  position: absolute;
  left: 50%;
  height: 224px;
  width: 480px;
  background: conic-gradient(from 290deg at center top, var(--c-accent) 0deg, transparent 40deg);
  opacity: 0.7;
  animation: lampExpand 1s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.lamp-blur-top {
  position: absolute;
  top: 50%;
  height: 192px;
  width: 100%;
  transform: translateY(48px) scaleX(1.5);
  background: #05050a;
  filter: blur(32px);
}
.lamp-beam-line {
  position: absolute;
  top: 50%;
  height: 2px;
  width: 480px;
  background: var(--c-accent);
  transform: translateY(-112px);
  opacity: 0.6;
  animation: lampExpand 1s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.lamp-orb {
  position: absolute;
  top: 50%;
  height: 144px;
  width: 256px;
  background: var(--c-accent);
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  transform: translateY(-96px);
  animation: lampOrb 1s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.lamp-orb-sm {
  position: absolute;
  top: 50%;
  height: 144px;
  width: 64px;
  background: var(--c-accent);
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.65;
  transform: translateY(-96px);
  animation: lampOrb 1s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.lamp-fill {
  position: absolute;
  top: 50%;
  height: 176px;
  width: 100%;
  transform: translateY(-200px) scaleX(1.5);
  background: #05050a;
}
.lamp-blue-glow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(30,48,112,0.35) 0%, transparent 70%);
  pointer-events: none;
}
@keyframes lampExpand {
  from { opacity: 0; width: 240px; }
  to   { opacity: 0.7; width: 480px; }
}
@keyframes lampOrb {
  from { opacity: 0; width: 128px; }
  to   { opacity: 0.5; width: 256px; }
}
.lamp-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 3rem var(--pad) 5rem;
  text-align: center;
}
.lamp-content .page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.lamp-content h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s 0.5s var(--ease-expo) both;
}
.lamp-content p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--c-text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
  animation: fadeUp 0.9s 0.7s var(--ease-expo) both;
}
.lamp-content .tag { animation: fadeUp 0.9s 0.3s var(--ease-expo) both; }

/* ══════════════════════════════════════════════════════
   PHOTO GALLERY — 3 columns (Proyectos Especiales)
   ══════════════════════════════════════════════════════ */
.photo-gallery-section {
  background: var(--c-bg);
  padding: clamp(4rem, 7vw, 7rem) var(--pad);
}
.photo-gallery-header { margin-bottom: 2.5rem; }
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.photo-col { display: flex; flex-direction: column; gap: 1rem; }
.photo-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo),
              box-shadow 0.3s ease;
}
.photo-item.in-view { opacity: 1; transform: translateY(0); }
.photo-item:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-expo);
}
.photo-item:hover img { transform: scale(1.04); }
.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-item:hover .photo-item-overlay { opacity: 1; }
.photo-item-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.photo-item-overlay p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
@media (max-width: 900px) { .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-gallery-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   MEDIOS — HERO COLLAGE
   ══════════════════════════════════════════════════════ */
.medios-hero-collage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.medios-hero-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.45) saturate(0.7);
  transition: filter 0.4s ease;
}
.page-hero:hover .medios-hero-collage img { filter: brightness(0.35) saturate(0.7); }
.page-hero .page-hero-inner { position: relative; z-index: 2; }
.page-hero .page-hero-deco  { position: relative; z-index: 2; }
.page-hero::after { z-index: 1; }

/* medio-card-img inside card visual */
.medio-card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-expo);
}
.medio-card:hover .medio-card-img { opacity: 0.7; transform: scale(1.04); }

/* ══════════════════════════════════════════════════════
   HOME — TECH SECTION WITH BG IMAGE
   ══════════════════════════════════════════════════════ */
.tech-section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.tech-section > .container { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════
   HOME — WTC WITH REAL PHOTO
   ══════════════════════════════════════════════════════ */
.wtc-photo-wrap {
  max-width: 820px;
  margin: 3.5rem auto 0;
  position: relative;
  z-index: 1;
  border: 1.5px solid rgba(204,18,18,0.35);
  padding: 6px;
  background: #0A0A0A;
  animation: glow 3s ease-in-out infinite;
}
.wtc-photo-wrap img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* ══════════════════════════════════════════════════════
   HOME — LANDMARKS WITH REAL PHOTOS
   ══════════════════════════════════════════════════════ */
.lm-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0A0A0A;
  opacity: 0.9;
}
.lm-img { position: relative; }

/* ══════════════════════════════════════════════════════
   3D GALLERY VANILLA (Proyectos Especiales)
   ══════════════════════════════════════════════════════ */
.gallery-3d-section {
  background: #04060D;
  padding: clamp(4rem, 7vw, 7rem) var(--pad);
  position: relative;
  overflow: hidden;
}
.gallery-3d-header { margin-bottom: 3rem; text-align: center; }
.gallery-3d-stage {
  perspective: 1200px;
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.gallery-3d-track {
  display: flex;
  gap: 2rem;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-expo);
  cursor: grab;
}
.gallery-3d-track:active { cursor: grabbing; }
.g3d-card {
  width: 240px;
  flex-shrink: 0;
  border: 1px solid var(--c-border-2);
  background: var(--c-surface);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
}
.g3d-card:hover {
  transform: translateY(-12px) rotateY(-5deg) scale(1.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--c-accent);
}
.g3d-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.g3d-card-label {
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.gallery-3d-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.g3d-btn {
  width: 44px; height: 44px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  color: var(--c-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  line-height: 1;
}
.g3d-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-dim);
}


/* ══════════════════════════════════════════════════════
   NAV — móvil con logo grande
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-logo img, .nav-logo-img { height: 46px; }
  .footer-brand-logo img { height: 52px; }
}

/* ══════════════════════════════════════════════════════
   FOOTER — resaltado + enlaces legales
   ══════════════════════════════════════════════════════ */
footer {
  border-top: 3px solid var(--c-accent);
  background: linear-gradient(180deg, var(--c-accent-dim) 0%, transparent 35%), var(--c-surface);
}
.footer-address { color: var(--c-text-dim); font-size: 0.9rem; line-height: 1.6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--c-accent-light); }
.social-btn[hidden] { display: none; }

/* ══════════════════════════════════════════════════════
   WHATSAPP FLOTANTE
   ══════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 9000;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, right 0.45s var(--ease-expo);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37,211,102,0.45); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
/* en Ubicaciones: no tapar la atribución del mapa ni el CTA del panel */
.map-layout ~ .wa-float { bottom: 44px; }
body:has(.site-panel.open) .wa-float { right: 440px; }
@media (max-width: 768px) {
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .map-layout ~ .wa-float { bottom: 40px; }
  body:has(.site-panel.open) .wa-float { right: 14px; bottom: auto; top: 90px; }
}

/* ══════════════════════════════════════════════════════
   CONTACTO (formulario)
   ══════════════════════════════════════════════════════ */
.contact-section { background: var(--c-bg); padding: clamp(3rem, 6vw, 6rem) var(--pad); }
.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.45rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  color: var(--c-text);
  font: inherit;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-glow);
}
.contact-form .check { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-form .check input { width: auto; margin-top: 0.3rem; }
.contact-form .check label {
  text-transform: none; letter-spacing: 0; font-family: var(--font-body);
  font-size: 0.92rem; margin: 0; line-height: 1.5;
}
.contact-form .check a { color: var(--c-accent-light); text-decoration: underline; }
.contact-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 1rem 1.25rem; font-size: 1rem; display: none; }
.form-status.ok  { display: block; background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.4); }
.form-status.err { display: block; background: rgba(224,36,36,0.12);  border: 1px solid rgba(224,36,36,0.4); }
.contact-info { display: grid; gap: 1.5rem; align-content: start; }
.contact-info-item h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 0.4rem; line-height: 1.2;
}
.contact-info-item p, .contact-info-item a { font-size: 1.05rem; line-height: 1.6; color: var(--c-text); }
.contact-info-item a:hover { color: var(--c-accent-light); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   PÁGINAS LEGALES
   ══════════════════════════════════════════════════════ */
.legal { background: var(--c-bg); padding: clamp(3rem, 6vw, 6rem) var(--pad); }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-inner h2 { font-size: 1.9rem; margin: 2.5rem 0 0.9rem; line-height: 1; }
.legal-inner h2:first-child { margin-top: 0; }
.legal-inner p, .legal-inner li { color: var(--c-text-muted); font-size: 1.05rem; line-height: 1.8; }
.legal-inner ul { margin: 0.75rem 0 1rem 1.25rem; list-style: disc; }
.legal-inner li { margin-bottom: 0.4rem; }
.legal-inner a { color: var(--c-accent-light); text-decoration: underline; }
