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

:root {
  --bg:             #0a0a0a;
  --surface:        #111111;
  --card:           #181818;
  --border:         #242424;
  --border-subtle:  rgba(255,255,255,0.05);
  --fg:             #e8e8e8;
  --muted:          #919191;   /* era #666 — subido para pasar 4.5:1 sobre --bg */
  --accent:         #f0c040;
  --accent-hover:   #fcd34d;
  --accent-subtle:  rgba(240, 192, 64, 0.08);
  --accent-border:  rgba(240, 192, 64, 0.20);
  --on-accent:      #0d0d0d;  /* texto sobre fondos de acento */
  --font-sans:      'Figtree', sans-serif;
  --font-serif:     'Libre Baskerville', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Skip-to-content ── */
.skip-link {
  position: fixed;   /* fixed: relativo al viewport, no al documento */
  top: -56px;
  left: 24px;
  z-index: 9999;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ── Focus global ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 0;
}

/* ── Radial glow behind hero ── */
.glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(240,192,64,0.10) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(20px);   /* era 40px — reducido para rendimiento */
}

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { width: 18px; height: 18px; object-fit: contain; }
.nav-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--accent); }
.nav-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 400;
  color: var(--muted);
  max-width: 480px;
  margin: 20px auto 0;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

/* ── CTA buttons ── */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);   /* era #000 hardcodeado */
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover  { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--accent); transform: translateY(1px); }
.btn-primary svg { flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover  { border-color: var(--fg); color: var(--fg); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(1px); }
.btn-ghost-sm { font-size: 13px; padding: 9px 20px; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Section base ── */
.section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 12px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
}

/* ── Features list (reemplaza el card grid idéntico) ── */
.features-list {
  margin-top: 56px;
  border-top: 1px solid var(--border);
}
.feature-row {
  display: grid;
  grid-template-columns: 52px minmax(160px, 230px) 1fr;
  gap: 0 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}
.fr-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.45;
  padding-top: 2px;
}
.fr-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.fr-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Facts bar (reemplaza el hero-metric stats template) ── */
.facts-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.facts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.fact-item {
  padding: 32px 24px;    /* 24px horizontal alinea con .container */
  border-right: 1px solid var(--border);
}
.fact-item:last-child { border-right: none; }
.fact-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.fact-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
}

