/* ========================================
   LegacyEnergyca — Modern stylesheet
   ======================================== */

:root {
  /* Brand — Light mode */
  --bg:            #ffffff;
  --bg-2:          #f5f5f5;
  --surface:       #ffffff;
  --surface-2:     #f0f0f0;
  --surface-3:     #e5e5e5;
  --border:        rgba(0, 0, 0, 0.08);
  --border-2:      rgba(0, 0, 0, 0.14);

  --primary:       #891814;
  --primary-hi:    #a11a18;
  --primary-lo:    #6f1410;
  --accent:        #d62027;

  --text:          #0a0a0a;
  --text-2:        #2a2a2a;
  --text-muted:    #666666;
  --text-dim:      #999999;

  --success:       #16a34a;
  --danger:        #dc2626;

  /* Effects */
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     24px;

  --shadow-sm:     0 1px 2px rgba(0,0,0,.06);
  --shadow:        0 12px 32px -8px rgba(0,0,0,.12);
  --shadow-lg:     0 30px 80px -20px rgba(0,0,0,.18);
  --shadow-glow:   0 0 40px rgba(137,24,20,.25);

  /* Type */
  --font-display:  'Manrope', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Layout */
  --container:     1280px;
  --gutter:        24px;
  --section-pad:   clamp(80px, 10vw, 140px);
  --ease:          cubic-bezier(.4, 0, .2, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 1024px) { body { cursor: auto; } }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--bg); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- Cursor ---------- */
