/* =============================================
   CASA ALDEA LA CUESTA — SISTEMA DE DISEÑO BASE
   ============================================= */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* CSS RESET MODERNO */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* CSS VARIABLES — PALETA COMPLETA */
:root {
  /* Colores principales */
  --cream: #F8F4EC;
  --cream-dark: #EFE9DC;
  --forest: #2A4A1E;
  --forest-light: #3D6B2C;
  --forest-dark: #1A2E13;
  --brown: #6B4A2A;
  --brown-light: #8B6240;
  --stone: #9B8E7A;
  --stone-light: #C8BBAA;
  --dark: #1C1C1C;
  --dark-soft: #2D2D2D;
  --white: #FFFFFF;
  --white-off: #FDFBF7;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --text-primary: #2D2520;
  --text-secondary: #6B5E52;
  --text-light: #9B8E82;
  --overlay-dark: rgba(20, 16, 12, 0.55);
  --overlay-medium: rgba(20, 16, 12, 0.40);
  --overlay-light: rgba(20, 16, 12, 0.25);

  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', sans-serif;

  /* Escala tipográfica */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-hero: clamp(3rem, 7vw, 6rem);

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --section-padding: clamp(4rem, 8vw, 8rem);

  /* Layout */
  --container-max: 1320px;
  --container-narrow: 900px;
  --nav-height: 80px;

  /* Efectos */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-xl: 0 40px 100px rgba(0,0,0,0.25);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* TIPOGRAFÍA GLOBAL */
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--white-off);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 500; line-height: 1.4; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--forest);
}

.eyebrow--light { color: var(--stone-light); }
.eyebrow--gold { color: var(--gold); }

/* CONTENEDOR */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }

/* BOTONES */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 2rem; border-radius: var(--radius-sm);
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--forest); color: var(--white);
  border: 2px solid var(--forest);
}
.btn-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-outline-dark {
  background: transparent; color: var(--forest);
  border: 2px solid var(--forest);
}
.btn-outline-dark:hover { background: var(--forest); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--dark); border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* SEPARADOR DECORATIVO */
.divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--stone-light);
}
.divider-icon { color: var(--gold); font-size: 1.2rem; }

/* UTILIDADES */
.text-center { text-align: center; }
.text-forest { color: var(--forest); }
.text-gold { color: var(--gold); }
.text-stone { color: var(--text-secondary); }
.bg-cream { background-color: var(--cream); }
.bg-forest { background-color: var(--forest); }
.bg-dark { background-color: var(--dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ANIMACIONES DE ENTRADA */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--forest); }
