:root {
  --primary: #0A2540;
  --primary-60: rgba(10,37,64,0.6);
  --primary-20: rgba(10,37,64,0.12);
  --secondary: #F39C12;
  --secondary-light: #f5b041;
  --success: #10b981;
  --paper: #f5f3ef;
  --paper-dark: #eae7e1;
  --white: #faf9f7;
  --sans: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--primary);
  overflow-x: hidden;
  font-weight: 400;
}

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='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.6;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(245,243,239,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--primary-20);
}

.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--primary-60); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

.btn-ghost {
  text-decoration: none; font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary);
  font-weight: 500; padding: 0.6rem 1.4rem; border: 1px solid var(--primary-20);
  transition: all 0.25s;
}
.btn-ghost:hover { background: var(--primary); color: var(--paper); border-color: var(--primary); }

.btn-primary {
  text-decoration: none; font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper);
  font-weight: 600; padding: 0.65rem 1.6rem; background: var(--primary);
  border: 1px solid var(--primary); transition: all 0.25s;
}
.btn-primary:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--primary); }

/* HERO */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: 80px; position: relative; overflow: hidden; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 6rem 4rem 6rem 4rem; position: relative; z-index: 2; }
.hero-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary); font-weight: 600; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.hero-label::before { content: ''; display: block; width: 2.5rem; height: 1px; background: var(--secondary); }
.hero-title { font-family: var(--sans); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--primary); margin-bottom: 1.8rem; }
.hero-title em { font-style: normal; color: var(--secondary); }
.hero-sub { font-size: 1rem; line-height: 1.6; color: var(--primary-60); max-width: 420px; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--primary-20); }
.stat-num { font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-60); margin-top: 0.3rem; font-weight: 500; }
.hero-right { position: relative; background: var(--primary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-right::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(243,156,18,0.15) 0%, transparent 60%); }
.dashboard-preview { position: relative; width: 85%; max-width: 560px; z-index: 1; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.dash-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 2px; padding: 1.5rem; margin-bottom: 1rem; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.dash-title { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 500; }
.dash-badge { font-size: 0.65rem; padding: 0.2rem 0.6rem; background: rgba(243,156,18,0.2); color: var(--secondary-light); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 2px; }
.progress-list { display: flex; flex-direction: column; gap: 0.85rem; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.progress-name { font-size: 0.78rem; color: rgba(255,255,255,0.75); }
.progress-pct { font-size: 0.9rem; color: rgba(255,255,255,0.9); font-weight: 600; }
.progress-bar { height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--secondary), var(--success)); border-radius: 1px; }
.dash-mini-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
.mini-stat { text-align: center; padding: 0.8rem 0.5rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.mini-stat-num { font-size: 1.5rem; color: rgba(255,255,255,0.9); font-weight: 600; }
.mini-stat-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-top: 0.2rem; }

/* SECCIONES GENERALES */
section { padding: 7rem 4rem; }
.section-label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--secondary); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.section-label::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--secondary); }
.section-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--primary); margin-bottom: 1.2rem; letter-spacing: -0.01em; }
.section-sub { font-size: 0.95rem; line-height: 1.6; color: var(--primary-60); max-width: 500px; }

/* FEATURES */
.features { background: var(--white); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-top { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: end; margin-bottom: 5rem; }
.features-desc { color: var(--primary-60); line-height: 1.6; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--primary-20); border: 1px solid var(--primary-20); }
.feature-card { background: var(--white); padding: 2.5rem 2rem; transition: background 0.25s; position: relative; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--secondary); transition: width 0.35s ease; }
.feature-card:hover::after { width: 100%; }
.feature-card:hover { background: #f7f5f1; }
.feature-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--primary-20); margin-bottom: 1.5rem; }
.feature-icon svg { width: 18px; height: 18px; stroke: var(--secondary); fill: none; stroke-width: 1.5; }
.feature-name { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.65rem; color: var(--primary); }
.feature-text { font-size: 0.84rem; line-height: 1.6; color: var(--primary-60); }

/* HOW IT WORKS */
.how { background: var(--paper); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 4rem; background: var(--primary-20); }
.how-step { background: var(--paper); padding: 2.5rem 2rem; }
.step-num { font-size: 3.5rem; font-weight: 700; color: var(--primary-20); line-height: 1; margin-bottom: 1.2rem; }
.step-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.65rem; color: var(--primary); }
.step-text { font-size: 0.82rem; line-height: 1.6; color: var(--primary-60); }