.cursor, .cursor-follower {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: transform 0.18s var(--ease), width 0.2s, height 0.2s, background 0.2s;
  transform: translate(-50%, -50%);
}
.cursor { width: 6px; height: 6px; background: var(--primary); }
.cursor-follower { width: 36px; height: 36px; border: 1.5px solid var(--primary); }
.cursor-follower.is-hover { width: 60px; height: 60px; background: rgba(137,24,20,0.12); }
@media (max-width: 1024px) { .cursor, .cursor-follower { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(137,24,20,0.6);
}

/* ---------- Noise overlay ---------- */
.noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.025;
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: overlay;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text-accent { color: var(--primary); }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}
.section__eyebrow-line {
  width: 40px; height: 1px;
  background: var(--primary);
}
.section__eyebrow--light { color: var(--primary); }
.section__eyebrow--center { justify-content: center; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.section__title--light { color: #ffffff; }
.section__lead {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.section__head { max-width: 720px; margin-bottom: 64px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.section__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  font-family: var(--font-sans, inherit);
}
.section__cta:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  gap: 14px;
}
.section__cta svg { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(137,24,20,0.5);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn--primary:hover {
  background: var(--primary-hi);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(137,24,20,0.7);
}
.btn--primary:hover::before { transform: translateX(100%); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(137,24,20,0.05);
}
.btn--ghost-light {
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--ghost-light:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(137,24,20,0.1);
}
.btn--lg { padding: 16px 32px; font-size: 15px; }
.btn--block { width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s var(--ease);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.4s var(--ease), filter 0.3s;
}
.nav__logo:hover .nav__logo-img { transform: scale(1.04); filter: brightness(1.1); }
@media (max-width: 768px) {
  .nav__logo-img { height: 36px; }
}
.nav__logo-mark {
  width: 36px; height: 36px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
}
.nav__logo:hover .nav__logo-mark { transform: rotate(180deg); }
.nav__logo-text strong { color: var(--primary); font-weight: 800; }

.nav__menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 6px;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }
.nav__link.active { color: var(--primary); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__cta { padding: 10px 18px; font-size: 13px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav__menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu .nav__link { font-size: 22px; font-family: var(--font-display); font-weight: 600; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================
   HERO (split layout, light style)
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: rgba(137, 24, 20, 0.08);
  border: 1px solid rgba(137, 24, 20, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(137,24,20,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(137,24,20,0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(137,24,20,0.05); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero__title-line {
  display: block;
  overflow: hidden;
}
.hero__title-line > span { display: inline-block; }
.hero__title-accent {
  color: var(--primary);
  font-style: italic;
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 6px;
  background: rgba(137,24,20,0.2);
  z-index: -1;
}

.hero__subtitle {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__meta-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.hero__meta-divider {
  width: 1px; height: 32px;
  background: var(--border);
}

/* Hero media (image card on the right) */
.hero__media {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 14px solid #fff;
  box-shadow:
    0 1px 0 var(--border),
    0 30px 60px -20px rgba(0, 0, 0, 0.25),
    0 18px 36px -18px rgba(137, 24, 20, 0.15);
  background: #fff;
  transform: rotate(0.4deg);
  transition: transform 0.5s var(--ease);
}
.hero__media:hover { transform: rotate(0deg) scale(1.01); }
.hero__media-wrap {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 2px;
}
.hero__media-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.hero__media:hover .hero__media-wrap img { transform: scale(1.04); }
.hero__media-tag {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  font-family: var(--font-mono);
  z-index: 2;
}

@media (max-width: 1024px) {
  .hero { padding: 180px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { aspect-ratio: 4/3; max-width: 700px; margin: 0 auto; transform: none; border-width: 10px; }
  .hero__media { order: -1; }
}
@media (max-width: 640px) {
  .hero__meta { gap: 16px; }
  .hero__meta-divider { display: none; }
  .hero__actions { margin-bottom: 36px; }
}
.hero__logo img {
  height: 96px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero__logo img { height: 72px; }
  .hero__logo { padding: 14px 22px; margin-top: 28px; }
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 30%;
  background: var(--primary);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -30%; }
  100% { top: 100%; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero__meta { gap: 16px; }
  .hero__meta-divider { display: none; }
  .hero__scroll { display: none; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.marquee__item { padding: 0 8px; }
.marquee__dot { color: var(--primary); font-size: 18px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: var(--section-pad) 0;
  background: var(--bg);
  position: relative;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats__item {
  padding: 32px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.stats__item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.stats__item:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}
.stats__item:hover::before { transform: scaleX(1); }

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
  display: inline-block;
}
.stats__suffix {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  color: var(--primary);
  display: inline-block;
  margin-left: 4px;
}
.stats__label {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stats__grid { grid-template-columns: 1fr; } }

/* ============================================
   ABOUT
   ============================================ */
.about { padding: var(--section-pad) 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about__media-wrap {
  position: relative;
  width: 100%; height: 100%;
}
.about__media-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.about__media:hover img { transform: scale(1.05); }
.about__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,14,26,0.8) 100%);
}
.about__media-tag {
  position: absolute;
  top: 20px; left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  font-family: var(--font-mono);
}
.dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.2);
}
.about__media-floating {
  position: absolute;
  bottom: 24px; right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
}
.about__floating-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.about__floating-num span {
  font-size: 24px;
  color: var(--text-2);
}
.about__floating-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.about__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  margin: 24px 0 16px;
}
.about__text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.about__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__feature {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.3s var(--ease);
}
.about__feature:hover {
  border-color: var(--primary);
  transform: translateX(6px);
}
.about__feature-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(137,24,20,0.1);
  color: var(--primary);
  border-radius: 10px;
}
.about__feature h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.about__feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media-floating { right: 16px; bottom: 16px; padding: 16px 18px; }
}

/* ============================================
   EQUIPOS
   ============================================ */
.equipos {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
  position: relative;
}
.equipos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.equipo-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.equipo-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(137,24,20,0.3);
}
.equipo-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.equipo-card--wide .equipo-card__img { aspect-ratio: auto; height: 100%; }
.equipo-card--wide .equipo-card__img img { height: 100%; }

.equipo-card__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.equipo-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.85);
  transition: all 0.6s var(--ease);
}
.equipo-card:hover .equipo-card__img img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.05);
}
.equipo-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,14,26,0.9) 100%);
}
.equipo-card__num {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 2;
}
.equipo-card__body {
  padding: 24px;
}
.equipo-card__body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.equipo-card__body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.equipo-card__specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.equipo-card__specs li {
  position: relative;
  padding-left: 14px;
}
.equipo-card__specs li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  background: var(--primary);
  border-radius: 50%;
}
.equipo-card__specs strong {
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.equipo-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.equipo-card__tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 4px 10px;
  background: rgba(137,24,20,0.08);
  border: 1px solid rgba(137,24,20,0.2);
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .equipos__grid { grid-template-columns: repeat(2, 1fr); }
  .equipo-card--wide { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .equipos__grid { grid-template-columns: 1fr; }
}

/* ============================================
   ESPECIFICACIONES TÉCNICAS
   ============================================ */
.especs {
  padding: var(--section-pad) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.especs__head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.especs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.espec-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.espec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(137, 24, 20, 0.25);
}
.espec-card__media {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-2);
}
.espec-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.espec-card:hover .espec-card__media img { transform: scale(1.05); }
.espec-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(137, 24, 20, 0.92);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.espec-card__body {
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.espec-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.espec-card__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
.espec-card__text strong {
  color: var(--text);
  font-weight: 600;
}
.espec-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.espec-card__list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.55;
}
.espec-card__list li:first-child { border-top: 0; padding-top: 0; }
.espec-card__list-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.espec-card__list-sep { display: none; }
.espec-card__list-value {
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .especs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .especs__grid { grid-template-columns: 1fr; }
  .espec-card__body { padding: 24px 22px 28px; }
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios { padding: var(--section-pad) 0; }
.servicios__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
}
.servicios__head { position: sticky; top: 120px; }
.servicios__head .section__title { margin-bottom: 24px; }
.servicios__cta { margin-top: 32px; }

