/* ==========================================================================
   SOFTPROCA - IDENTIDAD VISUAL & ESTILOS GLOBALES
   "¡Somos tu aliado tecnológico!"
   SOPORTE PARA MODO OSCURO (DARK) Y MODO CLARO (LIGHT)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ==========================================================================
   VARIABLES DE COLOR & TEMAS
   ========================================================================== */

:root, [data-theme="light"] {
  /* Color Acento de Marca Softproca */
  --sp-orange: #FF5A00;
  --sp-orange-light: #FF701E;
  --sp-orange-dark: #D94800;
  --sp-orange-glow: rgba(255, 90, 0, 0.35);
  --sp-orange-dim: rgba(255, 90, 0, 0.08);

  /* Fondos Modo Claro Oficial (Blanco Puro & Gris Tecnológico Sutil) */
  --sp-bg-darkest: #F1F5F9;
  --sp-bg-dark: #FFFFFF;
  --sp-bg-card: #FFFFFF;
  --sp-bg-card-hover: #F8FAFC;
  --sp-bg-card-alt: #F1F5F9;
  --sp-bg-inner: #F8FAFC;
  --sp-input-bg: #FFFFFF;
  --sp-ticker-bg: #F8FAFC;
  --sp-topbar-bg: #FFFFFF;
  --sp-navbar-bg: rgba(255, 255, 255, 0.96);
  --sp-banner-gradient: linear-gradient(135deg, #FFFFFF 0%, #FFF7F2 100%);
  --sp-support-gradient: linear-gradient(135deg, rgba(255, 90, 0, 0.08) 0%, #FFFFFF 100%);
  --sp-footer-bg: #0F172A;

  /* Bordes & Sombras Suaves */
  --sp-border: rgba(0, 0, 0, 0.08);
  --sp-border-hover: rgba(255, 90, 0, 0.5);
  --sp-border-active: rgba(255, 90, 0, 0.6);
  --sp-border-glow: 0 0 15px rgba(255, 90, 0, 0.25);
  --sp-shadow-card: 0 6px 24px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --sp-shadow-glow: 0 0 20px rgba(255, 90, 0, 0.2);
  --sp-shadow-glow-strong: 0 0 30px rgba(255, 90, 0, 0.35);

  /* Textos & Tipografía de Alto Contraste */
  --sp-text-primary: #1E293B;
  --sp-text-secondary: #475569;
  --sp-text-muted: #64748B;
  --sp-text-orange: #FF5A00;
  --sp-heading-color: #0F172A;

  /* Elementos */
  --sp-pill-bg: #F1F5F9;
  --sp-pill-text: #1E293B;
  --sp-grid-line: rgba(0, 0, 0, 0.035);
  --sp-radial-glow1: rgba(255, 90, 0, 0.06);
  --sp-radial-glow2: rgba(255, 90, 0, 0.03);

  --sp-color-scheme: light;
}

[data-theme="dark"] {
  /* Color Acento de Marca Softproca */
  --sp-orange: #FF5A00;
  --sp-orange-light: #FF7726;
  --sp-orange-dark: #D94800;
  --sp-orange-glow: rgba(255, 90, 0, 0.45);
  --sp-orange-dim: rgba(255, 90, 0, 0.12);

  /* Fondos Modo Oscuro (Tech Space Dark) */
  --sp-bg-darkest: #07080A;
  --sp-bg-dark: #0D0F14;
  --sp-bg-card: #131720;
  --sp-bg-card-hover: #191E2A;
  --sp-bg-card-alt: #161A24;
  --sp-bg-inner: #0A0C11;
  --sp-input-bg: #0A0C11;
  --sp-ticker-bg: #0B0D12;
  --sp-topbar-bg: #07080A;
  --sp-navbar-bg: rgba(13, 15, 20, 0.92);
  --sp-banner-gradient: linear-gradient(135deg, #171A24 0%, #10121A 100%);
  --sp-support-gradient: linear-gradient(135deg, rgba(255, 90, 0, 0.18) 0%, rgba(13, 15, 20, 0.95) 100%);
  --sp-footer-bg: #07080A;

  /* Bordes & Sombras */
  --sp-border: rgba(255, 255, 255, 0.08);
  --sp-border-hover: rgba(255, 90, 0, 0.45);
  --sp-border-active: rgba(255, 90, 0, 0.5);
  --sp-border-glow: 0 0 15px rgba(255, 90, 0, 0.35);
  --sp-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
  --sp-shadow-glow: 0 0 25px rgba(255, 90, 0, 0.25);
  --sp-shadow-glow-strong: 0 0 35px rgba(255, 90, 0, 0.45);

  /* Textos & Tipografía */
  --sp-text-primary: #F3F4F6;
  --sp-text-secondary: #9CA3AF;
  --sp-text-muted: #6B7280;
  --sp-text-orange: #FF661A;
  --sp-heading-color: #FFFFFF;

  /* Elementos */
  --sp-pill-bg: #0A0C11;
  --sp-pill-text: #D1D5DB;
  --sp-grid-line: rgba(255, 255, 255, 0.02);
  --sp-radial-glow1: rgba(255, 90, 0, 0.07);
  --sp-radial-glow2: rgba(255, 90, 0, 0.05);

  --sp-color-scheme: dark;
}

/* Tipografía y Dimensiones Globales */
:root {
  --sp-font-head: 'Rajdhani', -apple-system, sans-serif;
  --sp-font-body: 'Inter', -apple-system, sans-serif;
  --sp-font-mono: 'JetBrains Mono', monospace;

  --sp-radius-sm: 6px;
  --sp-radius-md: 12px;
  --sp-radius-lg: 18px;
  --sp-radius-xl: 24px;

  --sp-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: var(--sp-color-scheme);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--sp-font-body);
  background-color: var(--sp-bg-dark);
  color: var(--sp-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, var(--sp-radial-glow1) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, var(--sp-radial-glow2) 0%, transparent 45%),
    linear-gradient(var(--sp-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sp-grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--sp-bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #3b4252;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sp-orange);
}

/* Tipografía de Encabezados */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sp-font-head);
  letter-spacing: 0.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sp-heading-color);
  transition: color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--sp-transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

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

/* ==========================================================================
   COMPONENTES UI & BADGES
   ========================================================================== */

.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--sp-orange-dim);
  border: 1px solid rgba(255, 90, 0, 0.35);
  border-radius: 999px;
  color: var(--sp-orange-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-tech .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--sp-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--sp-orange);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .subtitle {
  color: var(--sp-orange);
  font-family: var(--sp-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-header .title {
  font-size: 2.5rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--sp-heading-color);
}

.section-header .description {
  color: var(--sp-text-secondary);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==========================================================================
   CABECERA DE PÁGINAS INTERNAS (MULTI-PAGE BANNER)
   ========================================================================== */

.page-header-banner {
  padding: 60px 0 50px;
  background: var(--sp-banner-gradient);
  border-bottom: 1px solid var(--sp-border);
  position: relative;
  overflow: hidden;
}

.page-header-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--sp-orange-glow) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-family: var(--sp-font-mono);
  color: var(--sp-text-muted);
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: var(--sp-text-secondary);
}

.breadcrumb-nav a:hover {
  color: var(--sp-orange);
}

.breadcrumb-nav span {
  color: var(--sp-orange);
}

.page-title {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.1;
  color: var(--sp-heading-color);
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--sp-text-secondary);
  max-width: 720px;
}

