/* ============================================================
   DroDev Tienda · Skin (rediseño profesional · solo claro)
   Se carga DESPUÉS del CSS compilado de Next.js.
   Base blanca, azul de marca, iconos lucide y refinamientos.
   Sin modo oscuro: se fuerza color-scheme claro.
   ============================================================ */

:root {
  color-scheme: light;
  --radius: 1rem;
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f0f5ff;
  --secondary-foreground: #1e40af;
  --muted: #f6f8fa;
  --muted-foreground: #64748b;
  --accent: #eef1f7;
  --accent-foreground: #1e293b;
  --destructive: #dc2626;
  --border: #e7edf5;
  --input: #e7edf5;
  --ring: #2563eb;
  --chart-1: #2563eb;
  --chart-2: #0ea5e9;
  --chart-3: #f59e0b;
  --chart-4: #8b5cf6;
  --chart-5: #10b981;
  --sidebar: #ffffff;
  --sidebar-foreground: #0f172a;
  --sidebar-primary: #2563eb;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f0f5ff;
  --sidebar-accent-foreground: #1e40af;
  --sidebar-border: #e7edf5;
  --sidebar-ring: #2563eb;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  background: #ffffff;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
}

::selection { background: rgba(37, 99, 235, 0.16); color: #1e40af; }
* { scrollbar-width: thin; scrollbar-color: #c9d4e6 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #c9d4e6; border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #aebbd2; background-clip: content-box; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}
img { max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }

/* ============================================================
   HEADER
   ============================================================ */
header[class~="sticky"] {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
[class~="w-9"][class~="h-9"][class~="rounded-xl"] {
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.14), 0 8px 16px -8px rgba(15, 23, 42, 0.18);
}

/* Marca con degradado (header y hero usan la misma clase) */
[class~="from-blue-600"][class~="to-blue-800"] {
  background-image: linear-gradient(100deg, #2563eb 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */
[class~="from-blue-50/80"][class~="via-white"] {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(37, 99, 235, 0.10), rgba(255, 255, 255, 0) 65%),
    #ffffff;
}

/* Píldora de presentación / insignias */
[class~="bg-blue-100"][class~="text-blue-700"] {
  background: #eef4ff !important;
  color: #1d4ed8 !important;
  box-shadow: inset 0 0 0 1px #d8e6ff;
}

/* ============================================================
   BUSCADOR
   ============================================================ */
input[data-slot="input"] {
  border-color: #dfe7f3 !important;
  background: #ffffff !important;
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input[data-slot="input"]:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
input[data-slot="input"]::placeholder { color: #94a3b8; }

/* ============================================================
   PÍLDORAS DE CATEGORÍA / BOTONES
   ============================================================ */
[class~="bg-blue-600"] {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.55);
}
[class~="bg-blue-600"]:hover { filter: brightness(1.07); }

[class~="rounded-full"][class~="h-8"] { border-color: #dfe7f3 !important; }
[class~="rounded-full"][class~="h-8"]:not([class~="bg-blue-600"]):hover {
  background: #f0f5ff !important;
  color: #1d4ed8 !important;
  border-color: #c7d9fb !important;
}

/* ============================================================
   TARJETAS DE APLICACIÓN (grid)
   ============================================================ */
[class~="grid-cols-1"] { gap: 20px; }

[class~="p-5"][class~="rounded-xl"][class~="border"] {
  background: #ffffff;
  border-color: #e7edf5;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 1px 1px rgba(15, 23, 42, 0.02);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}
[class~="p-5"][class~="rounded-xl"][class~="border"]:hover {
  transform: translateY(-5px);
  border-color: #c6d8f7;
  box-shadow: 0 24px 48px -20px rgba(37, 99, 235, 0.28), 0 8px 20px -12px rgba(15, 23, 42, 0.12);
}

/* Icono de la app */
[class~="w-14"][class~="h-14"] {
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05), 0 6px 14px -6px rgba(15, 23, 42, 0.16);
}

/* Título de la app */
[class~="text-lg"][class~="font-bold"] { letter-spacing: -0.022em; }

/* ============================================================
   FOOTER
   ============================================================ */
[class~="bg-blue-50/30"] { background: #f7fafc; }
[class~="border-blue-100"] { border-color: #e9eff7; }

/* ============================================================
   VARIOS
   ============================================================ */
main { animation: dt-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes dt-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.dt-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 2147483000;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #8b5cf6);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
  pointer-events: none;
}

/* ============================================================
   MOVIMIENTO REDUCIDO + MÓVIL
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 640px) { body { letter-spacing: -0.008em; } }