/* ============================================
   OMNI — Base Styles (base.css)
   Reset, tipografía y estilos globales
   ============================================ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── Tipografía: Títulos → Cinzel Decorative ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-6); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* ─── Cuerpo → Cormorant Garamond ─── */
p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

/* ─── UI Elements → Inter ─── */
button,
input,
select,
textarea,
label {
  font-family: var(--font-ui);
}

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

a:hover {
  color: var(--color-accion);
}

/* ─── Listas ─── */
ul, ol {
  font-family: var(--font-body);
  list-style: none;
}

/* ─── Imágenes ─── */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Selección de texto ─── */
::selection {
  background-color: rgba(255, 109, 0, 0.3);
  color: var(--color-pergamino);
}

::-moz-selection {
  background-color: rgba(255, 109, 0, 0.3);
  color: var(--color-pergamino);
}

/* ─── Scrollbar personalizado ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-akasha);
}

::-webkit-scrollbar-thumb {
  background: var(--color-carbon);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-akasha);
}

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

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-carbon) var(--color-akasha);
}

/* ─── Focus styles (accesibilidad) ─── */
:focus-visible {
  outline: 2px solid var(--color-accion);
  outline-offset: 2px;
}

/* ─── Utilidades de texto ─── */
.text-gold {
  color: var(--color-oro);
}

.text-accion {
  color: var(--color-accion);
}

.text-center {
  text-align: center;
}

.text-ui {
  font-family: var(--font-ui);
}

.text-display {
  font-family: var(--font-display);
}

/* ─── Separador Decorativo ─── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
  position: relative;
}

.divider--gold {
  background: var(--gradient-oro);
  height: 2px;
}

.divider--with-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: none;
  height: auto;
}

.divider--with-symbol::before,
.divider--with-symbol::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gradient-oro);
}

.divider--with-symbol span {
  color: var(--color-oro);
  font-size: var(--text-xl);
  line-height: 1;
}

/* ─── Subtítulo de sección ─── */
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto var(--space-12);
  text-align: center;
}