/* Grid de Navegación Rápida en Inicio */
.overview-sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: -40px 0 60px;
  position: relative;
  z-index: 10;
}

.overview-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 26px 22px;
  transition: var(--sp-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--sp-shadow-card);
}

.overview-card:hover {
  border-color: var(--sp-orange);
  transform: translateY(-6px);
  box-shadow: var(--sp-shadow-glow);
}

.overview-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--sp-radius-md);
  background: var(--sp-orange-dim);
  border: 1px solid rgba(255, 90, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--sp-orange);
  margin-bottom: 18px;
}

.overview-card-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--sp-heading-color);
}

.overview-card-desc {
  font-size: 0.88rem;
  color: var(--sp-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.overview-card-link {
  font-family: var(--sp-font-head);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sp-orange-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.overview-card:hover .overview-card-link {
  color: var(--sp-orange);
  gap: 10px;
}

/* Buscador de Productos */
.search-bar-wrap {
  max-width: 500px;
  margin: 0 auto 30px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 13px 20px 13px 48px;
  background: var(--sp-input-bg);
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  color: var(--sp-text-primary);
  font-size: 0.95rem;
  transition: var(--sp-transition);
}

.search-input:focus {
  border-color: var(--sp-orange);
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.25);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-text-muted);
  font-size: 1rem;
}

@media (max-width: 992px) {
  .overview-sections-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 10px;
  }
}

@media (max-width: 580px) {
  .overview-sections-grid {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 2.2rem;
  }
}

/* Botones Tech */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--sp-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: var(--sp-transition);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, #FF6F1A 0%, var(--sp-orange) 100%);
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-glow-strong);
}

.btn-secondary {
  background: var(--sp-bg-card);
  color: var(--sp-heading-color);
  border: 1px solid var(--sp-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--sp-orange-dim);
  border-color: var(--sp-orange);
  color: var(--sp-orange);
  transform: translateY(-2px);
}

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

.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ==========================================================================
   TOP BAR & NAVBAR
   ========================================================================== */

.topbar {
  background: var(--sp-topbar-bg);
  border-bottom: 1px solid var(--sp-border);
  font-size: 0.85rem;
  padding: 8px 0;
  color: var(--sp-text-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-info span, .topbar-info a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar-info a:hover {
  color: var(--sp-orange);
}

.topbar-slogan {
  color: var(--sp-orange-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sp-navbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sp-border);
  transition: var(--sp-transition);
}

.navbar.scrolled {
  box-shadow: var(--sp-shadow-card);
  border-bottom-color: rgba(255, 90, 0, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 14px;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.nav-link {
  font-family: var(--sp-font-head);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--sp-text-secondary);
  padding: 6px 4px;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--sp-heading-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sp-orange);
  transition: var(--sp-transition);
  box-shadow: 0 0 8px var(--sp-orange);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Botón Switcher Tema (Dark / Light / Auto) */
.theme-toggle-btn {
  background: var(--sp-bg-card);
  color: var(--sp-heading-color);
  border: 1px solid var(--sp-border);
  padding: 9px 13px;
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sp-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--sp-transition);
  user-select: none;
}

.theme-toggle-btn:hover {
  background: var(--sp-orange-dim);
  border-color: var(--sp-orange);
  color: var(--sp-orange);
}

.theme-toggle-btn .theme-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
  transform: rotate(20deg);
}

.cart-toggle-btn {
  position: relative;
  background: var(--sp-bg-card);
  color: var(--sp-heading-color);
  border: 1px solid var(--sp-border);
  padding: 9px 13px;
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sp-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--sp-transition);
}

.cart-toggle-btn:hover {
  background: var(--sp-orange-dim);
  border-color: var(--sp-orange);
}

.cart-badge-count {
  background: var(--sp-orange);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  min-width: 18px;
  text-align: center;
}

