/* ============================================
   BASE.CSS — Reset, Variables, Tipografía Global
   Hotel Inti Wasi — Cajamarca, Perú
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Josefin+Sans:wght@100;200;300;400;600&display=swap');

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
  /* Paleta principal */
  --color-oscuro: #1A0F07;
  --color-tierra: #3B1F0C;
  --color-dorado: #C9A84C;
  --color-dorado-light: #DFC07A;
  --color-dorado-dark: #A07830;
  --color-crema: #F5EFE0;
  --color-crema-dark: #E0D5C0;
  --color-verde: #1C3A2A;
  --color-gris: #6B6560;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Josefin Sans', sans-serif;

  /* Escala tipográfica */
  --fs-xs: 0.7rem;
  --fs-sm: 0.85rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.35rem;
  --fs-xl: 1.65rem;
  --fs-2xl: 2.1rem;
  --fs-3xl: 2.8rem;
  --fs-4xl: 3.8rem;
  --fs-5xl: 5.5rem;
  --fs-6xl: 8rem;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;
  --space-3xl: 11rem;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Z-index */
  --z-loader: 9999;
  --z-cursor: 9998;
  --z-navbar: 1000;
  --z-modal: 900;
  --z-overlay: 800;

  /* Sombras */
  --shadow-gold: 0 4px 30px rgba(201, 168, 76, 0.25);
  --shadow-dark: 0 12px 50px rgba(26, 15, 7, 0.6);
  --shadow-card: 0 4px 25px rgba(26, 15, 7, 0.45);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background-color: var(--color-oscuro);
  color: var(--color-crema);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
}

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

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

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: var(--font-ui);
  border: none;
  outline: none;
  background: none;
}

/* ============================================
   TIPOGRAFÍA GLOBAL
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-crema);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }

p {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--color-crema-dark);
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section--tierra  { background-color: var(--color-tierra); }
.section--verde   { background-color: var(--color-verde); }
.section--dark    { background-color: var(--color-oscuro); }

.section-label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-dorado);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 400;
  color: var(--color-crema);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-md);
  color: var(--color-crema-dark);
  max-width: 580px;
  line-height: 1.85;
}

.divider-gold {
  width: 55px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-dorado), transparent);
  margin: var(--space-md) 0;
}

.divider-gold--center {
  margin: var(--space-md) auto;
  background: var(--color-dorado);
}

.text-dorado { color: var(--color-dorado); }
.text-crema  { color: var(--color-crema); }
.text-center { text-align: center; }
.uppercase   { text-transform: uppercase; letter-spacing: 0.2em; }

/* Contenido de página — oculto hasta que el loader termine */
#page-content {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#page-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .section-title { font-size: var(--fs-2xl); }
  .container { padding: 0 var(--space-md); }
}

@media (max-width: 768px) {
  :root {
    --fs-5xl: 3.2rem;
    --fs-4xl: 2.4rem;
    --fs-3xl: 1.9rem;
    --fs-2xl: 1.5rem;
  }

  .container { padding: 0 1.25rem; }
  .section { padding: var(--space-xl) 0; }
}
