/* =======================================================
   1. VARIABLES Y TOKENS (Design System)
   ======================================================= */
@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/MonaSans.woff2') format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  /* Colores */
  --lime: #B4E350;
  --olive: #82A832;
  --deep: #162003;
  --forest: #314406;
  --bg: #212E04;
  --cream: #F7FDEC;
  --fg2: #D7D7E4;
  --fg3: #B2B3CC;
  --fg4: #8489A9;
  --radius: 12px;
  
  /* Layout y Tipografía */
  --max: 1180px;
  --font: 'Mona Sans', system-ui, -apple-system, sans-serif;
  --section-padding: clamp(4.5rem, 10vw, 140px); /* Espaciado fluido */
}

/* =======================================================
   2. RESET Y BASE
   ======================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  background: #0f1703;
  color: var(--cream);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { position: relative; z-index: 3; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; width: 100%; }

/* Accesibilidad */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 9999; background: var(--lime); color: var(--deep); padding: 12px 24px; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 10px; top: 10px; }
*:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Video de fondo */
.site-video { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: 0; opacity: 0.5; filter: saturate(0.8) hue-rotate(-10deg); }
.site-video-overlay { position: fixed; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 30%, rgba(33,46,4,0.35) 0%, rgba(22,32,3,0.85) 55%, #0f1703 100%); pointer-events: none; }

/* =======================================================
   3. TIPOGRAFÍA Y SECCIONES
   ======================================================= */
section { position: relative; padding-top: var(--section-padding); padding-bottom: var(--section-padding); max-width: var(--max); margin: 0 auto; }
.section-padding { padding-left: 0; padding-right: 0; overflow: hidden; }

.section-num { display: block; font-weight: 500; font-stretch: 75%; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.section-header { margin-bottom: 48px; max-width: 640px; }
.section-header h2 { font-weight: 300; font-stretch: 125%; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--cream); margin-bottom: 16px; }
.section-lead { color: var(--fg2); font-size: 1.02rem; max-width: 50ch; }

/* Centrado especial para Testimonios */
.text-center .section-header { text-align: center; margin-left: auto; margin-right: auto; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
.section-header-block { padding-top: var(--section-padding); padding-bottom: 0; }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 32px; }
.hero-content { max-width: 900px; }
.hero-heading { font-weight: 300; font-stretch: 125%; font-size: clamp(2.4rem, 6.5vw, 4.8rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--cream); margin-bottom: 24px; }
.hero-heading .line { display: block; }
.hero-tag { color: var(--lime); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; margin-bottom: 8px; }
.hero-sub { color: var(--fg2); font-size: clamp(0.95rem, 1.6vw, 1.05rem); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* =======================================================
   4. BOTONES (Sistema Unificado sin !important)
   ======================================================= */
.btn, .pkg-btn, .wizard-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem; border-radius: 999px;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all 0.25s ease;
  border: 1px solid transparent; line-height: 1.2; cursor: pointer;
}
.btn-primary, .pkg-btn { background: var(--lime); color: var(--deep); }
.btn-primary:hover, .pkg-btn:hover { background: #c9f065; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247,253,236,0.3); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

/* =======================================================
   5. NAVEGACIÓN
   ======================================================= */
.desktop-nav { position: fixed; top: 36px; left: 50%; transform: translateX(-50%); z-index: 100; border-radius: 999px; backdrop-filter: blur(20px) saturate(1.4); background: rgba(22, 32, 3, 0.55); border: 1px solid rgba(247, 253, 236, 0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.3); max-width: calc(100vw - 32px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 14px 14px 24px; }
.nav-brand img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--fg2); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.nav-links a:hover { color: var(--lime); }
.nav-ghost { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(247,253,236,0.2); }
.nav-links a.nav-cta { padding: 7px 16px; border-radius: 999px; background: var(--lime); color: var(--deep); font-weight: 600; }
.nav-links a.nav-cta:hover { background: #c9f065; color: var(--deep); }
.mobile-nav { display: none; }

/* =======================================================
   6. SECCIONES ESPECÍFICAS (Projects, How, Manifesto, Packages)
   ======================================================= */
/* Projects Track */
.projects-pinned { width: 100%; max-width: none; padding: 40px 32px; overflow: hidden; display: flex; align-items: center; }
.projects-track { display: flex; gap: 24px; width: max-content; will-change: transform; }
.project-card { width: clamp(480px, 48vw, 720px); aspect-ratio: 4/3; background-size: contain; background-position: center; background-repeat: no-repeat; border-radius: var(--radius); background-color: rgba(22,32,3,0.4); }

/* How & Manifesto (Logos) */
.how, .manifesto { max-width: 100vw; width: 100vw; padding-left: 0; padding-right: 0; overflow: hidden; }
.how .container, .manifesto .container { max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.how .split-copy { max-width: 50%; }
.manifesto .split-copy { max-width: 50%; margin-left: auto; }

.how-logo-wrap, .manifesto-logo-wrap {
  position: absolute; top: 50%; width: 140vw; z-index: 1; pointer-events: none; opacity: 0;
  transform: translateY(-50%); /* Centrado vertical */
  will-change: transform, opacity;
}
.how-logo-wrap { left: 55vw; }
.manifesto-logo-wrap { right: 50vw; }
.how-logo-wrap img, .manifesto-logo-wrap img { width: 100%; height: auto; display: block; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.step { background: rgba(49,68,6,0.35); border: 1px solid rgba(247,253,236,0.08); border-radius: var(--radius); padding: 22px; }
.step-num { display: block; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--lime); margin-bottom: 10px; }
.step h3 { font-weight: 300; font-size: 1.4rem; color: var(--cream); margin-bottom: 6px; }
.step p { color: var(--fg2); font-size: 0.87rem; line-height: 1.5; }

/* Packages & Pricing */
.packages { padding-top: calc(var(--section-padding) + 40px); }
.tabs { display: inline-flex; gap: 4px; margin-bottom: 28px; background: rgba(49,68,6,0.35); padding: 4px; border-radius: 999px; border: 1px solid rgba(247,253,236,0.08); flex-wrap: wrap; }
.tab { padding: 9px 20px; border-radius: 999px; border: 0; background: none; color: var(--fg2); font-weight: 500; cursor: pointer; transition: .2s; }
.tab.active { background: var(--lime); color: var(--deep); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pkg { background: rgba(49,68,6,0.35); border: 1px solid rgba(247,253,236,0.1); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: .2s; }
.pkg:hover { border-color: var(--lime); background: rgba(49,68,6,0.55); }
.pkg h3 { font-size: 0.98rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.pkg-price { font-weight: 300; font-size: 1.65rem; color: var(--lime); margin: 6px 0 10px; }
.pkg-price .unit { font-size: 0.7rem; color: var(--fg3); margin-left: 4px; }
.pkg-pitch { color: var(--fg2); font-size: 0.83rem; line-height: 1.5; margin-bottom: 12px; flex: 1; }
.pkg-includes { list-style: none; font-size: 0.8rem; color: var(--fg3); margin-bottom: 16px; border-top: 1px solid rgba(247,253,236,0.1); padding-top: 12px; }
.pkg-includes li { padding: 2px 0; }

.pkg-actions { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; }
.pkg-actions .pkg-btn { flex: 1; text-align: center; font-size: 0.82rem; padding: 8px 18px; }
.pkg-actions .pkg-details-btn { margin: 0; padding: 8px 16px; background: transparent; border: 1px solid rgba(247,253,236,0.2); color: var(--cream); border-radius: 999px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: .2s; }
.pkg-actions .pkg-details-btn:hover { background: rgba(247,253,236,0.1); }

/* =======================================================
   7. TESTIMONIOS Y ABOUT
   ======================================================= */
/* Testimonios */
.testimonials-wall-section { width: 100%; max-width: none; overflow: hidden; padding-top: 0; padding-bottom: var(--section-padding); }
.testimonials-header { display: flex; justify-content: center; padding-bottom: 20px; }
.testimonials-controls { display: flex; gap: 8px; }
.test-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: rgba(49,68,6,0.35); border: 1px solid rgba(247,253,236,0.1); border-radius: 50%; color: var(--fg2); cursor: pointer; transition: .2s; }
.test-btn:hover { background: var(--lime); color: var(--deep); border-color: var(--lime); }

.testimonials-wall { display: flex; flex-direction: column; gap: 20px; }
.testimonials-row { display: flex; gap: 16px; width: max-content; will-change: transform; }
.testimonial { background: rgba(49,68,6,0.4); border: 1px solid rgba(247,253,236,0.08); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; width: 480px; transition: .3s; }
.testimonial:hover { transform: scale(1.02); border-color: var(--lime); background: rgba(49,68,6,0.75); z-index: 5; }
.testimonial blockquote { font-size: 1.02rem; color: var(--fg2); line-height: 1.55; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--fg3); }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { width: 48px; height: 48px; border-radius: 50%; background: var(--olive); color: var(--deep); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.92rem; }
.testimonial figcaption strong { color: var(--cream); font-weight: 600; font-size: 0.95rem; }

/* About */
.about .split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.about-text p { color: var(--fg2); font-size: 0.92rem; margin-bottom: 14px; line-height: 1.6; }
.about-lead { font-size: 1.1rem; color: var(--cream); }

/* =======================================================
   8. FAQ Y PÁGINAS LEGALES
   ======================================================= */
.faq-list { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.faq-list details { border-bottom: 1px solid rgba(247,253,236,0.1); padding: 4px 0; }
.faq-list summary { padding: 20px 0; cursor: pointer; font-weight: 500; font-size: 1rem; color: var(--cream); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--lime); font-size: 1.4rem; font-weight: 300; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 20px; color: var(--fg2); font-size: 0.9rem; line-height: 1.6; }

/* Legal Pages */
.legal-page { padding: 140px 32px 100px; max-width: 800px; margin: 0 auto; line-height: 1.8; color: var(--fg2); }
.legal-page h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--cream); margin-bottom: 1rem; }
.legal-page h3 { font-size: 1.4rem; color: var(--cream); margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 500; }
.legal-page p { margin-bottom: 1.5rem; }
.legal-page a { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }

/* =======================================================
   9. WIZARD (Modales y Formularios)
   ======================================================= */
.wizard-dialog { border: none; background: transparent; padding: 0; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; }
.wizard-dialog::backdrop { background: rgba(15, 23, 3, 0.8); backdrop-filter: blur(10px); }
.wizard-content { background: rgba(33, 46, 4, 0.95); border: 1px solid rgba(247, 253, 236, 0.1); border-radius: var(--radius); max-width: 600px; width: 90%; margin: 10vh auto; padding: 48px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; height: 85vh; max-height: 85vh; }
.wizard-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--fg2); font-size: 2rem; cursor: pointer; z-index: 10; }
.wizard-step { display: none; flex: 1; overflow-y: auto; padding-right: 8px; padding-bottom: 20px; }
.wizard-step.active { display: flex; flex-direction: column; }
.wizard-step h2 { font-weight: 300; font-size: 2rem; color: var(--cream); margin-bottom: 24px; }
.wizard-options { display: flex; flex-direction: column; gap: 12px; }
.wizard-options.multi { flex-direction: row; flex-wrap: wrap; }
.wizard-btn { background: rgba(49,68,6,0.8); border: 1px solid rgba(247,253,236,0.1); color: var(--cream); padding: 16px; border-radius: var(--radius); text-align: left; justify-content: flex-start; }
.wizard-btn:hover, .wizard-btn.active { background: var(--lime); color: var(--deep); border-color: var(--lime); }