.mobile-toggle {
  display: none;
  background: transparent;
  color: var(--sp-heading-color);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.08;
  margin: 18px 0 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-headline .highlight {
  color: var(--sp-orange);
  text-shadow: 0 0 20px rgba(255, 90, 0, 0.4);
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--sp-text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 25px;
  border-top: 1px solid var(--sp-border);
}

.stat-item .stat-num {
  font-family: var(--sp-font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sp-heading-color);
  display: flex;
  align-items: center;
  gap: 2px;
}

.stat-item .stat-num span {
  color: var(--sp-orange);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tarjeta Hero Visual Tech */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-xl);
  padding: 30px;
  position: relative;
  box-shadow: var(--sp-shadow-card);
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--sp-orange) 0%, transparent 60%);
  opacity: 0.15;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.hero-card-img-wrap {
  background: var(--sp-bg-inner);
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 90, 0, 0.2);
  margin-bottom: 22px;
  position: relative;
}

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

.hero-card:hover .hero-card-img-wrap img {
  transform: scale(1.03);
}

.hero-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--sp-border);
  padding-top: 18px;
}

.hero-card-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
}

.hero-card-tags {
  display: flex;
  gap: 8px;
}

.tag-pill {
  font-size: 0.78rem;
  background: var(--sp-pill-bg);
  padding: 4px 10px;
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text-secondary);
  font-family: var(--sp-font-mono);
  border: 1px solid var(--sp-border);
}

/* ==========================================================================
   TICKER / CINTA TECNOLÓGICA
   ========================================================================== */

.tech-ticker-wrap {
  background: var(--sp-ticker-bg);
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.tech-ticker {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: ticker-slide 28s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sp-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sp-text-secondary);
}

.ticker-item .dot {
  color: var(--sp-orange);
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */

.services-section {
  padding: 100px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

.service-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 32px;
  transition: var(--sp-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--sp-shadow-card);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sp-orange), transparent);
  opacity: 0;
  transition: var(--sp-transition);
}

.service-card:hover {
  background: var(--sp-bg-card-hover);
  border-color: rgba(255, 90, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: var(--sp-shadow-card);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  background: var(--sp-orange-dim);
  border: 1px solid rgba(255, 90, 0, 0.3);
  border-radius: var(--sp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--sp-orange);
  margin-bottom: 22px;
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.15);
}

.service-title {
  font-size: 1.55rem;
  margin-bottom: 12px;
  color: var(--sp-heading-color);
}

.service-desc {
  color: var(--sp-text-secondary);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.software-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--sp-pill-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sp-pill-text);
}

.soft-pill.autodesk { border-left: 3px solid #0696D7; }
.soft-pill.adobe { border-left: 3px solid #FF0000; }
.soft-pill.corel { border-left: 3px solid #00AA13; }
.soft-pill.sketchup { border-left: 3px solid #005F9E; }
.soft-pill.vray { border-left: 3px solid #0E5C9A; }

.service-features-list {
  list-style: none;
  margin-bottom: 24px;
}

.service-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--sp-text-secondary);
  margin-bottom: 10px;
}

.service-features-list li i {
  color: var(--sp-orange);
  margin-top: 4px;
}

.service-action {
  margin-top: auto;
}

/* Banner Especial de Software Gráfico */
.software-banner-box {
  background: var(--sp-banner-gradient);
  border: 1px solid rgba(255, 90, 0, 0.35);
  border-radius: var(--sp-radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  box-shadow: var(--sp-shadow-card);
}

.software-banner-content h3 {
  font-size: 2.1rem;
  margin-bottom: 14px;
  color: var(--sp-heading-color);
}

.software-banner-content p {
  color: var(--sp-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.software-banner-img {
  position: relative;
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sp-border);
  cursor: pointer;
  background: var(--sp-bg-inner);
}

.software-banner-img img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

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

.image-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: var(--sp-transition);
  font-family: var(--sp-font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFFFF;
}

.software-banner-img:hover .image-zoom-overlay {
  opacity: 1;
}

/* ==========================================================================
   PRODUCTOS & GUÍA VISUAL SSD M.2
   ========================================================================== */

.products-section {
  padding: 100px 0;
  background: var(--sp-bg-dark);
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  position: relative;
}

/* Guía Visual Interactiva de SSD */
.ssd-guide-showcase {
  background: var(--sp-bg-card);
  border: 1px solid rgba(255, 90, 0, 0.35);
  border-radius: var(--sp-radius-xl);
  padding: 36px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sp-shadow-card);
}

.ssd-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--sp-border);
  padding-bottom: 20px;
}

.ssd-guide-title {
  font-size: 2rem;
  color: var(--sp-heading-color);
}

.ssd-guide-title span {
  color: var(--sp-orange);
}

.ssd-interactive-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.ssd-flyer-preview {
  position: relative;
  border-radius: var(--sp-radius-md);
  overflow: hidden;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-inner);
  cursor: pointer;
}

.ssd-flyer-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ssd-spec-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ssd-spec-card {
  background: var(--sp-bg-inner);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--sp-transition);
}

.ssd-spec-card.active, .ssd-spec-card:hover {
  border-color: var(--sp-orange);
  background: var(--sp-bg-card-hover);
  transform: translateX(6px);
}

.ssd-spec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ssd-model-name {
  font-family: var(--sp-font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-heading-color);
}

.ssd-model-tag {
  font-family: var(--sp-font-mono);
  font-size: 0.78rem;
  color: var(--sp-orange-light);
  background: var(--sp-orange-dim);
  padding: 2px 8px;
  border-radius: 4px;
}

.ssd-spec-desc {
  font-size: 0.88rem;
  color: var(--sp-text-secondary);
}

/* Filtros de Productos */
.product-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  color: var(--sp-text-secondary);
  font-family: var(--sp-font-head);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--sp-transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--sp-orange);
  color: #FFFFFF;
  border-color: var(--sp-orange);
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.4);
}

/* Catálogo de Productos */
.products-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: var(--sp-transition);
  position: relative;
  box-shadow: var(--sp-shadow-card);
}

.product-card:hover {
  border-color: rgba(255, 90, 0, 0.45);
  transform: translateY(-5px);
}

