/* Meligo.com.ar - Showroom Oficial Sistema Meligo */
/* Fuentes Plus Jakarta Sans & JetBrains Mono cargadas vía <link rel="preconnect"> en <head> para evitar cascada bloqueante @import */

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --primary-blue: #2563eb;
  --primary-indigo: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --danger-red: #ef4444;
  --success-emerald: #10b981;
  --warning-amber: #f59e0b;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: #090d16;
  color: #f8fafc;
}

body {
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 100% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              #090d16;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(99, 102, 241, 0.15);
}

.glass-card-danger {
  background: rgba(30, 15, 20, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.glass-card-success {
  background: rgba(10, 30, 25, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Gradient text */
.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.gradient-text-glow {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom glow borders */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.glow-border:hover::after {
  opacity: 0.8;
}

/* Pulse animation for live sync indicator */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.animate-pulse-ring {
  animation: pulse-ring 2.5s infinite ease-in-out;
}

/* Showroom Tab active states */
.showroom-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Details and Summary styling for FAQ */
details {
  transition: all 0.3s ease;
}

details[open] summary svg {
  transform: rotate(180deg);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
}

/* Lightbox Modal */
#image-lightbox.active {
  display: flex;
}

/* Floating WhatsApp button pulse */
@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.whatsapp-float {
  animation: whatsapp-bounce 4s ease-in-out infinite;
}

/* ============================================================
   Landing v2 — componentes para público general
   ============================================================ */

/* Lista con tildes (reduce markup repetido en tarjetas de funciones/planes) */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.check-list.check-emerald li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

/* Tarjeta de función */
.feature-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 18px 40px -18px rgba(37, 99, 235, 0.35);
}

/* Plan destacado */
.plan-featured {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0.8) 60%);
  border: 1px solid rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 50px -12px rgba(37, 99, 235, 0.45);
}

/* Foco visible accesible */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #2563eb;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.75rem 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Los anclajes no quedan tapados por el header fijo */
section[id] { scroll-margin-top: 5.5rem; }

/* Respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whatsapp-float, .animate-ping, .animate-pulse { animation: none !important; }
  .feature-card { transition: none; }
}

/* Alinea los precios de las tarjetas de planes aunque la descripcion ocupe 1 o 2 lineas */
@media (min-width: 1024px) { #planes article > p { min-height: 2.75rem; } }


/* ==========================================================================
   Planes y Personalizador Interactivo (Estilos Táctiles y Accesibles)
   ========================================================================== */

/* Sliders de Rango Personalizados */
.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: rgba(51, 65, 85, 0.7);
  border-radius: 9999px;
  outline: none;
  transition: background 0.2s;
}

.custom-range-slider:hover {
  background: rgba(71, 85, 105, 0.9);
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #60a5fa;
}

.custom-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.custom-range-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #60a5fa;
}

/* Preset Buttons Active State */
.preset-btn.active {
  background: rgba(37, 99, 235, 0.35) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

/* Checkbox Cards Selected State */
.custom-checkbox-card:has(input:checked) {
  background: rgba(30, 58, 138, 0.35);
  border-color: rgba(59, 130, 246, 0.6);
}

/* Animación suave al actualizar precios */
.plan-price, #custom-price-display {
  transition: color 0.2s ease, transform 0.2s ease;
}

.price-updating {
  transform: scale(1.04);
}

/* Native Modal Dialogs (Scroll Containment & Backdrop) */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(4px);
}
