/* =========================================================
   Consultoría Firbeda — "Crecé" edition
   Dark luxury · oro · animaciones · alto impacto
   ========================================================= */

:root {
  --bg:        #08070a;
  --bg-2:      #0d0c11;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --text:      #f5f1ea;
  --text-muted:#a6a098;
  --text-subtle:#6d685f;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);

  --gold-1: #ffe09a;
  --gold-2: #f5b544;
  --gold-3: #d98a2b;
  --gold-grad: linear-gradient(135deg, #ffe09a 0%, #f5b544 45%, #d98a2b 100%);
  --green:  #34d399;
  --red:    #f87171;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

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

::selection { background: var(--gold-2); color: #1a1206; }

:focus-visible { outline: 2.5px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold-2); color: #1a1206; padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.gold-text {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== Fondo FX ===================== */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  will-change: transform;
}
.glow-1 {
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  top: -18vw; right: -12vw;
  background: radial-gradient(circle, rgba(245,181,68,0.35), transparent 65%);
  animation: float1 18s var(--ease) infinite alternate;
}
.glow-2 {
  width: 55vw; height: 55vw; max-width: 640px; max-height: 640px;
  bottom: -20vw; left: -14vw;
  background: radial-gradient(circle, rgba(217,138,43,0.28), transparent 65%);
  animation: float2 22s var(--ease) infinite alternate;
}
@keyframes float1 { to { transform: translate(-8%, 12%) scale(1.15); } }
@keyframes float2 { to { transform: translate(10%, -10%) scale(1.1); } }
.grain {
  position: absolute; inset: -50%;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ===================== Nav ===================== */
.site-header { position: relative; }
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 2rem; max-width: var(--maxw); margin: 0 auto; width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(8, 7, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark { display: inline-flex; line-height: 0; border-radius: 10px; }
.logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.01em; color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.1rem; border-radius: 100px;
  background: var(--gold-grad); color: #1a1206 !important; font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(245,181,68,0.28);
  transition: transform 0.18s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,181,68,0.4); }

/* ===================== Hero ===================== */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 11vh, 8rem) 2rem clamp(7rem, 12vh, 9rem);
  min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: center;
}
.hero-inner { max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-1);
  background: rgba(245,181,68,0.08); border: 1px solid rgba(245,181,68,0.22);
  padding: 0.45rem 0.95rem; border-radius: 100px; margin-bottom: 1.75rem;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 0 0 rgba(245,181,68,0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,181,68,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(245,181,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,181,68,0); }
}

.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.9rem, 8.5vw, 6.5rem); line-height: 0.98;
  letter-spacing: -0.025em; margin-bottom: 1.75rem;
}
.hero-title .line { display: block; }
.hero-title em { font-weight: 400; letter-spacing: -0.01em; }

.hero-desc {
  font-size: clamp(1.0625rem, 2vw, 1.3rem); color: var(--text-muted);
  line-height: 1.6; max-width: 620px; margin-bottom: 2.25rem;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-trust { font-size: 0.875rem; color: var(--text-subtle); letter-spacing: 0.02em; }

/* ===================== Botones ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.975rem; font-weight: 600;
  padding: 0.95rem 1.6rem; text-decoration: none; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.2s;
  position: relative; overflow: hidden;
}
.btn span { transition: transform 0.2s; }
.btn:hover span { transform: translateX(4px); }

.btn-gold { background: var(--gold-grad); color: #1a1206; box-shadow: 0 8px 28px rgba(245,181,68,0.32); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); transition: left 0.6s var(--ease);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(245,181,68,0.48); }
.btn-gold:hover::after { left: 130%; }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--gold-2); background: var(--surface-2); }

/* ===================== Ticker ===================== */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02); overflow: hidden; padding: 0.85rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; gap: 3rem; white-space: nowrap; animation: ticker 26s linear infinite; }
.tick {
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text-muted); display: inline-flex; gap: 0.6rem; align-items: center;
}
.tick b { font-weight: 700; }
.tick .up { color: var(--green); }
.tick .down { color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===================== Stats ===================== */
.stats {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem,6vw,4.5rem) 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.stat-card:hover { border-color: rgba(245,181,68,0.4); transform: translateY(-4px); background: var(--surface-2); }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.6rem; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; }

/* ===================== Secciones base ===================== */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-header { margin-bottom: 3.5rem; max-width: 720px; }
.section-header--flush { margin-bottom: 1.75rem; }
.section-tag {
  display: inline-block; font-family: var(--font-display); font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em;
}
.section-desc { font-size: 1.0625rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.6; }

/* ===================== Servicios ===================== */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: transform 0.25s var(--ease), border-color 0.3s, background 0.3s;
  transform-style: preserve-3d; will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, rgba(245,181,68,0.6), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.card:hover { background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 13px;
  background: rgba(245,181,68,0.1); border: 1px solid rgba(245,181,68,0.22);
  color: var(--gold-1); margin-bottom: 1.35rem;
}
.card-icon svg { width: 25px; height: 25px; }
.card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.card p { font-size: 0.975rem; color: var(--text-muted); line-height: 1.6; }

