/**
 * Healthy Homes Magazine - Design System Tokens
 * Engineered by Elevation Creative
 */

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

:root {
  /* Paleta Primaria: Confianza y Autoridad Tecnológica */
  --color-navy-950: #070B14;
  --color-navy-900: #0B1120;
  --color-navy-800: #0F172A;
  --color-navy-700: #1E293B;
  --color-navy-600: #334155;
  --color-cobalt-600: #1D4ED8;
  --color-cobalt-500: #2563EB;
  --color-cobalt-400: #38BDF8;

  /* Paleta Secundaria: Salud, Aire Puro y Vitalidad */
  --color-emerald-700: #047857;
  --color-emerald-600: #059669;
  --color-mint-500: #10B981;
  --color-mint-400: #34D399;
  --color-teal-300: #5EEAD4;

  /* Superficies y Neutros */
  --surface-bg: #0B1120;
  --surface-card: rgba(15, 23, 42, 0.85);
  --surface-glass: rgba(30, 41, 59, 0.65);
  --surface-border: rgba(51, 65, 85, 0.6);
  --surface-border-active: rgba(16, 185, 129, 0.5);

  /* Texto */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #34D399;

  /* Tipografías */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Efectos y Sombras */
  --shadow-glow-mint: 0 0 25px rgba(16, 185, 129, 0.25);
  --shadow-glow-cobalt: 0 0 30px rgba(37, 99, 235, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --radius-card: 16px;
  --radius-button: 10px;

  /* Transiciones */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  background-color: var(--surface-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Clases de Utilidad de Marca */
.bg-brand-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.25) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 45%),
              #0B1120;
}

.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
}

.glass-panel:hover {
  border-color: var(--surface-border-active);
  box-shadow: var(--shadow-glow-mint);
}

.text-gradient-brand {
  background: linear-gradient(135deg, #38BDF8 0%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #059669 100%);
  color: #FFFFFF;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-button);
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  box-shadow: var(--shadow-glow-mint);
  transform: translateY(-2px);
}

/* Flipbook 3D Container */
.flipbook-stage {
  perspective: 2500px;
  perspective-origin: center;
}

/* Shoppable / Sponsor Hotspot Pins */
.flipbook-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.95);
  border: 2.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.7);
  transition: transform 0.25s ease, background 0.25s ease;
}
.flipbook-hotspot:hover {
  transform: scale(1.25);
  background: #059669;
}
.flipbook-hotspot .hotspot-ping {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid #34D399;
  animation: hotspotPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes hotspotPing {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Flipbook Slide-over Product Drawer */
.hotspot-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(51, 65, 85, 0.7);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
}
.hotspot-drawer.open {
  transform: translateX(0);
}