/* ── Manual CTA ── */
.manual-cta { padding: 88px 0; position: relative; z-index: 1; }
.manual-box {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.manual-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.manual-box-corner {
  position: absolute;
  bottom: 0; right: 0;
  width: 160px; height: 160px;
  background: radial-gradient(ellipse at bottom right, rgba(240,192,64,0.07), transparent 70%);
}
.manual-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.manual-desc { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 420px; }
.manual-meta { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.manual-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 32px 0; position: relative; z-index: 1; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 22px; height: 22px; opacity: 0.7; }
.footer-brand-name { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: -0.01em; }
.footer-copy { font-size: 12px; color: var(--muted); opacity: 0.6; }
.footer-version { font-size: 11px; font-weight: 600; color: var(--accent); opacity: 0.7; letter-spacing: 0.06em; }
.footer-terms {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.footer-terms:hover { opacity: 1; }

/* ── Terms view ── */
#terms-view { display: none; position: relative; z-index: 1; padding: 48px 0 80px; }
.terms-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: 48px;
  font-family: var(--font-sans);
}
.terms-back:hover { color: var(--fg); border-color: var(--fg); }
.terms-doc { max-width: 720px; margin: 0 auto; }
.terms-header { border-bottom: 1px solid var(--border); padding-bottom: 32px; margin-bottom: 48px; }
.terms-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.terms-main-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.terms-meta { font-size: 12px; color: var(--muted); opacity: 0.7; }
.terms-doc h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.terms-doc h3 { font-size: 14px; font-weight: 700; color: var(--fg); margin: 28px 0 10px; }
.terms-doc p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.terms-doc ul { list-style: none; padding: 0; margin-bottom: 16px; }
.terms-doc ul li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.terms-doc ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 6px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.terms-doc ul li:last-child { border-bottom: none; }
.terms-doc ul li strong { color: var(--fg); font-weight: 600; }
.terms-footer-note {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
  text-align: center;
}

/* ── Gallery ── */
.gallery-section { margin-top: 80px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s;
}
.gallery-item.visible { opacity: 1; transform: translateY(0) scale(1); }
.gallery-item:nth-child(2) { transition-delay: 0.08s; }
.gallery-item:nth-child(3) { transition-delay: 0.16s; }
.gallery-item:nth-child(4) { transition-delay: 0.06s; }
.gallery-item:nth-child(5) { transition-delay: 0.14s; }
.gallery-item:nth-child(6) { transition-delay: 0.22s; }
.gallery-item:hover,
.gallery-item:focus-visible { border-color: var(--accent-border); }
.gallery-item:focus-visible  { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-item.visible:active { transform: scale(0.99); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--card);
  transition: background 0.3s;
}
.gallery-item:hover .gallery-placeholder,
.gallery-item:focus-visible .gallery-placeholder { background: var(--surface); }
.gallery-ph-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-ph-icon,
.gallery-item:focus-visible .gallery-ph-icon { opacity: 0.9; }
.gallery-ph-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-ph-label,
.gallery-item:focus-visible .gallery-ph-label { opacity: 0.9; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-overlay-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.04em;
  transform: translateY(6px);
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-overlay-text,
.gallery-item:focus-visible .gallery-overlay-text { transform: translateY(0); }
.gallery-zoom-icon {
  position: absolute;
  top: 8px; right: 8px;
  width: 44px; height: 44px;   /* era 28px — subido a 44px touch target */
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-zoom-icon,
.gallery-item:focus-visible .gallery-zoom-icon { opacity: 1; transform: scale(1); }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.35s ease;
}
.lightbox.open { background: rgba(0,0,0,0.92); pointer-events: all; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.lightbox.open .lightbox-inner { opacity: 1; transform: scale(1); }
.lightbox-inner img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border);
}
.lightbox-ph {
  width: 700px;
  max-width: 90vw;
  aspect-ratio: 16/10;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.lightbox-ph svg { color: var(--accent); opacity: 0.4; }
.lightbox-ph-label { font-size: 13px; color: var(--muted); opacity: 0.6; letter-spacing: 0.06em; }
.lightbox-caption {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -22px; right: -22px;    /* era -14px — ajustado para 44px */
  width: 44px; height: 44px;   /* era 32px */
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.lightbox-close:hover { color: var(--fg); border-color: var(--fg); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;   /* era 38px */
  background: rgba(10,10,10,0.85);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.lightbox-nav:hover { color: var(--fg); border-color: var(--accent); }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  /* Features list: colapsa a 2 columnas en tablet */
  .feature-row {
    grid-template-columns: 40px 1fr;
    gap: 0 20px;
    align-items: start;
  }
  .fr-num { padding-top: 3px; }
  .fr-desc {
    grid-column: 2;
    margin-top: 5px;
  }
}
@media (max-width: 768px) {
  .facts-list { grid-template-columns: 1fr; }
  .fact-item { border-right: none; border-bottom: 1px solid var(--border); }
  .fact-item:last-child { border-bottom: none; }
  .manual-box { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev, .lightbox-next { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 80px 0 64px; }
  .feature-row { padding: 16px 0; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  /* Hero CSS animations */
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
  /* Scroll fade-ins */
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* Gallery entrance y hover */
  .gallery-item {
    opacity: 1;
    transform: none !important;
    transition: border-color 0.15s;
  }
  .gallery-item img     { transition: none; }
  .gallery-overlay      { transition: opacity 0.15s ease; }
  .gallery-overlay-text { transition: none; }
  .gallery-zoom-icon    { transition: opacity 0.15s ease; }
  /* Lightbox */
  .lightbox-inner { transition: opacity 0.15s ease; }
}
