/* COMPRA YA — Estilos globales (Bloque 1 + 11) */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@400;600;700&family=DM+Mono:wght@400;500&display=swap");

:root {
  --font-body: "Raleway", sans-serif;
  --font-heading: "Cormorant Garamond", serif;
  --font-mono: "DM Mono", monospace;

  --primary: #1a3a5c;
  --primary-light: #2d5f8a;
  --accent: #c9a84c;
  --accent-light: #e8c870;
  --bg-dark: #0a0e1a;
  --bg-card: #ffffff;
  --bg-surface: #f5f6fa;
  --text-primary: #1a1a2e;
  --text-secondary: #5a6478;
  --text-muted: #9aa3b2;
  --border: #e2e8f0;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  padding-bottom: env(safe-area-inset-bottom);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.price,
.code,
.id-field,
.stat-number {
  font-family: var(--font-mono);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: cy-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes cy-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  z-index: 1000;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

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

.cy-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  z-index: 12000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cy-toast.show {
  opacity: 1;
}

.notif-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 5px;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.notif-empty {
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}
.fcm-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  background: #ffffff;
  border-left: 5px solid #C9A84C;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 350px;
  font-family: 'Raleway', sans-serif;
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fcm-toast-content strong { display: block; color: #1A3A5C; font-size: 14px; margin-bottom: 2px; }
.fcm-toast-content p { margin: 0; color: #555555; font-size: 12px; }
.fcm-toast-close { background: none; border: none; color: #999; cursor: pointer; font-size: 14px; align-self: flex-start; }
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}