/* ═══════════════════════════════════════════════════════════
   RESET & CUSTOM PROPERTIES
   alfyma/css/reset.css
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Paleta de color — innegociable */
  --bg-deep:        #0a0a0c;
  --bg-surface:     #161618;
  --bg-card:        rgba(22, 22, 24, 0.75);
  --text-primary:   #ede4d3;
  --text-secondary: #9a9590;
  --accent:         #d56a2b;
  --accent-light:   #e8854a;
  --accent-steel:   #6b7280;
  --accent-brass:   #b8956a;
  --border:         rgba(213, 106, 43, 0.18);
  --border-steel:   rgba(107, 114, 128, 0.22);
  --shadow-glow:    0 0 32px rgba(213, 106, 43, 0.18);
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.45);

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;

  /* Layout */
  --container:     min(1200px, 92vw);
  --container-sm:  min(800px, 92vw);
  --radius:        3px;
  --radius-md:     6px;

  /* Transición premium */
  --ease:         cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);
  --transition:   0.32s cubic-bezier(0.2, 0.9, 0.3, 1);

  /* Z-índices */
  --z-canvas:    -1;
  --z-vignette:   0;
  --z-content:    1;
  --z-nav:       10;
  --z-toast:    100;
  --z-progress: 200;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--accent-light);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

address {
  font-style: normal;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

em {
  font-style: italic;
  color: var(--accent);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible accesible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-steel);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection */
::selection {
  background: rgba(213, 106, 43, 0.28);
  color: var(--text-primary);
}
