/* ==========================================================================
   INKA WAYS — ESTILOS BASE, TIPOGRAFÍA EDITORIAL & RESET (FONDO BLANCO)
   ========================================================================== */

/* Importación de Google Fonts Premium */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Reset Moderno & Normalización Cross-Browser --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: #FFFFFF;
  color: var(--color-text-light);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-muted);
  background-color: #FFFFFF;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Bloqueo estricto de scroll en móviles al abrir Drawer o Modales (evita rubber-banding en iOS Safari) */
html.mobile-menu-open,
body.mobile-menu-open {
  overflow: hidden !important;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

/* Selección de Texto de Lujo */
::selection {
  background-color: var(--color-gold-light);
  color: #0B0E0D;
}

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

::-webkit-scrollbar-track {
  background: #F4F6F5;
}

::-webkit-scrollbar-thumb {
  background: #D1D8D4;
  border-radius: 4px;
}

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

/* --- Tipografía & Jerarquía Editorial --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-light);
  font-family: var(--font-serif-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  font-size: var(--text-hero);
  text-transform: uppercase;
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p, span, li, a {
  overflow-wrap: break-word;
}

p {
  font-size: var(--text-base);
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  touch-action: manipulation;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Prevención de auto-zoom molesto en iOS Safari asegurando mínimo 16px en móviles */
input, textarea, select {
  font-family: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--radius-sm);
}

/* --- Clases de Layout & Contenedores --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  overflow: hidden;
}

/* --- Elementos Editoriales & Decorativos --- */
.section-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-subtle);
  display: inline-block;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: var(--text-3xl);
  margin-bottom: 1.5rem;
}

.editorial-number {
  font-family: var(--font-serif-display);
  font-size: var(--text-sm);
  color: var(--color-gold-subtle);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.editorial-number::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-gold-subtle);
}

.title-serif {
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-weight: 400;
}

.text-gold {
  color: var(--color-gold-subtle);
}

.text-emerald {
  color: var(--color-emerald-accent);
}
