/* Página del producto (gym.fraguasoft.com). Tipografía y encabezado de la
   familia Fragua (fraguaconsultoria.com); colores de la app (tema Forge,
   apps/mobile/src/global.css). Sin dependencias: este CSS y landing.js. */

:root {
  --bg: #0d0703;
  --bg-2: #120904;
  --card: #150c06;
  --card-2: #1b1008;
  --border: #2a180b;
  --border-strong: #3d2513;
  --fg: #f5e6d3;
  --fg-muted: #b4987a;
  --fg-dim: #7d6650;
  --ember: #f26e22;
  --ember-bright: #ff8a3d;
  --ember-deep: #c2410c;
  --ember-glow: rgba(242, 110, 34, 0.45);
  --gold: #f2c36b;
  --radius: 6px;
  --radius-lg: 14px;
  --maxw: 1180px;
  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ember-bright); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.03em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 2; }
.narrow { max-width: 760px; }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ember); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* ── Tags, botones ── */
.tag {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.badge {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: #1a0d04;
  background: linear-gradient(135deg, var(--gold), #e89a3c); padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 700;
}
.ember-text {
  background: linear-gradient(100deg, var(--ember-bright) 0%, var(--ember) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.85rem 1.6rem; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s, color 0.25s;
}
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%); color: #fff;
  box-shadow: 0 8px 26px -8px var(--ember-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px var(--ember-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { color: var(--fg); border-color: var(--border-strong); background: rgba(21, 12, 6, 0.6); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-bright); transform: translateY(-2px); }

/* ── Encabezado (el de fraguaconsultoria.com) ── */
#site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s; }
#site-header.scrolled { background: rgba(13, 7, 3, 0.84); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--fg); }
.brand-mark { border-radius: 9px; border: 1px solid var(--border-strong); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; text-transform: uppercase; }
.brand-sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ember); margin-top: 4px; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { position: relative; color: var(--fg-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.25s; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px; background: var(--ember); transition: width 0.3s var(--ease); }
.main-nav a:hover { color: var(--fg); }
.main-nav a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.82rem; }
.lang-btn { color: var(--fg-dim); text-decoration: none; padding: 0.4rem 0.2rem; letter-spacing: 0.05em; transition: color 0.2s; }
.lang-btn.is-active { color: var(--ember); font-weight: 700; }
.lang-btn:hover { color: var(--fg); }
.lang-sep { color: var(--fg-dim); }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav[hidden] { display: none; }
.mobile-nav { display: flex; flex-direction: column; background: rgba(13, 7, 3, 0.97); backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 0.4rem 1.25rem 1.25rem; }
.mobile-nav a { color: var(--fg); text-decoration: none; padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }

/* ── Teléfonos con capturas reales ── */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 780 / 1688; padding: 7px;
  border-radius: 40px; background: linear-gradient(155deg, #3a2414 0%, #140a04 45%, #24140a 100%);
  border: 1px solid #4a2e18;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(242, 110, 34, 0.06), inset 0 1px 0 rgba(255, 220, 190, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }

/* ── Portada ── */
.hero { position: relative; padding: 7.5rem 0 3rem; overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 900px; height: 800px; max-width: 140vw; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at center, rgba(242, 110, 34, 0.2) 0%, rgba(242, 110, 34, 0.05) 40%, transparent 65%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 8.6vw, 4.7rem); font-weight: 800; margin-bottom: 1.5rem; }
.lead { color: var(--fg-muted); font-size: 1.15rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fine { color: var(--fg-dim); font-size: 0.88rem; margin-top: 1rem; font-family: var(--font-mono); letter-spacing: 0.02em; }
.hero-stage { position: relative; justify-self: center; width: min(100%, 440px); height: 560px; }
.hero-stage .phone { position: absolute; width: 250px; }
.phone-back { right: 0; top: 0; transform: rotate(6deg); opacity: 0.7; filter: saturate(0.85); }
.phone-front { left: 0; top: 40px; transform: rotate(-3deg); z-index: 2; }
.timer-chip {
  position: absolute; z-index: 3; right: 6px; bottom: 6px; display: grid; gap: 2px; min-width: 190px;
  padding: 0.9rem 1.1rem; border-radius: 12px; background: rgba(21, 12, 6, 0.88); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(242, 110, 34, 0.15);
}
.timer-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember); }
.timer-value { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.timer-next { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-muted); }

.facts {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.facts li { padding: 1.25rem 0.75rem; color: var(--fg-muted); font-size: 0.85rem; line-height: 1.35; }
.facts li:not(:last-child) { border-right: 1px solid var(--border); }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 0.2rem; }

/* ── Secciones ── */
.section, .feature, .premium { padding: 5.5rem 0; position: relative; }
.section-alt, .feature-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
h2 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; margin-bottom: 1.1rem; }
.intro { color: var(--fg-muted); font-size: 1.1rem; max-width: 36rem; }
.feature-grid { display: grid; gap: 3rem; align-items: center; }
.ticks { list-style: none; display: grid; gap: 0.7rem; margin-top: 1.75rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--fg); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 0.95rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ember), var(--gold));
}
.feature-media { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 1.25rem; }
.feature-media .phone { flex: 0 1 270px; max-width: 270px; }
.phone-offset { display: none; }

