/* ============================================
   ENCUENTROS ARTE Y VINO - Base Styles
   Mobile-first | Inspired by festival-piano.com
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- CSS Variables --- */
:root {
  /* Colors - Corporativos */
  --color-primary: #1a1a1a;
  --color-secondary: #333333;
  --color-accent: #ff6600;
  --color-accent-hover: #e05c00;
  --color-accent-light: #fff0e5;
  --color-bg: #ffffff;
  --color-bg-alt: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-border: #e5e5e5;
  --color-overlay: rgba(0, 0, 0, 0.6);
  --color-dark-bg: #fef6ef;
  --color-dark-bg-alt: #fdf0e5;

  /* Typography — Futura (via Jost, closest open-source match) */
  --font-heading: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --font-body: 'Jost', 'Futura', 'Century Gothic', sans-serif;

  /* Font sizes - mobile first */
  --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;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-section: 5rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --border-radius: 4px;
  --border-radius-lg: 8px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* --- Typography --- */
/* Jost — geometric sans-serif closest to Futura, loaded via Google Fonts */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: 0.04em;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
}

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

h4 {
  font-size: var(--text-lg);
  font-weight: 500;
}

strong, b {
  font-weight: 600;
  color: inherit;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

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

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

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-section) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-dark-bg);
  color: var(--color-primary);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-primary);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__header p {
  margin-top: var(--space-sm);
  color: var(--color-text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-xs);
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr 1fr;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* --- Responsive --- */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2.25rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;
    --space-section: 6rem;
  }

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

  .container {
    padding: 0 var(--space-lg);
  }

  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid--4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --text-4xl: 3rem;
    --text-5xl: 4rem;
    --space-section: 7rem;
  }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }

  .grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-xl);
  }
}