.servicios__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.servicio {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.servicio::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
  transform-origin: bottom;
}
.servicio:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  transform: translateX(6px);
}
.servicio:hover::before { transform: scaleY(1); }
.servicio__icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(137,24,20,0.1);
  color: var(--primary);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
}
.servicio:hover .servicio__icon {
  background: var(--primary);
  color: var(--bg);
}
.servicio h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.servicio p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.servicio__arrow {
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.servicio:hover .servicio__arrow {
  color: var(--primary);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .servicios__grid { grid-template-columns: 1fr; gap: 48px; }
  .servicios__head { position: static; }
  .servicio { grid-template-columns: 56px 1fr; }
  .servicio__arrow { display: none; }
}

/* ============================================
   HSEQ
   ============================================ */
.hseq { padding: var(--section-pad) 0; }
.hseq__inner {
  position: relative;
  padding: clamp(60px, 8vw, 100px) clamp(32px, 5vw, 80px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hseq__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(50%) brightness(0.4);
}
.hseq__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(137,24,20,0.15), transparent 60%),
    linear-gradient(135deg, rgba(10,14,26,0.9), rgba(10,14,26,0.6));
}
.hseq__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hseq__lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 16px 0 48px;
  max-width: 640px;
}
.hseq__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.hseq__item {
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
}
.hseq__item:hover {
  background: rgba(137,24,20,0.06);
  border-color: var(--primary);
  transform: translateY(-4px);
}
.hseq__item-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(137,24,20,0.12);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 20px;
}
.hseq__item h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.hseq__item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.hseq__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

/* ============================================
   CLIENTES
   ============================================ */
.clientes { padding: var(--section-pad) 0; background: var(--bg-2); }
.clientes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.cliente {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  position: relative;
  min-height: 140px;
}
.cliente:nth-child(3n) { border-right: 1px solid var(--border); }
.cliente:last-child { border-right: 1px solid var(--border); }
.cliente::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(137,24,20,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.cliente:hover { background: var(--surface-2); }
.cliente:hover::before { opacity: 1; }
.cliente img {
  max-width: 140px;
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 1;
}
.cliente:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .cliente { padding: 24px 16px; min-height: 100px; }
  .cliente img { max-width: 110px; }
}

/* ============================================
   CTA
   ============================================ */
.cta { padding: 60px 0 var(--section-pad); }
.cta__inner {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(40%) brightness(0.5);
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,14,26,0.85), rgba(137,24,20,0.1)),
    linear-gradient(180deg, rgba(10,14,26,0.4), rgba(10,14,26,0.6));
}
.cta__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto { padding: var(--section-pad) 0; }
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contacto__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contacto__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contacto__item-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 10px;
}
.contacto__item-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contacto__item-value {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.2s;
}
a.contacto__item-value:hover { color: var(--primary); }

/* Form */
.contacto__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s;
  font-family: var(--font-body);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(137,24,20,0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }
.form-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.form-field select option { background: var(--surface); color: var(--text); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 900px) {
  .contacto__grid { grid-template-columns: 1fr; gap: 48px; }
  .contacto__form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   UBICACIÓN
   ============================================ */
.ubicacion {
  padding: var(--section-pad) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.ubicacion__head {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}
.ubicacion__head .section__eyebrow {
  justify-content: center;
}
.ubicacion__head .section__title {
  font-size: clamp(40px, 5vw, 56px);
  margin-top: 16px;
  margin-bottom: 16px;
}
.ubicacion__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.ubicacion__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-height: 420px;
  background: var(--bg-2);
}
.ubicacion__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.ubicacion__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.ubicacion__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.ubicacion__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(137, 24, 20, 0.08);
  color: var(--primary);
  border-radius: 10px;
}
.ubicacion__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 600;
}
.ubicacion__value {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.ubicacion__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.ubicacion__btn:hover {
  background: #6e1311;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(137, 24, 20, 0.5);
}
.ubicacion__btn svg { width: 18px; height: 18px; }
.ubicacion__btn svg:last-child { opacity: 0.7; }

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}
.nav__logo--light { color: var(--text); }
.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.footer__col a,
.footer__cert {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--primary); }
.footer__cert { color: var(--text-2); font-family: var(--font-mono); font-size: 12px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 500px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero specific reveal */
.hero__title [data-reveal],
.hero__subtitle,
.hero__actions,
.hero__meta,
.hero__badge {
  transform: translateY(30px);
}
.hero [data-reveal] {
  transition-duration: 0.9s;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================
   MGU GALLERY
   ============================================ */
.mgu-gallery {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--border);
}
.mgu-gallery__head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.mgu-gallery__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.mgu-gallery__lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}
.mgu-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mgu-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: left;
  font-family: inherit;
}
.mgu-gallery__item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.mgu-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.mgu-gallery__item:hover img {
  transform: scale(1.05);
}
.mgu-gallery__caption {
  display: block;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border-top: 1px solid var(--border);
  line-height: 1.4;
}
.mgu-gallery__zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.85);
  color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
}
.mgu-gallery__item:hover .mgu-gallery__zoom {
  opacity: 1;
  transform: scale(1);
}
.mgu-gallery__zoom svg { stroke: #ffffff; }

@media (max-width: 900px) {
  .mgu-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .mgu-gallery__grid { grid-template-columns: 1fr; }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(8px);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--primary);
  color: #1a1100;
  border-color: var(--primary);
  transform: scale(1.05);
}
.lightbox__close {
  top: 24px; right: 24px;
  width: 48px; height: 48px;
}
.lightbox__close svg { stroke: currentColor; }
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lightboxIn 0.4s var(--ease-out);
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox__caption {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  line-height: 1.4;
}
.lightbox__counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
  .lightbox { padding: 16px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__img { max-height: calc(100vh - 140px); }
}

/* ============================================
   POLÍTICAS
   ============================================ */
.politicas { padding: var(--section-pad) 0; background: var(--bg-2); }
.politicas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.politica-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  color: inherit;
  width: 100%;
}
.politica-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
  transform-origin: bottom;
}
.politica-card:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  transform: translateX(6px);
}
.politica-card:hover::before { transform: scaleY(1); }
.politica-card--featured {
  background: linear-gradient(135deg, rgba(137,24,20,0.1), rgba(137,24,20,0.02));
  border-color: rgba(137,24,20,0.3);
}
.politica-card--featured:hover {
  background: linear-gradient(135deg, rgba(137,24,20,0.18), rgba(137,24,20,0.04));
  border-color: var(--primary);
}
.politica-card__icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(137,24,20,0.1);
  color: var(--primary);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
}
.politica-card:hover .politica-card__icon {
  background: var(--primary);
  color: var(--bg);
  transform: rotate(-8deg);
}
.politica-card__body {
  flex: 1;
  min-width: 0;
}
.politica-card__code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 3px 8px;
  background: rgba(137,24,20,0.1);
  border-radius: 4px;
  margin-bottom: 8px;
}
.politica-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.politica-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.politica-card__arrow {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.politica-card:hover .politica-card__arrow {
  color: var(--primary);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .politicas__grid { grid-template-columns: 1fr; }
  .politica-card { padding: 20px; gap: 14px; }
  .politica-card__icon { width: 48px; height: 48px; }
  .politica-card h3 { font-size: 15px; }
  .politica-card p { font-size: 12px; }
  .politica-card__arrow { display: none; }
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.modal.is-open .modal__dialog {
  transform: scale(1) translateY(0);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  transition: all 0.2s;
  z-index: 2;
}
.modal__close:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  transform: rotate(90deg);
}
.modal__head {
  padding: 36px 40px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background:
    linear-gradient(180deg, rgba(137,24,20,0.04), transparent),
    var(--surface);
}
.modal__code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 4px 10px;
  background: rgba(137,24,20,0.1);
  border: 1px solid rgba(137,24,20,0.25);
  border-radius: 4px;
  margin-bottom: 16px;
}
.modal__head h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-right: 40px;
}
.modal__body {
  padding: 28px 40px 40px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}
.modal__body p {
  margin-bottom: 16px;
  color: var(--text-2);
}
.modal__body p:last-child { margin-bottom: 0; }
.modal__body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.modal__body h4:first-child { margin-top: 0; }
.modal__body ul, .modal__body ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
.modal__body li {
  margin-bottom: 10px;
  color: var(--text-2);
}
.modal__body li::marker { color: var(--primary); }
.modal__note {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(137,24,20,0.08);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 14px;
}
.modal__note strong { color: var(--primary); }

/* Custom scrollbar for modal body */
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.modal__body::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .modal { padding: 12px; }
  .modal__head { padding: 28px 24px 18px; }
  .modal__body { padding: 20px 24px 28px; font-size: 14px; }
  .modal__head h3 { font-size: 20px; }
}