.wizard-input-group { margin-bottom: 20px; text-align: left; }
.wizard-input-group label { display: block; font-size: 0.85rem; color: var(--fg3); margin-bottom: 8px; }
.wizard-input-group input, .wizard-step textarea { width: 100%; padding: 14px; background: rgba(22,32,3,0.5); border: 1px solid rgba(247,253,236,0.2); border-radius: var(--radius); color: var(--cream); }
.wizard-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--fg2); text-align: left; cursor: pointer; margin-bottom: 20px; }

/* Wizard Footer (Botones fijos abajo) */
.wizard-footer-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 10px 0; border-top: 1px solid rgba(247, 253, 236, 0.1); flex-shrink: 0; }
.wizard-footer-nav .btn-ghost { color: var(--cream); border-color: rgba(247,253,236,0.3); }
.wizard-footer-nav .btn-ghost:hover { background: rgba(247,253,236,0.1); }
.wizard-footer-nav .wizard-back { margin-right: auto; }
.wizard-footer-nav .wizard-next { margin-left: auto; }

.wizard-progress-bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: rgba(247, 253, 236, 0.1); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.wizard-progress-fill { height: 100%; background: var(--lime); width: 12.5%; transition: width 0.3s ease; }

/* Errores Wizard */
.error-msg { color: #FF6B6B; font-size: 0.85rem; margin-top: 12px; display: none; padding: 10px 14px; background: rgba(255, 51, 51, 0.12); border: 1px solid rgba(255, 51, 51, 0.4); border-radius: var(--radius); }
.error-msg.show { display: block; }

/* =======================================================
   10. FOOTER (Payload Style + Glow)
   ======================================================= */
.footer { padding: 80px 0 24px; border-top: 1px solid rgba(247,253,236,0.08); background: #0f1703; position: relative; z-index: 10; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 80px; }
.footer-links-group { display: flex; gap: 64px; justify-content: space-between; max-width: 450px; }
.footer-col-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg3); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--cream); font-size: 1rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--lime); }

