/* ====================================================
   LAYOUT — Contenedores, grid, secciones, responsive
==================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

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

.section {
  position: relative;
  padding-block: var(--section-padding);
  overflow: hidden;
}

.section--sm {
  padding-block: var(--section-padding-sm);
}

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

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

.section--dark p {
  color: var(--color-text-dim);
}

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

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-orange);
  margin-bottom: var(--space-md);
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border-orange);
  border-radius: var(--border-radius-full);
  background: var(--color-overlay-warm);
}

.section-eyebrow--light {
  color: var(--color-orange-light);
  border-color: var(--color-border-orange);
  background: rgba(237, 106, 43, 0.1);
}

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

.section-title {
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
  letter-spacing: -0.015em;
}

.section-title em {
  font-style: italic;
  color: var(--color-orange);
  font-family: var(--font-display);
  font-weight: 500;
}

.section--dark .section-title em,
.section.valores .section-title em,
.reservas .section-title em {
  color: var(--color-orange-light);
}

.section-subtitle {
  max-width: 640px;
  margin-inline: auto;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.section-divider {
  width: 80px;
  height: 1px;
  background: var(--color-primary);
  margin: var(--space-lg) auto;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translateY(-50%);
}

.section-divider::before { left: -12px; }
.section-divider::after { right: -12px; }

.section-divider--gold {
  background: var(--color-gold);
}

.section-divider--gold::before,
.section-divider--gold::after {
  background: var(--color-gold);
}

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; align-items: center; }
.flex-col { flex-direction: column; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: clamp(3rem, 8vh, 5rem);
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }
}