.product-badge-corner {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--sp-orange);
  color: #FFF;
  padding: 3px 9px;
  border-radius: var(--sp-radius-sm);
}

.product-image-container {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-bg-inner);
  border-radius: var(--sp-radius-md);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sp-border);
}

.product-icon-visual {
  font-size: 3.5rem;
  color: var(--sp-orange);
  filter: drop-shadow(0 0 12px rgba(255, 90, 0, 0.3));
}

.product-category-label {
  font-size: 0.78rem;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  font-family: var(--sp-font-mono);
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--sp-heading-color);
}

.product-specs-list {
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  min-height: 42px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--sp-border);
  margin-bottom: 14px;
}

.product-price {
  font-family: var(--sp-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sp-heading-color);
}

.product-price span {
  color: var(--sp-orange);
  font-size: 1rem;
}

.product-stock {
  font-size: 0.78rem;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   TIPS TECNOLÓGICOS (BLOG / RECOMENDACIONES)
   ========================================================================== */

.tips-section {
  padding: 100px 0;
  position: relative;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.tip-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--sp-transition);
  cursor: pointer;
  position: relative;
  box-shadow: var(--sp-shadow-card);
}

.tip-card:hover {
  border-color: var(--sp-orange);
  transform: translateY(-4px);
}

.tip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tip-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sp-orange);
  background: var(--sp-orange-dim);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sp-font-mono);
}

.tip-read-time {
  font-size: 0.8rem;
  color: var(--sp-text-muted);
}

.tip-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.25;
  color: var(--sp-heading-color);
}

.tip-excerpt {
  color: var(--sp-text-secondary);
  font-size: 0.94rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tip-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sp-orange-light);
  font-family: var(--sp-font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: auto;
}

.tip-card:hover .tip-read-more {
  gap: 12px;
  color: var(--sp-orange);
}

/* ==========================================================================
   AGENDAR CITAS O LLAMADAS (INTERACTIVO)
   ========================================================================== */

.booking-section {
  padding: 100px 0;
  background: var(--sp-bg-dark);
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  position: relative;
}

.booking-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--sp-bg-card);
  border: 1px solid rgba(255, 90, 0, 0.4);
  border-radius: var(--sp-radius-xl);
  padding: 44px;
  box-shadow: var(--sp-shadow-card);
  position: relative;
  overflow: hidden;
}

.booking-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--sp-orange), var(--sp-orange-light), var(--sp-orange));
}

.booking-header {
  text-align: center;
  margin-bottom: 36px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group-title {
  font-size: 1.15rem;
  color: var(--sp-orange-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Selección de Modalidad */
.modality-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.modality-card {
  background: var(--sp-bg-inner);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--sp-transition);
}

.modality-card:hover, .modality-card.selected {
  border-color: var(--sp-orange);
  background: var(--sp-bg-card-hover);
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.25);
}

.modality-card i {
  font-size: 1.8rem;
  color: var(--sp-orange);
  margin-bottom: 8px;
  display: block;
}

.modality-card span {
  font-family: var(--sp-font-head);
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  color: var(--sp-heading-color);
}

.modality-card small {
  font-size: 0.75rem;
  color: var(--sp-text-muted);
}

/* Campos de Formulario */
.form-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sp-text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: var(--sp-input-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  padding: 13px 16px;
  color: var(--sp-text-primary);
  font-size: 0.98rem;
  transition: var(--sp-transition);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--sp-orange);
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Resumen Dinámico de Cita */
.appointment-summary-box {
  background: var(--sp-bg-inner);
  border: 1px dashed rgba(255, 90, 0, 0.35);
  border-radius: var(--sp-radius-md);
  padding: 20px;
  margin-top: 10px;
}

.appointment-summary-title {
  font-size: 1rem;
  color: var(--sp-heading-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.appointment-summary-text {
  font-family: var(--sp-font-mono);
  font-size: 0.88rem;
  color: var(--sp-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   UBICACIÓN Y MAPA
   ========================================================================== */

.location-section {
  padding: 100px 0;
  position: relative;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.location-info-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-xl);
  padding: 36px;
  box-shadow: var(--sp-shadow-card);
}

.location-official-address {
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.15) 0%, rgba(255, 90, 0, 0.05) 100%);
  border-left: 4px solid var(--sp-orange);
  border-radius: 0 var(--sp-radius-md) var(--sp-radius-md) 0;
  padding: 20px;
  margin: 20px 0 26px;
}

.location-official-address .label {
  font-family: var(--sp-font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--sp-orange-light);
  margin-bottom: 6px;
  display: block;
}

.location-official-address .address-text {
  font-family: var(--sp-font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sp-heading-color);
  line-height: 1.3;
}

.location-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.location-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.location-details-list li i {
  color: var(--sp-orange);
  font-size: 1.25rem;
  margin-top: 3px;
}

.loc-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sp-heading-color);
  display: block;
}

.loc-val {
  font-size: 0.9rem;
  color: var(--sp-text-secondary);
}

/* Contenedor del Mapa */
.map-visual-box {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-xl);
  padding: 16px;
  box-shadow: var(--sp-shadow-card);
  position: relative;
}

#map-container {
  height: 380px;
  width: 100%;
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-inner);
}

.flyer-location-embed {
  margin-top: 20px;
  background: var(--sp-bg-inner);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.flyer-location-embed img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.flyer-location-embed:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   SUPPORT CALLOUT & FOOTER
   ========================================================================== */

.support-banner-section {
  padding: 60px 0;
  background: var(--sp-support-gradient);
  border-top: 1px solid rgba(255, 90, 0, 0.35);
  border-bottom: 1px solid var(--sp-border);
  text-align: center;
}

.support-box {
  max-width: 800px;
  margin: 0 auto;
}

.support-box h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--sp-heading-color);
}

