@font-face {
  font-family: 'Satoshi';
  src: url('./assets/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('./assets/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('./assets/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('./assets/Satoshi-Black.woff2') format('woff2');
  font-weight: 800 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* MODO OSCURO (Default) */
  --bg: #141416;
  --surface: #1E1F22;
  --border: #2F3035;
  --text: #F4F3F0;
  --muted: #A3A7AD;
  --accent: #FF7A26;
  --cta: #FF6B00;
  --on-cta: #141416;
  --soft: #232428;

  /* Estados */
  --state-success: #2F7D5C;
  --state-error: #C4453D;
  --state-warning: #A8741A;
  
  /* Sombras y elevaciones Premium */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
}

:root[data-theme="claro"] {
  /* MODO CLARO */
  --bg: #F4F3F0;
  --surface: #FFFFFF;
  --border: #E2E3E5;
  --text: #141416;
  --muted: #5D6167;
  --accent: #C25200;
  --cta: #FF6B00;
  --on-cta: #141416;
  --soft: #ECEBE7;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Satoshi', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  padding-top: 68px; /* Compensación para la barra de navegación fija */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cta);
}

.only-dark { display: block; }
.only-light { display: none; }

:root[data-theme="claro"] .only-dark { display: none !important; }
:root[data-theme="claro"] .only-light { display: block !important; }

/* Utility Classes */
.b-cols {
  display: grid;
}

@media (max-width: 920px) {
  .b-cols {
    grid-template-columns: 1fr !important;
  }
  .b-hide-m {
    display: none !important;
  }
}

/* Base Animations */
@keyframes b-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes b-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.rise-anim {
  animation: b-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rise-anim-delay {
  animation: b-rise 0.6s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scroll Animations (Intersection Observer) */
.scroll-anim {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up {
  transform: translateY(20px);
}

.scroll-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base Components */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text);
}

.btn-primary {
  background: var(--cta);
  color: #F4F3F0 !important;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.2s ease;
  display: inline-block;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cta) 35%, transparent);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--cta) 45%, transparent);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cta) 30%, transparent);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.2s ease;
  display: inline-block;
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--text);
  background: var(--surface);
}

.section-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 120px 28px 70px;
}

.label-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card {
  box-shadow: var(--shadow-sm);
}

.premium-card:hover {
  border-color: color-mix(in srgb, var(--border) 50%, var(--text));
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.hero-system-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
}

.hero-system-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  border-color: color-mix(in srgb, var(--border) 50%, var(--text));
}

:root[data-theme="claro"] .hero-system-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-btn:hover {
  color: var(--cta);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content.open {
  max-height: 250px;
}

.faq-text {
  margin: 0;
  padding: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 680px;
}

/* Custom Range Input */
input[type=range] {
  flex: 1;
  accent-color: var(--cta);
  cursor: pointer;
}

/* Inputs */
.form-input {
  background: #FFFFFF;
  border: 1px solid #141416;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 15px;
  color: #141416;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: #5D6167;
  opacity: 1;
}

.form-input:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 20%, transparent);
}

/* Form Submit Loading State */
#form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
