/* --------------------------------------------------------------------------
   1. VARIABLES Y DISEÑO DEL SISTEMA (TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Tema Premium General (Verde Esmeralda - Identidad Corporativa) */
  --primary-emerald: #10b981;
  --primary-emerald-dark: #059669;
  --primary-emerald-hover: #047857;
  --primary-emerald-light: rgba(16, 185, 129, 0.08);
  --secondary-slate: #64748b;
  --secondary-slate-dark: #475569;
  --secondary-slate-hover: #334155;
  --accent-cyan: #00bcd4;
  --dark-slate: #0f172a;
  --text-slate: #1e293b;
  --text-muted-slate: #64748b;
  --bg-glass-emerald: rgba(255, 255, 255, 0.85);
  --border-glass-emerald: rgba(16, 185, 129, 0.15);
  --shadow-glass-emerald: 0 8px 32px 0 rgba(16, 185, 129, 0.06);
  --body-bg-emerald: #f8fafc;

  /* Mapeo por Defecto a Tema Emerald */
  --primary: var(--primary-emerald);
  --primary-dark: var(--primary-emerald-dark);
  --primary-hover: var(--primary-emerald-hover);
  --primary-light: var(--primary-emerald-light);
  --secondary: var(--secondary-slate);
  --secondary-dark: var(--secondary-slate-dark);
  --secondary-hover: var(--secondary-slate-hover);
  --accent: var(--accent-cyan);
  --dark: var(--dark-slate);
  --text: var(--text-slate);
  --text-muted: var(--text-muted-slate);
  --bg-glass: var(--bg-glass-emerald);
  --border-glass: var(--border-glass-emerald);
  --shadow-glass: var(--shadow-glass-emerald);
  --body-bg: var(--body-bg-emerald);

  /* Sombras y Elevaciones Premium */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.05), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -3px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 48px -6px rgba(15, 23, 42, 0.12), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);

  /* Bordes y Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transiciones Fluidas */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tema del Visor Público (Azul Océano - Aplicado Localmente) */
.product-preview {
  --primary: #0a74b8;
  --primary-dark: #075a91;
  --primary-hover: #064c7c;
  --primary-light: rgba(10, 116, 184, 0.1);
  --accent: #00bcd4;
  --dark: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --bg-panel: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.82);
  --border-glass: rgba(255, 255, 255, 0.60);
  --shadow-glass: 0 8px 32px 0 rgba(10, 116, 184, 0.10);
  --body-bg: #f1f5f9;
  --shadow-glow: 0 0 25px rgba(10, 116, 184, 0.25);
}

/* --------------------------------------------------------------------------
   2. REINICIO DE ESTILOS, ACCESIBILIDAD Y SCROLLBAR
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--body-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar Personalizado (UI UX Pro Max) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  border: 2px solid var(--body-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.45);
}

/* Enlace de accesibilidad para saltar al contenido */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Contenedor central */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA Y ENLACES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 16px;
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.eyebrow-light {
  color: var(--accent);
  background: rgba(0, 188, 212, 0.1);
  border-color: rgba(0, 188, 212, 0.2);
}