.support-box p {
  color: var(--sp-text-secondary);
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.support-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sp-font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sp-heading-color);
  background: var(--sp-bg-card);
  padding: 12px 28px;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-orange);
  box-shadow: 0 0 25px rgba(255, 90, 0, 0.25);
  margin-bottom: 24px;
}

.support-phone-badge i {
  color: var(--sp-orange);
}

.site-footer {
  background: var(--sp-footer-bg);
  padding: 70px 0 30px;
  border-top: 1px solid var(--sp-border);
  color: #94A3B8;
}

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

.footer-brand p {
  font-size: 0.92rem;
  margin: 16px 0 20px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-links a {
  font-size: 0.92rem;
  color: #94A3B8;
}

.footer-links a:hover {
  color: var(--sp-orange);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* ==========================================================================
   WIDGET FLOTANTE WHATSAPP
   ========================================================================== */

.whatsapp-float-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 2rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sp-bg-card);
  color: var(--sp-heading-color);
  border: 1px solid var(--sp-border);
  padding: 8px 14px;
  border-radius: var(--sp-radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--sp-shadow-card);
}

/* ==========================================================================
   DRAWER CARRITO / COTIZADOR & MODAL
   ========================================================================== */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--sp-transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--sp-bg-card);
  border-left: 1px solid var(--sp-border);
  z-index: 10001;
  display: none;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-drawer.active {
  display: flex;
  animation: slideDrawerIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDrawerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--sp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sp-heading-color);
}

.cart-drawer-close {
  background: transparent;
  color: var(--sp-text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty-message {
  text-align: center;
  color: var(--sp-text-muted);
  margin-top: 60px;
}

.cart-empty-message i {
  font-size: 3rem;
  color: var(--sp-text-muted);
  opacity: 0.3;
  margin-bottom: 12px;
}

.cart-item {
  background: var(--sp-bg-inner);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--sp-heading-color);
}

.cart-item-price {
  font-family: var(--sp-font-mono);
  color: var(--sp-orange);
  font-size: 0.88rem;
}

.cart-item-remove {
  background: transparent;
  color: #EF4444;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--sp-border);
  background: var(--sp-bg-inner);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--sp-heading-color);
}

/* Modal General para Artículos / Imágenes */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--sp-transition);
}

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

.modal-content-box {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-xl);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  color: var(--sp-text-primary);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--sp-bg-inner);
  color: var(--sp-heading-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  border: 1px solid var(--sp-border);
  transition: var(--sp-transition);
}