/* ── Premium ── */
.premium { background: radial-gradient(1200px 500px at 50% 0%, rgba(242, 110, 34, 0.12), transparent 70%), var(--bg); border-top: 1px solid var(--border); }
.premium .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.premium .tag { justify-content: center; }
.premium .intro { margin: 0 auto; }
.ai-grid { display: grid; gap: 3rem; }
.ai-card { display: grid; justify-items: center; text-align: center; gap: 0.6rem; }
.ai-card .phone { width: 100%; max-width: 270px; margin-bottom: 1.25rem; }
.ai-card h3 { font-size: 1.45rem; }
.ai-card p { color: var(--fg-muted); max-width: 22rem; }
.note { margin-top: 3rem; text-align: center; color: var(--fg-dim); font-size: 0.88rem; }

/* ── Pilares ── */
.pillars { display: grid; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.pillar { padding: 1.75rem 1.5rem; border-bottom: 1px solid var(--border); }
.pillar:last-child { border-bottom: none; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.5rem; position: relative; padding-top: 1rem; }
.pillar h3::before { content: ''; position: absolute; top: 0; left: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--ember); }
.pillar p { color: var(--fg-muted); }

/* ── Planes ── */
.plans { display: grid; gap: 1.25rem; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.75rem; }
.plan h3 { font-size: 1.8rem; }
.plan-sub { color: var(--fg-muted); margin-top: 0.35rem; }
.plan-premium { border-color: rgba(242, 110, 34, 0.55); background: linear-gradient(180deg, rgba(242, 110, 34, 0.12), var(--card) 55%); box-shadow: 0 30px 60px -40px var(--ember-glow); }

/* ── Preguntas ── */
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1.08rem; padding: 0.9rem 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--font-mono); color: var(--ember); font-size: 1.3rem; transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--fg-muted); padding: 0 0 1.25rem; max-width: 40rem; }

/* ── Cierre ── */
.closing { position: relative; padding: 6rem 0 6.5rem; text-align: center; overflow: hidden; border-top: 1px solid var(--border); }
.closing .hero-glow { left: 50%; right: auto; top: 10%; transform: translateX(-50%); }
.closing h2 { font-size: clamp(2.3rem, 7vw, 4.4rem); margin-bottom: 2rem; }
.closing .hero-cta { justify-content: center; }

/* ── Pie ── */
#site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; position: relative; z-index: 2; background: var(--bg); }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { border-radius: 8px; }
.footer-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.footer-by { color: var(--fg-dim); font-size: 0.9rem; }
.footer-by a { color: var(--fg-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-nav a { color: var(--fg-muted); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--fg); }
.footer-bottom { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--fg-dim); font-size: 0.85rem; font-family: var(--font-mono); }
.footer-bottom a { color: var(--fg-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.footer-legal a { color: var(--fg-dim); text-decoration: none; font-size: 0.78rem; }
.footer-legal a:hover { color: var(--fg-muted); text-decoration: underline; }

/* ── Movimiento ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

/* ── Tamaños ── */
@media (max-width: 899px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 719px) {
  .ai-grid {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -1.25rem; padding: 0 1.25rem 0.5rem; scroll-padding: 0 1.25rem;
  }
  .ai-grid::-webkit-scrollbar { display: none; }
  .ai-card { flex: 0 0 78%; scroll-snap-align: start; }
  .ai-card .phone { max-width: 240px; }
}
@media (max-width: 480px) {
  .hero-stage { height: 470px; }
  .hero-stage .phone { width: 205px; padding: 6px; border-radius: 32px; }
  .hero-stage .phone img { border-radius: 27px; }
  .timer-chip { min-width: 160px; padding: 0.75rem 0.9rem; }
  .timer-value { font-size: 2.1rem; }
  .hero-cta .btn { width: 100%; }
}
@media (min-width: 720px) {
  .facts li { padding: 1.5rem 1.25rem; font-size: 0.92rem; }
  .facts strong { font-size: 1.9rem; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { border-bottom: none; border-right: 1px solid var(--border); }
  .pillar:last-child { border-right: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .phone-offset { display: block; margin-top: 4rem; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-nav { justify-content: flex-end; }
}
@media (min-width: 960px) {
  .hero { padding: 9rem 0 3rem; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .hero-stage { height: 620px; }
  .hero-stage .phone { width: 270px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature-grid.reverse .feature-copy { order: 2; }
  .section, .feature, .premium { padding: 7rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .main-nav a::after { transition: none; }
}
