/* =============================================================================
   SERVICIONET APPS - SISTEMA DE DISEÑO Y ESTILOS MODERNOS (DARK / LIGHT MODE)
   ============================================================================= */

:root {
  /* Tema Oscuro (Predeterminado) */
  --bg-body: #0b0f19;
  --bg-card: #111827;
  --bg-card-alt: #162032;
  --bg-surface: #1f2937;
  --bg-surface-hover: #2a3749;
  --text-main: #f9fafb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --border-color-light: #334155;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --bg-surface: #e2e8f0;
  --bg-surface-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-color-light: #cbd5e1;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.15);
  --warning: #d97706;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Contenedor */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografía */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* =============================================================================
   HEADER & NAVBAR
   ============================================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.brand-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.2s;
}

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

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
  position: relative;
  padding: 85px 0 75px 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 22px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.12;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.22rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trust-badges-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-item span:first-child {
  font-size: 1.15rem;
}

/* =============================================================================
   MODELO COMERCIAL SECTION (SETUP + ABONO)
   ============================================================================= */
.model-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.model-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.model-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.model-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
}

.model-card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.model-card-title {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.model-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.model-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.model-items-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.model-items-list .check-icon {
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
}

/* =============================================================================
   CATÁLOGO DE PRODUCTOS (GRID & TABS)
   ============================================================================= */
.catalog-section {
  padding: 90px 0;
}

.catalog-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.catalog-tab-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.catalog-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

.catalog-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  border-color: var(--border-color-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.product-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.product-category-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.product-code {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.product-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-short-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.product-features-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.product-features-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

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

.product-features-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.feat-check {
  color: var(--primary);
  font-weight: bold;
}

.product-card-pricing {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pricing-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pricing-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.pricing-val.highlight {
  color: var(--primary);
  font-size: 1.15rem;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-secondary-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* =============================================================================
   TABLA COMPARATIVA ERP
   ============================================================================= */
.comparison-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card-alt);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table th:first-child {
  width: 36%;
}

.comparison-table th.highlight-col, .comparison-table td.highlight-col {
  background: rgba(59, 130, 246, 0.06);
  border-left: 1px solid rgba(59, 130, 246, 0.2);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.feature-yes {
  color: #10b981;
  font-weight: bold;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feature-no {
  color: #64748b;
  font-size: 1.1rem;
}

/* =============================================================================
   CALCULADORA INTERACTIVA DE PRESUPUESTOS
   ============================================================================= */
.calculator-section {
  padding: 90px 0;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
}

.calc-config-pane {
  padding: 36px;
  border-right: 1px solid var(--border-color);
}

.calc-summary-pane {
  background: var(--bg-card-alt);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.calc-header h3 {
  font-size: 1.35rem;
}

.currency-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.btn-currency-toggle {
  background: none;
  border: none;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-currency-toggle.active {
  background: var(--primary);
  color: #ffffff;
}

.calc-form-group {
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--primary);
}

.calc-addons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-addon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s;
}

.calc-addon-item:hover {
  border-color: var(--border-color-light);
}

.calc-addon-item.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

.calc-addon-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.calc-addon-info {
  flex: 1;
}

.calc-addon-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.calc-addon-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.calc-addon-pricing {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.calc-addon-setup {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.calc-addon-monthly {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.calc-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.calc-summary-app-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.calc-summary-title-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.calc-summary-subtitle-main {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calc-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calc-total-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.calc-total-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.calc-total-val.grand {
  font-size: 1.85rem;
  color: var(--primary);
}

.calc-whatsapp-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =============================================================================
   SHOWROOMS & DEMOS EN VIVO
   ============================================================================= */
.demos-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.demo-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.demo-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.demo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  width: fit-content;
}

.demo-card-title {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.demo-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.demo-credentials-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: 18px;
  margin-top: auto;
}

/* =============================================================================
   MULTIPLATAFORMA (TAURI + CAPACITOR)
   ============================================================================= */
.multiplatform-section {
  padding: 80px 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.platform-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.platform-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.platform-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =============================================================================
   FAQ ACORDEÓN
   ============================================================================= */
.faq-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-item.active {
  border-color: var(--primary);
}

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

.faq-chevron {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-chevron {
  transform: rotate(90deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 20px 20px 20px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================================================
   MODAL DE DETALLE DE APLICACIÓN
   ============================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-alt);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* =============================================================================
   RESPONSIVE DESIGN (TABLETS & MÓVILES)
   ============================================================================= */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .calculator-card { grid-template-columns: 1fr; }
  .calc-config-pane { border-right: none; border-bottom: 1px solid var(--border-color); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-links, .nav-actions .btn-whatsapp { display: none; }
  .hamburger-btn { display: block; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    gap: 18px;
  }

  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .model-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