.modal-close-btn:hover {
  background: var(--sp-orange);
  color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-headline {
    font-size: 2.8rem;
  }
  .hero-lead {
    margin: 0 auto 32px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }
  .software-banner-box {
    grid-template-columns: 1fr;
  }
  .ssd-interactive-grid {
    grid-template-columns: 1fr;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Contenedores y Viewport */
  .container {
    padding: 0 16px;
  }

  /* Barra Superior: Ocultar en móvil para ganar espacio vertical limpio */
  .topbar {
    display: none;
  }

  /* Navbar Móvil Ultra Optimizado */
  .navbar {
    padding: 0;
  }

  .nav-container {
    padding: 10px 16px;
    gap: 8px;
    justify-content: space-between;
    position: relative;
  }

  .brand-logo img {
    height: 36px !important;
    max-width: 130px;
    object-fit: contain;
  }

  /* Acciones de Navbar en Móvil: solo iconos compactos */
  .nav-actions {
    gap: 8px;
  }

  .theme-toggle-btn {
    padding: 8px 10px;
    font-size: 0.95rem;
    border-radius: var(--sp-radius-sm);
  }

  .theme-toggle-btn .theme-toggle-text {
    display: none !important;
  }

  .cart-toggle-btn {
    padding: 8px 11px;
    font-size: 0.9rem;
    border-radius: var(--sp-radius-sm);
  }

  .cart-toggle-btn span:not(.cart-badge-count) {
    display: none !important;
  }

  .cart-badge-count {
    margin-left: 4px;
  }

  /* Ocultar botón de soporte en navbar móvil porque ya existe el botón flotante */
  .nav-actions .btn-whatsapp {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 1.2rem;
    border-radius: var(--sp-radius-sm);
    background: var(--sp-bg-card);
    border: 1px solid var(--sp-border);
    color: var(--sp-heading-color);
  }

  /* Menú Desplegable Off-Canvas Flotante Directamente Bajo el Navbar */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--sp-bg-card);
    border-bottom: 2px solid var(--sp-orange);
    flex-direction: column;
    padding: 14px 16px;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    z-index: 9999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--sp-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-link.active,
  .nav-link:hover {
    background: var(--sp-orange-dim);
    color: var(--sp-orange);
  }

  /* Botón Flotante de WhatsApp: Ocultar Tooltip molesto en móvil */
  .whatsapp-float-widget {
    bottom: 18px;
    right: 18px;
    z-index: 9998;
  }

  .whatsapp-tooltip {
    display: none !important;
  }

  .whatsapp-float-btn {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  /* Tipografía y Hero en Móvil (Contención Absoluta Anti-Desbordamiento) */
  .hero {
    padding: 24px 0 36px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero::before {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    gap: 22px;
  }

  .hero-grid > * {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-content {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* Badge Tech Móvil: Envuelve texto limpiamente sin desbordar */
  .badge-tech {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 6px 12px;
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    margin-bottom: 12px;
  }

  .badge-tech .pulse-dot {
    flex-shrink: 0;
  }

  /* Titular Hero: Tamaño fluido y ajuste estricto sin recortes */
  .hero-headline {
    font-size: clamp(1.3rem, 5.6vw, 1.6rem) !important;
    line-height: 1.24 !important;
    margin: 10px 0 14px;
    width: 100%;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 100%;
  }

  .hero-badge {
    font-size: 0.76rem;
    padding: 4px 12px;
    margin-bottom: 14px;
  }

  /* Botones CTA en Móvil */
  .hero-actions,
  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    margin: 0 auto 22px;
  }

  .hero-actions .btn,
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: 0.95rem;
    white-space: normal;
  }

  /* Estadísticas Hero Móvil */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
    padding-top: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-stats > * {
    min-width: 0;
    max-width: 100%;
  }

  .stat-item .stat-num {
    font-size: 1.12rem !important;
    justify-content: center;
    word-break: break-all;
  }

  .stat-item .stat-label {
    font-size: 0.65rem !important;
    line-height: 1.2;
    text-align: center;
  }

  /* Tarjeta Visual Hero Móvil */
  .hero-visual {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-card {
    padding: 16px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: var(--sp-radius-lg);
  }

  .hero-card-img-wrap {
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
  }

  .hero-card-info {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding-top: 12px;
  }

  /* Encabezados de Sección */
  .section-header {
    margin-bottom: 26px;
    text-align: center;
  }

  .section-header .title {
    font-size: 1.65rem !important;
  }

  .section-header .subtitle {
    font-size: 0.88rem;
  }

  .section-padding {
    padding: 40px 0;
  }

  /* Filtros de Productos Deslizables en Móvil (Swipe Horizontal Tipo App) */
  .product-filters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 16px 14px;
    margin: 0 -16px 20px -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .products-catalog {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .product-card {
    padding: 18px;
  }

  .product-image-container {
    height: 150px;
  }

  .product-title {
    font-size: 1.18rem;
  }

  .product-actions {
    flex-direction: row;
    gap: 8px;
  }

  .product-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .products-search-wrap {
    max-width: 100%;
    margin-bottom: 20px;
  }

  /* Grillas de Servicios, Tips y Funcionalidades */
  .features-grid,
  .services-grid,
  .tips-grid,
  .software-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Agendar Citas & Ubicación */
  .modality-options-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .modality-card {
    padding: 14px 16px;
  }

  .form-fields-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    width: 100%;
  }

  .form-fields-row > * {
    min-width: 0;
    max-width: 100%;
  }

  .booking-wrapper {
    padding: 20px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #map-container {
    height: 270px !important;
  }

  .location-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px;
    width: 100%;
  }

  .location-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .location-info-card {
    padding: 20px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: var(--sp-radius-lg);
  }

  .location-official-address {
    padding: 14px 14px;
    margin: 14px 0 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .location-official-address .address-text {
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .location-details-list {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .location-details-list li {
    word-break: break-word;
  }

  .support-phone-badge {
    font-size: 1.25rem;
    padding: 10px 16px;
    width: 100%;
    justify-content: center;
  }

  /* Pie de Página */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ==========================================================================
   GESTOR DE INVENTARIO & PUBLICACIONES (MODO ADMIN SOFTPROCA)
   ========================================================================== */

/* Barra de Administración en Tienda */
.inventory-admin-bar {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 16px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--sp-shadow-card);
  position: relative;
  overflow: hidden;
}

.inventory-admin-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--sp-orange);
}

.admin-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sp-orange-dim);
  border: 1px solid rgba(255, 90, 0, 0.25);
  color: var(--sp-text-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--sp-font-head);
  font-size: 0.95rem;
}

.admin-pill i {
  color: var(--sp-orange);
}

.admin-pill strong {
  color: var(--sp-orange);
  margin-left: 4px;
}

.admin-subtext {
  font-size: 0.85rem;
  color: var(--sp-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Modal de Autenticación por PIN */
.admin-auth-box {
  max-width: 440px !important;
  text-align: center;
}

.auth-header {
  margin-bottom: 22px;
}

.auth-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sp-orange-dim);
  border: 2px solid var(--sp-orange);
  color: var(--sp-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 25px rgba(255, 90, 0, 0.3);
}

.auth-header h3 {
  font-size: 1.5rem;
  color: var(--sp-heading-color);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.88rem;
  color: var(--sp-text-secondary);
  line-height: 1.5;
}

.pin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.pin-input-wrap i.fa-key {
  position: absolute;
  left: 14px;
  color: var(--sp-orange);
  font-size: 1rem;
}

.pin-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 42px;
  background: var(--sp-input-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  color: var(--sp-text-primary);
  font-size: 1.1rem;
  font-family: var(--sp-font-mono);
  letter-spacing: 2px;
  transition: var(--sp-transition);
}

.pin-input-wrap input:focus {
  outline: none;
  border-color: var(--sp-orange);
  box-shadow: 0 0 0 3px var(--sp-orange-glow);
}

.pin-toggle-visibility {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--sp-text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  transition: var(--sp-transition);
}

.pin-toggle-visibility:hover {
  color: var(--sp-orange);
}

.pin-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--sp-text-muted);
  margin-top: 8px;
  text-align: left;
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #EF4444;
  padding: 10px 14px;
  border-radius: var(--sp-radius-sm);
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modal Principal del Panel de Inventario */
.admin-panel-box {
  max-width: 1000px !important;
  width: 95% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 30px !important;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sp-border);
  padding-bottom: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--sp-radius-md);
  background: var(--sp-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(255, 90, 0, 0.4);
}

.admin-panel-title-wrap h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--sp-heading-color);
}

.admin-panel-title-wrap p {
  font-size: 0.82rem;
  color: var(--sp-text-muted);
  margin-top: 2px;
}

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

.btn-logout {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 12px;
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  font-family: var(--sp-font-head);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--sp-transition);
}

.btn-logout:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* Pestañas del Panel de Administración */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-family: var(--sp-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sp-text-secondary);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--sp-transition);
}

.admin-tab-btn:hover {
  color: var(--sp-orange);
}

.admin-tab-btn.active {
  color: var(--sp-orange);
  border-bottom-color: var(--sp-orange);
}

