/* ==========================================================================
   Base: reset, tokens, tipografía, elementos base y accesibilidad
   ========================================================================== */

:root {
  /* Paleta premium perfumería */
  --bg: #f6f2ea;
  --bg-alt: #ede6d8;
  --surface: #fffdf8;
  --ink: #17161a;
  --ink-soft: #43403a;
  --muted: #6b6557;
  --line: #dcd3bf;
  --gold: #b98a3c;
  --gold-dark: #96702c;
  --dark: #141419;
  --dark-soft: #1d1d27;
  --wa: #25d366;
  --wa-text: #0b141a;
  --success: #176b32;
  --danger: #a33a2f;

  --serif: Georgia, 'Times New Roman', Didot, 'Bodoni MT', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 10px rgba(23, 22, 26, 0.05), 0 12px 30px rgba(23, 22, 26, 0.05);
  --shadow-hover: 0 6px 18px rgba(23, 22, 26, 0.09), 0 20px 44px rgba(23, 22, 26, 0.08);
  --container: 1200px;
  --header-h: 66px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* Respetá hidden incluso con estilos de display autor */
[hidden] {
  display: none !important;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, input, select {
  font: inherit;
  color: inherit;
}

select, input[type="search"], input[type="text"] {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Contenedor general */
.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

/* Solo lectura para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Enlace para saltar al contenido */
.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 200;
  background: var(--gold);
  color: #1b1710;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

/* Focus visible accesible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Contenido principal */
#main:focus {
  outline: none;
}

main {
  min-height: 60vh;
}

/* Estado de carga de páginas */
.page-loading {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--muted);
}

/* Aviso de configuración pendiente (demo) */
.config-notice {
  margin: 0;
  padding: 0.4rem 1rem;
  background: #3a2f14;
  color: #f3dfae;
  font-size: 0.8rem;
  text-align: center;
}

::selection {
  background: var(--gold);
  color: #1b1710;
}