/* ============================================================
   RESET.CSS — Normalización completa y variables globales
   AirFryer Nutrición Premium © 2024
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================================================
   CUSTOM PROPERTIES — Sistema de diseño completo
   ============================================================ */

:root {
  /* === Paleta de color === */
  --bg-deep:            #0d0f0e;
  --bg-surface:         #111412;
  --bg-elevated:        #161a17;
  --surface-glass:      rgba(20, 24, 22, 0.72);
  --surface-card:       rgba(22, 26, 23, 0.88);
  --border-subtle:      rgba(244, 246, 244, 0.07);
  --border-medium:      rgba(244, 246, 244, 0.12);
  --border-accent:      rgba(16, 185, 129, 0.28);
  --border-gold:        rgba(245, 158, 11, 0.28);

  /* === Texto === */
  --text-primary:       #f4f6f4;
  --text-secondary:     #a8b5a0;
  --text-muted:         #6b7c65;
  --text-disabled:      #404d3c;

  /* === Acentos === */
  --accent-green:       #10b981;
  --accent-green-dark:  #059669;
  --accent-green-light: #34d399;
  --accent-green-glow:  rgba(16, 185, 129, 0.18);
  --accent-gold:        #f59e0b;
  --accent-gold-dark:   #d97706;
  --accent-gold-light:  #fbbf24;
  --accent-gold-glow:   rgba(245, 158, 11, 0.18);
  --accent-red:         #ef4444;
  --accent-red-glow:    rgba(239, 68, 68, 0.18);

  /* === Tipografía === */
  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* === Escalas tipográficas fluidas === */
  --text-xs:     clamp(0.68rem,  0.9vw,  0.75rem);
  --text-sm:     clamp(0.80rem,  1.1vw,  0.875rem);
  --text-base:   clamp(0.938rem, 1.4vw,  1rem);
  --text-lg:     clamp(1.05rem,  1.6vw,  1.125rem);
  --text-xl:     clamp(1.15rem,  1.9vw,  1.25rem);
  --text-2xl:    clamp(1.35rem,  2.2vw,  1.5rem);
  --text-3xl:    clamp(1.65rem,  2.8vw,  1.875rem);
  --text-4xl:    clamp(2rem,     3.5vw,  2.5rem);
  --text-5xl:    clamp(2.4rem,   4.5vw,  3.25rem);
  --text-6xl:    clamp(2.8rem,   5.5vw,  4.25rem);
  --text-hero:   clamp(3.2rem,   7.5vw,  5.5rem);

  /* === Espaciado === */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* === Layout === */
  --container-max:   1200px;
  --container-wide:  1440px;
  --container-prose: 720px;
  --navbar-h:        72px;

  /* === Border-radius === */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  40px;
  --radius-full: 9999px;

  /* === Sombras === */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.55);
  --shadow-xl:     0 24px 64px rgba(0,0,0,0.65);
  --shadow-green:  0 0 40px rgba(16, 185, 129, 0.18);
  --shadow-gold:   0 0 40px rgba(245, 158, 11, 0.18);
  --shadow-card:   0 4px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(244,246,244,0.06);

  /* === Transiciones === */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  150ms var(--ease-out);
  --t-base:  260ms var(--ease-out);
  --t-slow:  420ms var(--ease-out);
  --t-spring: 500ms var(--ease-spring);

  /* === Z-index === */
  --z-base:    1;
  --z-raised:  10;
  --z-float:   50;
  --z-overlay: 100;
  --z-navbar:  200;
  --z-modal:   300;
  --z-toast:   400;
}

/* === Base body === */
body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  min-height: 100vh;
}

/* === Selección de texto === */
::selection {
  background: var(--accent-green-glow);
  color: var(--accent-green);
}

/* === Scrollbar personalizada === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-green), var(--accent-gold));
  border-radius: var(--radius-full);
}

/* === Focus visible accesible === */
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