.admin-tab-btn span.tab-counter {
  background: var(--sp-orange-dim);
  color: var(--sp-orange);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.75rem;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  animation: fadeInAdmin 0.25s ease forwards;
}

@keyframes fadeInAdmin {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Formulario de Publicación / Edición */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-full-width {
  grid-column: 1 / -1;
}

.admin-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sp-text-primary);
  margin-bottom: 6px;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--sp-input-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  color: var(--sp-text-primary);
  font-size: 0.92rem;
  font-family: var(--sp-font-body);
  transition: var(--sp-transition);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--sp-orange);
  box-shadow: 0 0 0 3px var(--sp-orange-glow);
}

.image-upload-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--sp-bg-inner);
  border: 1px dashed var(--sp-border);
  padding: 14px;
  border-radius: var(--sp-radius-md);
}

.image-preview-box {
  width: 80px;
  height: 80px;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-preview-box i {
  font-size: 2rem;
  color: var(--sp-orange);
}

.btn-remove-preview {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(239, 68, 68, 0.85);
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--sp-border);
  flex-wrap: wrap;
}

/* Lista / Tabla de Inventario en el Panel */
.admin-inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-inventory-search {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.admin-inventory-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-text-muted);
}

.admin-inventory-search input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: var(--sp-input-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  color: var(--sp-text-primary);
  font-size: 0.88rem;
}

.admin-inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-inventory-item {
  background: var(--sp-bg-inner);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 50px 1.4fr 100px 140px auto;
  align-items: center;
  gap: 14px;
  transition: var(--sp-transition);
}

.admin-inventory-item:hover {
  border-color: rgba(255, 90, 0, 0.4);
  background: var(--sp-bg-card-hover);
}

.admin-item-thumb {
  width: 48px;
  height: 48px;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-item-thumb i {
  font-size: 1.4rem;
  color: var(--sp-orange);
}

.admin-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--sp-heading-color);
}

.admin-item-meta {
  font-size: 0.78rem;
  color: var(--sp-text-muted);
  display: flex;
  gap: 8px;
}

.admin-item-price {
  font-family: var(--sp-font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--sp-heading-color);
}

.admin-item-price span {
  color: var(--sp-orange);
}

/* Selector Rápido de Stock */
.admin-stock-select {
  padding: 6px 10px;
  border-radius: var(--sp-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-card);
  color: var(--sp-text-primary);
  cursor: pointer;
}

.admin-stock-select.in_stock {
  border-color: #10B981;
  color: #10B981;
}

.admin-stock-select.low_stock {
  border-color: #F59E0B;
  color: #F59E0B;
}

.admin-stock-select.out_of_stock {
  border-color: #EF4444;
  color: #EF4444;
}

.admin-item-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: var(--sp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-card);
  color: var(--sp-text-secondary);
  cursor: pointer;
  transition: var(--sp-transition);
}

.btn-icon-action:hover {
  color: var(--sp-orange);
  border-color: var(--sp-orange);
}

.btn-icon-action.delete:hover {
  color: #EF4444;
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Pestaña de Respaldo & Ajustes */
.backup-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.backup-card {
  background: var(--sp-bg-inner);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.backup-card-icon {
  font-size: 2rem;
  color: var(--sp-orange);
  margin-bottom: 12px;
}

.backup-card h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--sp-heading-color);
}

.backup-card p {
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--sp-bg-card);
  color: var(--sp-heading-color);
  border: 1px solid var(--sp-border);
  border-left: 4px solid var(--sp-orange);
  padding: 12px 18px;
  border-radius: var(--sp-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideToastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  max-width: 380px;
}

.toast.toast-success {
  border-left-color: #10B981;
}

.toast.toast-error {
  border-left-color: #EF4444;
}

.toast.toast-warning {
  border-left-color: #F59E0B;
}

@keyframes slideToastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideToastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* Responsividad para Móviles del Panel Admin */
@media (max-width: 768px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-inventory-item {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }
  .admin-inventory-item .admin-item-price,
  .admin-inventory-item .admin-stock-select,
  .admin-inventory-item .admin-item-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
  .backup-cards-grid {
    grid-template-columns: 1fr;
  }
  .admin-panel-box {
    padding: 20px 14px !important;
  }
}

/* ==========================================================================
   PÁGINA DEDICADA DE ADMINISTRACIÓN (admin.html)
   ========================================================================== */

/* Vista de Login a Pantalla Completa */
.admin-standalone-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--sp-bg-main);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 90, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 90, 0, 0.03) 0%, transparent 40%);
  position: relative;
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sp-gradient-primary);
}

.admin-login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.admin-login-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.admin-login-brand h2 {
  font-size: 1.35rem;
  color: var(--sp-heading-color);
  margin-bottom: 4px;
}

.admin-login-brand p {
  font-size: 0.85rem;
  color: var(--sp-text-muted);
}

.admin-login-security-notice {
  margin-top: 24px;
  padding: 12px;
  background: var(--sp-bg-inner);
  border-radius: var(--sp-radius-sm);
  font-size: 0.8rem;
  color: var(--sp-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid var(--sp-orange);
}

/* Vista del Panel Administrativo Completo */
.admin-standalone-wrapper {
  min-height: 100vh;
  background: var(--sp-bg-main);
  display: flex;
  flex-direction: column;
}

/* Navbar Especial del Panel Admin */
.admin-navbar {
  background: var(--sp-bg-card);
  border-bottom: 1px solid var(--sp-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-navbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-navbar-left img {
  height: 38px;
  width: auto;
}

.admin-navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tarjetas KPI de Estadísticas */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.admin-kpi-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--sp-transition);
  position: relative;
  overflow: hidden;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 0, 0.3);
  box-shadow: var(--sp-shadow-card);
}

