@charset "UTF-8";

/* ==========================================================================
   ROOTJUMS TECH - ULTIMATE MODERN DESIGN SYSTEM (2025-2026 SAAS STANDARD)
   Linear / Vercel / Supabase Aesthetic with Atmospheric Deep Obsidian Canvas
   Fully integrated with Dynamic Tenant Branding (:root overrides)
   ========================================================================== */

:root {
  /* Brand Tokens (Inherited dynamically from MariaDB SiteSettings) */
  --primary: var(--brand-primary, #3B82F6);
  --primary-dark: var(--brand-primary-dark, #1D4ED8);
  --primary-light: var(--brand-primary-light, #60A5FA);
  --secondary: var(--brand-secondary, #10B981);
  --secondary-light: #34D399;
  --accent: var(--brand-accent, #F59E0B);
  --accent-light: #FBBF24;

  /* Deep Space Canvas Layers */
  --bg-base: var(--bg-primary, #030712);
  --bg-surface: var(--bg-secondary, #081022);
  --bg-card: rgba(11, 20, 42, 0.76);
  --bg-card-hover: rgba(16, 30, 60, 0.9);
  --bg-input: rgba(6, 12, 26, 0.88);
  --bg-input-focus: #091630;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-pure: #FFFFFF;
  --text-main: var(--text-primary, #F1F5F9);
  --text-muted: var(--text-secondary, #94A3B8);
  --text-subtle: #64748B;

  /* Borders & Glows */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.11);
  --border-hover: rgba(56, 189, 248, 0.45);
  --glow-primary: rgba(59, 130, 246, 0.35);
  --glow-secondary: rgba(16, 185, 129, 0.35);
  --glow-cyan: rgba(6, 182, 212, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
}

/* ==========================================================================
   1. RESET UNIVERSAL & AMBIENT CANVAS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric Ambient Canvas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

main.site-main-content {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

button {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

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

ul, ol {
  list-style: none;
}

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

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.flash-container {
  padding-top: 16px;
}

.section-padding {
  padding: 50px 0 70px 0;
}

.section-wrapper {
  padding: 70px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--secondary);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ==========================================================================
   2. NAVBAR LIMPIA, ESPACIOSA Y EJECUTIVA
   ========================================================================== */
.site-navbar {
  position: sticky;
  top: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 12px 0;
  transition: all 0.25s ease;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-frame {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.brand-wrapper:hover .brand-logo-frame {
  transform: scale(1.05);
  border-color: rgba(56, 189, 248, 0.5);
}

.brand-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.brand-text span {
  color: var(--secondary-light);
}

/* Center Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #FFFFFF;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.nav-pulse-badge {
  font-size: 0.62rem;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Right Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cart-trigger {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #FFFFFF !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-cart-trigger:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
}

.cart-trigger-icon {
  color: var(--secondary-light);
  font-size: 0.95rem;
}

.cart-badge-count {
  background: var(--secondary);
  color: var(--bg-base);
  font-weight: 800;
  font-size: 0.72rem;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #FFF;
  font-size: 1.15rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-collapse {
  display: none !important;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px;
}

.mobile-nav-collapse.active {
  display: block !important;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links a {
  color: var(--text-main);
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-links a.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}

/* ==========================================================================
   3. BOTONES MODERNOS & INTERACTIVOS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px var(--glow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 6px 24px var(--glow-primary);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--glow-secondary);
}

.btn-success:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  box-shadow: 0 6px 24px var(--glow-secondary);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}

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

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-glow {
  box-shadow: 0 0 20px var(--glow-primary);
}

.btn-text-action {
  color: #38BDF8;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: all 0.2s;
}

.btn-text-action:hover {
  color: #7DD3FC;
  transform: translateX(3px);
}

/* ==========================================================================
   4. AUTENTICACIÓN & FORMULARIOS CENTRADOS (.auth-page-wrapper)
   ========================================================================== */
.auth-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding: 40px 20px;
  width: 100%;
}

.form-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.form-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.auth-brand-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

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

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group {
  margin-bottom: 18px;
}

.form-label, .form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label i, .form-group label i {
  color: #60A5FA;
  margin-right: 4px;
  font-size: 0.8rem;
}

.required-star {
  color: #EF4444;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: #FFFFFF;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #38BDF8;
  background: var(--bg-input-focus);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.form-card-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.link-highlight {
  color: #60A5FA;
  font-weight: 600;
}

.link-highlight:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. CONTACTO & CANALES OFICIALES
   ========================================================================== */
.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.contact-channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.contact-channel-card.whatsapp-highlight {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card) 100%);
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-channel-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.contact-channel-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.contact-channel-data {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.schedule-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.contact-two-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
}

.portal-cta-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(11, 20, 42, 0.85) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.portal-cta-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.portal-cta-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.portal-cta-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.portal-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-features-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-features-list li i {
  color: #10B981;
  font-size: 0.95rem;
}

/* ==========================================================================
   6. PORTAFOLIO DE CLIENTES & CTA BANNER
   ========================================================================== */
.portfolio-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tab-btn {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-pill) !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-tab-btn:hover {
  color: #FFF !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.filter-tab-btn.active {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: #3B82F6 !important;
  color: #60A5FA !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3) !important;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
  margin-bottom: 50px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 40px -10px rgba(245, 158, 11, 0.2);
}

.portfolio-card-media {
  position: relative;
  height: 200px;
  background: #050A14;
  overflow: hidden;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.04);
}

.portfolio-client-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-category-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38BDF8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.portfolio-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.portfolio-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.portfolio-card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.portfolio-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding: 14px 22px;
  background: rgba(10, 16, 32, 0.4);
}

.portfolio-live-link {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
  transition: all 0.2s;
}

.portfolio-live-link:hover {
  color: #FFF;
}

/* CTA Banner Inferior */
.portfolio-cta-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
}

.cta-banner-content {
  max-width: 720px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FBBF24;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.portfolio-cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.25;
}

.portfolio-cta-banner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Modales */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-card {
  background: #091224;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  padding: 28px;
}

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

.custom-modal-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.custom-modal-close:hover {
  color: #FFF;
}

/* ==========================================================================
   7. TIENDA DE SOFTWARE & BUSCADOR
   ========================================================================== */
.page-hero-section {
  padding: 50px 0 25px 0;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.hero-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.store-search-container {
  max-width: 680px;
  margin: 0 auto 22px auto;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(11, 23, 51, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-input-wrapper:focus-within {
  border-color: #38BDF8;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.3);
  background: rgba(15, 30, 65, 0.95);
}

.search-icon {
  position: absolute;
  left: 20px;
  color: #38BDF8;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.search-input {
  width: 100%;
  background: transparent !important;
  border: none !important;
  color: #FFFFFF !important;
  padding: 15px 50px 15px 54px !important;
  font-size: 1rem !important;
  outline: none !important;
}

.search-input::placeholder {
  color: #64748B;
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}

.search-clear-btn:hover {
  color: #FFF;
}

.store-filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.filter-group-type {
  display: inline-flex;
  background: rgba(11, 23, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filter-pill-btn {
  background: transparent !important;
  border: none !important;
  color: #94A3B8 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill-btn:hover {
  color: #FFFFFF !important;
}

.filter-pill-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(16, 185, 129, 0.4)) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.category-pills-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cat-pill {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-pill) !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  color: #FFF !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.cat-pill.active {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: #3B82F6 !important;
  color: #60A5FA !important;
  font-weight: 700 !important;
}

.store-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.software-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(12px);
}

.software-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px -10px rgba(59, 130, 246, 0.25);
  background: var(--bg-card-hover);
}

.software-card-media {
  position: relative;
  height: 190px;
  background: #050A14;
  overflow: hidden;
}

.software-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.software-card:hover .software-card-img {
  transform: scale(1.04);
}

.software-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 17, 36, 0.95) 100%);
}

.software-promo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  z-index: 2;
}

.software-version-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.software-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.software-card-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.76rem;
  color: #38BDF8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot-inline {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot-inline.green {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.status-dot-inline.amber {
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

.software-card-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.software-card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.software-pricing-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-value-group {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-currency {
  font-size: 0.9rem;
  color: #34D399;
  font-weight: 700;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #34D399;
}

.price-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.purchase-mode-chip {
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.purchase-mode-chip.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.purchase-mode-chip.quote {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.software-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding: 16px 22px;
  background: rgba(10, 16, 32, 0.4);
}

.btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, #34D399, #10B981);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   8. CHECKOUT, DRAWER & MODALES
   ========================================================================== */
.checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-step.active {
  color: #38BDF8;
}

.checkout-step.completed {
  color: #34D399;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.checkout-step.active .step-num {
  background: #3B82F6;
  color: #FFF;
}

.checkout-step.completed .step-num {
  background: #10B981;
  color: #FFF;
}

.step-connector {
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.step-connector.active {
  background: #10B981;
}

.checkout-layout-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
}

.checkout-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
}

.checkout-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.checkout-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #080E1E;
  border-left: 1px solid var(--border-card);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 23, 51, 0.5);
}

.cart-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-close {
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.cart-drawer-close:hover {
  color: #FFF;
}

.cart-drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFF;
}

.cart-item-price {
  font-size: 0.88rem;
  color: #34D399;
  font-weight: 700;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 23, 51, 0.5);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Badges & Alerts */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
}

.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);
}

.badge-muted {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.badge-primary {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
}

/* ==========================================================================
   9. FOOTER CORPORATIVO
   ========================================================================== */
.site-footer {
  background: #02050D;
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 28px 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

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

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 340px;
  margin-top: 12px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

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

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
  .contact-two-cols {
    grid-template-columns: 1fr;
  }
  .checkout-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .navbar-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}