.contact-form { display: flex; flex-direction: column; gap: 16px; margin: 0; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg3); }
.contact-form input, .contact-form select, .contact-form textarea { background: rgba(49,68,6,0.35); border: 1px solid rgba(247,253,236,0.1); border-radius: var(--radius); padding: 12px 14px; color: var(--cream); }
.contact-form button { align-self: flex-start; }
.form-status { font-size: 0.85rem; color: var(--lime); }

.footer-bottom { border-top: 1px solid rgba(247,253,236,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 16px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247,253,236,0.15); color: var(--fg2); transition: all 0.2s; }
.social-link:hover { border-color: var(--lime); color: var(--lime); }
.footer-legal { font-size: 0.82rem; color: var(--fg3); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-legal a { color: var(--fg3); text-decoration: none; }
.footer-legal a:hover { color: var(--lime); }
.footer-sep { color: var(--fg4); }

/* Efecto Glow Logo Footer */
.footer-logo-wrapper { position: relative; width: 100%; margin-top: 40px; cursor: crosshair; overflow: hidden; --x: -1000px; --y: -1000px; }
.footer-logo-dark { width: 100%; height: auto; display: block; filter: brightness(0.2); }
.footer-logo-glow-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: radial-gradient(circle 300px at var(--x) var(--y), rgba(255,255,255, 1) 0%, transparent 100%); mask-image: radial-gradient(circle 300px at var(--x) var(--y), rgba(255,255,255, 1) 0%, transparent 100%); }
.footer-logo-bright { width: 100%; height: auto; display: block; filter: brightness(1); }