.admin-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--sp-radius-md);
  background: var(--sp-orange-dim);
  color: var(--sp-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.admin-kpi-icon.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.admin-kpi-icon.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

.admin-kpi-icon.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.admin-kpi-content {
  display: flex;
  flex-direction: column;
}

.admin-kpi-value {
  font-family: var(--sp-font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sp-heading-color);
  line-height: 1.1;
}

.admin-kpi-label {
  font-size: 0.8rem;
  color: var(--sp-text-muted);
  margin-top: 4px;
}

/* Contenedor Principal del Dashboard */
.admin-main-container {
  flex: 1;
  padding: 32px 0 60px;
}

.admin-card-container {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 28px;
  box-shadow: var(--sp-shadow-card);
}

.admin-view-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-view-title h1 {
  font-size: 1.6rem;
  color: var(--sp-heading-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-view-title p {
  color: var(--sp-text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

@media (max-width: 992px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .admin-card-container {
    padding: 16px 12px;
  }
}

@media (max-width: 768px) {
  .admin-navbar-inner {
    padding: 10px 16px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .admin-navbar-left {
    justify-content: space-between;
    width: 100%;
  }
  .admin-navbar-right {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .admin-navbar-right .btn,
  .admin-navbar-right .theme-toggle-btn,
  .admin-navbar-right .btn-logout {
    font-size: 0.82rem;
    padding: 7px 10px;
  }
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .admin-kpi-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .admin-kpi-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .admin-kpi-value {
    font-size: 1.35rem;
  }
  .admin-view-title {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .admin-view-title .btn {
    width: 100%;
    justify-content: center;
  }
  .admin-tabs {
    gap: 4px;
  }
  .admin-tab-btn {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .admin-inventory-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-inventory-search {
    width: 100%;
    min-width: unset;
  }
  .admin-inventory-item {
    grid-template-columns: 44px 1fr !important;
    gap: 10px;
    padding: 12px;
  }
  .admin-inventory-item .admin-item-price,
  .admin-inventory-item .admin-stock-select,
  .admin-inventory-item .admin-item-actions {
    grid-column: 1 / -1 !important;
  }
  .admin-inventory-item .admin-item-actions {
    justify-content: flex-end;
  }
  .admin-form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .backup-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .admin-login-card {
    padding: 24px 18px;
    max-width: 100%;
  }
  .toast {
    max-width: calc(100vw - 32px);
    font-size: 0.85rem;
    padding: 10px 14px;
  }
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .destacado-card-header {
    padding: 16px;
  }
  .destacado-card-body {
    padding: 18px 14px;
  }
  .destacado-actions {
    flex-direction: column;
  }
  .destacado-actions .btn {
    width: 100%;
  }
  .badge-maps-live {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .brand-text {
    font-size: 1.12rem;
    letter-spacing: 1px;
  }
}

/* ==========================================================================
   ELEMENTOS DESTACADOS: BOTÓN GOOGLE MAPS, LOGO SP & SERVICIOS DESTACADOS
   ========================================================================== */

/* Tipografía de Marca al lado del Logo SP */
.brand-text {
  font-family: var(--sp-font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--sp-heading-color);
  text-transform: uppercase;
  display: inline-block;
  line-height: 1;
}

/* Botón de Google Maps de Alto Impacto */
.btn-maps-highlight {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  font-family: var(--sp-font-head);
  font-weight: 700;
}

.btn-maps-highlight:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55);
  color: #FFFFFF !important;
}

/* Insignia Interactiva de Google Maps en Cabeceras */
.badge-maps-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 999px;
  color: #10B981;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--sp-transition);
}

.badge-maps-live:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10B981;
  transform: translateY(-1px);
}

/* Contenedor y Tarjetas de Servicios Destacados */
.destacados-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.destacado-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-xl);
  overflow: hidden;
  box-shadow: var(--sp-shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.destacado-card:hover {
  border-color: var(--sp-orange);
  box-shadow: 0 14px 40px rgba(255, 90, 0, 0.16);
}

.destacado-card-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--sp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(180deg, var(--sp-bg-inner) 0%, transparent 100%);
}

.destacado-title-group h2 {
  font-size: 1.55rem;
  color: var(--sp-heading-color);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.destacado-card-body {
  padding: 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 992px) {
  .destacado-card-body {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.destacado-callout {
  padding: 16px 20px;
  border-radius: var(--sp-radius-md);
  margin-bottom: 22px;
  font-size: 0.94rem;
  line-height: 1.55;
  background: var(--sp-orange-dim);
  border-left: 4px solid var(--sp-orange);
}

.destacado-callout.warning {
  background: rgba(245, 158, 11, 0.12);
  border-left-color: #F59E0B;
}

.destacado-callout.warning strong {
  color: #F59E0B;
}

.destacado-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 24px;
}

.destacado-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sp-text-primary);
}

.destacado-checklist li i {
  color: #10B981;
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.destacado-gallery-box {
  background: var(--sp-bg-inner);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 18px;
}

.destacado-gallery-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sp-text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.destacado-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.destacado-gallery-item {
  position: relative;
  border-radius: var(--sp-radius-md);
  overflow: hidden;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-card);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.destacado-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.destacado-gallery-item:hover img {
  transform: scale(1.06);
}

.destacado-gallery-item .zoom-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: var(--sp-radius-sm);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.destacado-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sp-border);
}

/* Quick Jump Category Bar */
.destacados-quick-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  margin-bottom: 30px;
  scrollbar-width: none;
}

.destacados-quick-nav::-webkit-scrollbar {
  display: none;
}

.destacados-jump-btn {
  white-space: nowrap;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  color: var(--sp-text-secondary);
  font-family: var(--sp-font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--sp-transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.destacados-jump-btn:hover {
  background: var(--sp-orange-dim);
  border-color: var(--sp-orange);
  color: var(--sp-orange);
}