/* PRICING */
.pricing { background: var(--primary); }
.pricing-inner { max-width: 1200px; margin: 0 auto; }
.pricing .section-label { color: var(--secondary); }
.pricing .section-label::before { background: var(--secondary); }
.pricing .section-title { color: var(--white); }
.pricing .section-sub { color: rgba(255,255,255,0.45); }
.pricing-header { text-align: center; margin-bottom: 4rem; }
.pricing-header .section-label { justify-content: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); }
.plan { background: var(--primary); padding: 2.5rem 2rem; position: relative; transition: background 0.25s; }
.plan:hover { background: rgba(255,255,255,0.03); }
.plan-featured { background: rgba(243,156,18,0.06); border-left: 2px solid var(--secondary); }
.plan-badge { display: inline-block; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--secondary); border: 1px solid rgba(243,156,18,0.4); padding: 0.25rem 0.75rem; margin-bottom: 1.5rem; border-radius: 2px; }
.plan-name { font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 0.5rem; }
.plan-price-original { font-size: 0.85rem; color: rgba(255,255,255,0.35); text-decoration: line-through; margin-bottom: 0.25rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.5rem; }
.price-currency { font-size: 1rem; color: rgba(255,255,255,0.5); }
.price-amount { font-size: 2.5rem; font-weight: 700; color: var(--secondary); line-height: 1; }
.price-period { font-size: 0.78rem; color: rgba(255,255,255,0.35); align-self: flex-end; margin-bottom: 0.2rem; }
.price-save { font-size: 0.7rem; color: var(--success); margin-bottom: 1.5rem; }
.plan-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 1.5rem 0; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.6); padding: 0.4rem 0; }
.check { flex-shrink: 0; width: 14px; height: 14px; }
.check-gold { stroke: var(--secondary); fill: none; stroke-width: 2; }
.plan-cta { display: block; text-align: center; text-decoration: none; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.8rem 1rem; font-weight: 600; transition: all 0.25s; border-radius: 2px; }
.plan-cta-ghost { border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.plan-cta-ghost:hover { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.95); }
.plan-cta-gold { background: var(--secondary); color: var(--primary); border: 1px solid var(--secondary); }
.plan-cta-gold:hover { background: var(--secondary-light); }

/* TESTIMONIALS */
.testimonials { background: var(--paper-dark); }
.test-inner { max-width: 1200px; margin: 0 auto; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--primary-20); border: 1px solid var(--primary-20); margin-top: 4rem; }
.test-card { background: var(--paper-dark); padding: 2rem; transition: background 0.25s; }
.test-card:hover { background: var(--paper); }
.test-quote { font-size: 0.95rem; line-height: 1.6; color: var(--primary); margin-bottom: 1.5rem; }
.test-author { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar { width: 36px; height: 36px; background: var(--primary-20); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: var(--primary-60); flex-shrink: 0; border-radius: 50%; }
.test-name { font-size: 0.78rem; font-weight: 600; color: var(--primary); }
.test-role { font-size: 0.72rem; color: var(--primary-60); margin-top: 0.1rem; }

/* ABOUT */
.about { background: var(--white); }
.about-inner { max-width: 1200px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--primary-20); border: 1px solid var(--primary-20); margin-top: 3rem; }
.about-card { background: var(--white); padding: 2.5rem; transition: background 0.25s; }
.about-card:hover { background: #f7f5f1; }
.about-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
.about-card p { font-size: 0.85rem; line-height: 1.6; color: var(--primary-60); }

/* FAQ */
.faq { background: var(--paper); }
.faq-inner { max-width: 900px; margin: 0 auto; }
.faq-grid { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--primary-20); padding: 1.2rem 0; }
.faq-question { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--secondary); }
.faq-answer { font-size: 0.85rem; line-height: 1.6; color: var(--primary-60); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; margin-top: 0.5rem; }
.faq-item.open .faq-question::after { content: '−'; }

/* TRUST */
.trust { background: var(--paper-dark); text-align: center; padding: 2rem 4rem; }
.trust-badges { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--primary-60); font-weight: 500; }
.trust-badge::before { content: '✓'; color: var(--success); font-weight: 700; }

/* CTA */
.cta-section { background: var(--paper); text-align: center; padding: 6rem 4rem; position: relative; overflow: hidden; }
.cta-section::before { content: 'PRISMANEX'; position: absolute; font-size: 16vw; font-weight: 800; color: var(--primary-20); opacity: 0.4; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-section .section-label { justify-content: center; }
.cta-section .section-label::before { display: none; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* CONTACT */
.contact { background: var(--white); }
.contact-inner { max-width: 1200px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon { width: 40px; height: 40px; border: 1px solid var(--primary-20); display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.contact-text { font-size: 0.85rem; color: var(--primary-60); }
.contact-text strong { color: var(--primary); font-weight: 600; }
.map-placeholder { background: var(--paper-dark); border-radius: 2px; height: 280px; display: flex; align-items: center; justify-content: center; color: var(--primary-60); border: 1px solid var(--primary-20); }

/* FOOTER */
footer { background: var(--primary); padding: 3rem 4rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem; }
.footer-desc { font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.35); margin-top: 1rem; }
.footer-col-title { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { text-decoration: none; font-size: 0.8rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: rgba(255,255,255,0.25); }

/* MOBILE MENU */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--paper); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.5rem; font-weight: 500; text-decoration: none; color: var(--primary); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--secondary); }
.mobile-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--primary); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 4rem 2rem; min-height: 100vh; }
  .features-top { grid-template-columns: 1fr; gap: 2rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  section { padding: 4rem 2rem; }
  .cta-section { padding: 4rem 2rem; }
  .trust { padding: 2rem; }
  footer { padding: 2rem; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { text-align: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions a { text-align: center; }
  .trust-badges { flex-direction: column; align-items: center; gap: 0.8rem; }
  .pricing-header .section-sub { max-width: 100%; }
}
</style>