/* ===================== Manifiesto ===================== */
.manifesto { padding: clamp(3rem, 7vw, 5.5rem) 0; text-align: center; }
.marquee {
  overflow: hidden; padding: 1rem 0; margin-bottom: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.75rem); letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(245,181,68,0.5); text-stroke: 1px rgba(245,181,68,0.5);
}
@keyframes marquee { to { transform: translateX(-50%); } }
.manifesto-text {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 5vw, 3.5rem);
  line-height: 1.2; max-width: 900px; margin: 0 auto; padding: 0 1rem;
}

/* ===================== Resultados ===================== */
.resultados-grid { display: grid; grid-template-columns: 280px 1fr; gap: 3.5rem; align-items: start; }
.resultados-figure {
  position: sticky; top: 110px; aspect-ratio: 1; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 20%, #2a1f0c 0%, #110d08 75%);
  border: 1px solid rgba(245,181,68,0.25); overflow: hidden;
}
.figure-num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 10vw, 6.5rem); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.figure-label { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.8125rem; font-weight: 600; color: var(--gold-1); margin-top: 0.5rem; }
.figure-glow {
  position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,181,68,0.35), transparent 70%);
  filter: blur(40px); animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 0.9; transform: scale(1.1); } }

.lead-quote {
  font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.35;
  color: var(--text); border-left: 3px solid var(--gold-2); padding-left: 1.4rem; margin-bottom: 2.25rem;
}
.result-list { list-style: none; display: grid; gap: 1rem; }
.result-list li { position: relative; padding-left: 2.25rem; color: var(--text-muted); font-size: 1.05rem; line-height: 1.5; }
.result-list li strong { color: var(--text); font-weight: 600; }
.result-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(245,181,68,0.15); box-shadow: inset 0 0 0 3px var(--gold-2);
}

/* ===================== Precios ===================== */
.price-card {
  position: relative; max-width: 860px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.price-glow {
  position: absolute; top: -40%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(245,181,68,0.22), transparent 70%); filter: blur(50px); pointer-events: none;
}
.price-head { position: relative; padding: 2.75rem; border-right: 1px solid var(--border); }
.price-label { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-1); margin-bottom: 0.75rem; }
.price-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 6vw, 3.75rem); line-height: 1; margin-bottom: 1rem; }
.price-value.gold-text { font-style: normal; }
.price-sub { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }
.price-includes { position: relative; list-style: none; padding: 2.75rem; display: grid; gap: 1rem; align-content: start; }
.price-includes li { position: relative; padding-left: 2rem; font-size: 0.975rem; color: var(--text-muted); line-height: 1.45; }
.price-includes li::before {
  content: ""; position: absolute; left: 0; top: 0.05em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(245,181,68,0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b544' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.price-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.75rem 2.75rem; border-top: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.price-terms { font-size: 0.875rem; color: var(--text-subtle); }

/* ===================== Contacto ===================== */
.contacto { max-width: 760px; margin: 0 auto; }
.install-block { border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.install-tabs { display: flex; gap: 0.3rem; padding: 0.45rem; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
.install-tab {
  flex: 1; padding: 0.7rem 1rem; background: transparent; border: none; border-radius: 10px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--text-subtle);
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.install-tab:hover { color: var(--text); }
.install-tab.active { color: #1a1206; background: var(--gold-grad); }
.install-panels { padding: 1.85rem; }
.install-panel { display: none; }
.install-panel.active { display: block; animation: fade 0.3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.install-code {
  display: block; font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 1rem; font-weight: 500;
  padding: 1.1rem 1.25rem; background: #000; color: var(--gold-1); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 1rem; text-decoration: none; transition: border-color 0.2s, transform 0.18s;
}
a.install-code:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.install-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ===================== Formulario ===================== */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.install-panel .form + .install-desc { margin-top: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-label { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.field-opt { font-weight: 400; color: var(--text-subtle); }
.form input, .form textarea {
  font-family: inherit; font-size: 0.975rem; padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); border-radius: 12px;
  color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-subtle); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--gold-2); background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(245,181,68,0.18);
}
.form textarea { resize: vertical; min-height: 100px; }
.form button { align-self: flex-start; margin-top: 0.3rem; }
.form .msg { font-size: 0.925rem; font-weight: 500; padding: 0.8rem 1rem; border-radius: 10px; }
.form .msg.success { color: #6ee7b7; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); }
.form .msg.error { color: #fca5a5; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.3); }

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; }
.footer-tag { font-size: 0.95rem; color: var(--text-muted); }
.footer-copy { font-size: 0.8125rem; color: var(--text-subtle); }

/* ===================== Reveal ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .resultados-grid { grid-template-columns: 1fr; gap: 2rem; }
  .resultados-figure { position: static; aspect-ratio: auto; padding: 2.5rem; max-width: 240px; }
  .price-card { grid-template-columns: 1fr; }
  .price-head { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .nav { padding: 0.85rem 1.25rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero, main, .footer-inner, .stats { padding-left: 1.25rem; padding-right: 1.25rem; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .price-head, .price-includes, .price-foot { padding: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
