/* style.css - DiGitax Premium Landing Page Styling */

/* --- CSS Variables & Design System --- */
:root {
  --bg-dark: #090d16;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent: #059669;
  --accent-hover: #047857;
  
  --glow-purple: rgba(79, 70, 229, 0.15);
  --glow-teal: rgba(5, 150, 105, 0.12);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  line-height: 1.6;
  color: var(--text-muted);
}

strong {
  color: var(--text-main);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.logo-glow {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.logo .dot {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all var(--transition-fast);
}

/* --- Dropdown Menu (Acceder) --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  z-index: 1000;
  margin-top: 8px;
  padding: 6px 0;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero-glow-purple {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-teal {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--glow-teal) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-new {
  align-self: flex-start;
  background: rgba(79, 70, 229, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(79, 70, 229, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 60%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
}

/* --- Hero Dual CTAs --- */
.hero-actions-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.funnel-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funnel-cta .btn-primary, .funnel-cta .btn-accent {
  font-size: 13.5px;
  text-align: center;
  padding: 14px 16px;
  border-radius: 8px;
}

.cta-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* --- Trust Badges --- */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.badge-trust {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Interactive Scan Widget --- */
.demo-widget {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
}

.demo-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.demo-header h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.demo-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoice-box {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
}

.invoice-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

.invoice-field {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.invoice-field.highlighted {
  border: 1px solid transparent;
}

.invoice-field.scanning {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--text-main);
}

.invoice-field.scanned {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--text-main);
}

.scanner-line {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
  z-index: 10;
}

@keyframes scanAnimation {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.btn-demo-trigger {
  background: var(--primary);
  border: none;
  color: #ffffff;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-demo-trigger:hover {
  background: var(--primary-hover);
}

.table-606-container {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
}

.table-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.table-606 {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  text-align: left;
}

.table-606 th, .table-606 td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-color);
}

.table-606 th {
  color: var(--text-muted);
  font-weight: 600;
}

.table-606 td {
  font-family: monospace;
  color: var(--text-muted);
}

.table-606 tr.highlight {
  background: rgba(5, 150, 105, 0.15);
}

.table-606 tr.highlight td {
  color: var(--text-main);
  font-weight: 600;
}

.badge-gasto {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}

.status-msg {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

/* --- Detailed Features (B2B & B2C) --- */
.b2b-section, .b2c-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.b2b-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.b2c-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, var(--bg-dark) 100%);
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px auto;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 60%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grid-features-detailed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition-fast);
}

.feature-detail-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 10px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7d2fe;
}

.feature-detail-card h3 {
  font-size: 20px;
}

.feature-detail-card p {
  font-size: 14.5px;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: rgba(79, 70, 229, 0.2);
}

.step-card h3 {
  font-size: 20px;
}

.step-card p {
  font-size: 14px;
}

/* --- Pricing Section --- */
.pricing {
  position: relative;
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, var(--bg-dark) 100%);
  overflow: hidden;
}

.pricing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--glow-teal) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.pricing-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.premium-card {
  border-color: rgba(79, 70, 229, 0.4);
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.pricing-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.pricing-card-header h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.pricing-card-header p {
  font-size: 13.5px;
}

.price-box {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}

.price-box .currency {
  font-size: 24px;
  align-self: flex-start;
  margin-top: 4px;
}

.price-box .amount {
  font-size: 54px;
  line-height: 1;
}

.price-box .period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.price-disclaimer {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  margin-top: -12px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features-list li {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --- FAQ Section --- */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.01);
}

.faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 14px;
}

/* --- Download Ecosystem Section --- */
.downloads-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.app-card-glow-purple, .app-card-glow-teal, .app-card-glow-blue {
  position: absolute;
  top: -30%;
  right: -30%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.3;
}

.app-card-glow-purple { background-color: var(--primary); }
.app-card-glow-teal { background-color: var(--accent); }
.app-card-glow-blue { background-color: #2563eb; }

.app-icon {
  font-size: 32px;
}

.app-card h3 {
  font-size: 20px;
}

.app-card p {
  font-size: 13.5px;
  flex-grow: 1;
}

.app-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.app-links .btn-primary, .app-links .btn-secondary {
  width: 100%;
  font-size: 13px;
  padding: 12px;
}

/* --- Footer --- */
.footer {
  background: #05080e;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 64px;
  padding-bottom: 56px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-info p {
  font-size: 14px;
  max-width: 320px;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-links a, .footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--text-main);
}

.footer-contact p {
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
}

/* --- Mobile Navigation Dropdown Menu --- */
.nav-menu.open {
  display: flex;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  flex-direction: column;
  padding: 24px;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
}

/* --- Responsive Styling --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .badge-new {
    align-self: center;
  }
  .hero-actions-dual {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 12px auto 0 auto;
  }
  .trust-badges {
    align-items: center;
  }
  .grid-features-detailed {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pricing-grid-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
  }
  .hero h1 {
    font-size: 36px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