/* =======================================================
   11. MODALES (Detalles de Paquete)
   ======================================================= */
.pkg-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 3, 0.85); backdrop-filter: blur(10px); z-index: 1000; visibility: hidden; opacity: 0; }
.pkg-modal { position: fixed; top: 50%; left: 50%; width: 90%; max-width: 600px; background: var(--bg); border: 1px solid var(--lime); border-radius: var(--radius); padding: 40px; z-index: 1001; visibility: hidden; opacity: 0; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.pkg-modal-content { display: flex; flex-direction: column; gap: 16px; }
.pkg-modal h3 { font-size: 1.8rem; color: var(--cream); }
.pkg-modal .pkg-price { font-size: 2.2rem; color: var(--lime); }
.pkg-modal .pkg-btn { text-align: center; margin-top: 20px; }
.pkg-modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--fg2); font-size: 2.5rem; cursor: pointer; }

/* =======================================================
   12. RESPONSIVE
   ======================================================= */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 1000; background: rgba(22, 32, 3, 0.65); backdrop-filter: blur(20px); border: 1px solid rgba(247, 253, 236, 0.15); border-radius: 999px; padding: 10px 20px; justify-content: space-between; align-items: center; }
  .mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--fg2); text-decoration: none; font-size: 0.65rem; }
  .mobile-nav-item.mobile-cta { background: var(--lime); color: var(--deep); padding: 8px 16px; border-radius: 999px; }
  .split-grid, .about .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .how .split-copy, .manifesto .split-copy { max-width: 100%; }
  .how-logo-wrap, .manifesto-logo-wrap { display: none; }
  .steps { grid-template-columns: 1fr; }
  .testimonial { width: 320px; }
  .projects-pinned { height: auto; min-height: 100vh; flex-direction: column; align-items: flex-start; padding: 40px 20px; }
  .projects-track { flex-direction: column; width: 100%; }
  .project-card { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-group { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .packages-grid { grid-template-columns: 1fr; }
  .wizard-content { padding: 28px; margin: 5vh auto; }
  .wizard-step h2 { font-size: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-video { display: none; }
}

/* ===== GLITCH EFFECT (About Photo) ===== */
.about-photo img {
  filter: url(#glitch-filter);
}
