/* ── Variables ───────────────────────────────── */
:root {
  --bg:         #1C1A18;
  --bg-surface: #252220;
  --bg-card:    #2D2A27;
  --border:     #3A3633;
  --gold:       #C9A84C;
  --gold-dim:   #8A6E2F;
  --text:       #E8E0D0;
  --text-muted: #8A8078;
  --radius:     8px;
  --max-w:      1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilidades ──────────────────────────────── */
.cinzel    { font-family: 'Cinzel', serif; }
.allura    { font-family: 'Allura', cursive; }
.muted     { color: var(--text-muted); }
.gold      { color: var(--gold); }
.center    { text-align: center; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* "Legado" inline — misma tipografía y color que el logo */
.legado-inline {
  font-family: 'Allura', cursive;
  color: var(--gold);
  font-size: 1.6em;
  line-height: 0.8;
  position: relative;
  top: -0.12em;
}

/* ── Botones ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #1C1A18;
  font-weight: 600;
}
.btn-primary:hover {
  background: #d4b05a;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  text-decoration: none;
}

/* ── Placeholder de screenshot ───────────────── */
.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}

.screenshot-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.01) 20px,
    rgba(255,255,255,0.01) 21px
  );
}

.screenshot-placeholder svg {
  opacity: 0.2;
  width: 40px;
  height: 40px;
}

.screenshot-real {
  width: 110%;
  margin-left: -5%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

/* ── Lightbox de screenshots ─────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); color: var(--text); }

.screenshot-zoomable { cursor: zoom-in; }

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28,26,24,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.nav-logo:hover { text-decoration: none; }

.nav-logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.nav-logo-name {
  font-family: 'Allura', cursive;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  padding: 8px 20px !important;
  font-size: 12px !important;
}

.nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  padding: 7px 14px !important;
  font-size: 11px !important;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 0;
}

.hero-title {
  font-family: 'Allura', cursive;
  font-size: clamp(64px, 9vw, 96px);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.9;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-screenshot {
  margin: 64px auto 0;
  max-width: 1000px;
  padding: 0 16px;
}

/* ── Divider ornamental ──────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 400px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-symbol {
  color: var(--gold-dim);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Sección genérica ────────────────────────── */
section {
  padding: 96px 0;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
}

/* ── Filosofía ───────────────────────────────── */
.filosofia {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.filosofia-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.filosofia-pillar {
  background: var(--bg-card);
  padding: 36px 32px;
  text-align: center;
}

.filosofia-pillar-icon {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1;
}

.filosofia-pillar-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.filosofia-pillar-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Features (alternando) ───────────────────── */
.features { background: var(--bg); }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.feature:last-child { margin-bottom: 0; }

.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.feature-tag {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
}

/* ── Herramientas (grid de tarjetas) ─────────── */
.herramientas {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.herramientas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.herramienta-card {
  background: var(--bg-card);
  padding: 32px 28px;
}

.herramienta-icon {
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1;
}

.herramienta-title {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.herramienta-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Precio ──────────────────────────────────── */
.precio { background: var(--bg); }

.precio-bloque {
  max-width: 480px;
  margin: 56px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.precio-header {
  background: var(--bg-surface);
  padding: 28px 40px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.precio-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1C1A18;
  background: var(--gold);
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 20px;
  font-weight: 600;
}

.precio-importes {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin: 8px 0;
}

.precio-importe-principal,
.precio-importe-secundario {
  font-family: 'Cinzel', serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.precio-importe-principal { color: var(--gold); }
.precio-importe-secundario { color: var(--text-muted); }

.precio-importe-principal sup,
.precio-importe-secundario sup {
  font-size: 20px;
  vertical-align: super;
  letter-spacing: 0;
  font-weight: 400;
}

.precio-separador {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--border);
  line-height: 1;
  align-self: center;
}

.precio-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.precio-modelo {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

.precio-cuerpo {
  padding: 32px 40px;
}

.precio-features {
  list-style: none;
  margin-bottom: 32px;
}

.precio-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.precio-features li:last-child { border-bottom: none; }

.precio-features li::before {
  content: '◆';
  color: var(--gold-dim);
  font-size: 8px;
  margin-top: 6px;
  flex-shrink: 0;
}

.precio-platforms {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* ── CTA final ───────────────────────────────── */
.cta-final {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 96px 0;
  text-align: center;
}

.cta-final-title {
  font-family: 'Allura', cursive;
  font-size: clamp(40px, 6vw, 64px);
  color: var(--gold);
  margin-bottom: 16px;
}

.cta-final-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ── Contacto ────────────────────────────────── */
.contacto {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.contacto-email {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.contacto-email:hover {
  color: #d4b05a;
  border-color: #d4b05a;
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.footer-logo {
  font-family: 'Allura', cursive;
  font-size: 28px;
  color: var(--gold-dim);
  line-height: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 20px;
}

.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .herramientas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links { display: none; }

  section { padding: 64px 0; }

  .filosofia-pillars { grid-template-columns: 1fr; }

  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .screenshot-real {
    width: 100%;
    margin-left: 0;
  }

  .precio-bloque { margin: 40px 0 0; }
  .precio-header,
  .precio-cuerpo { padding: 24px 28px; }
  .precio-importe { font-size: 44px; }
}

@media (max-width: 480px) {
  .herramientas-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
