/* ==========================================================================
   ESPACIO COLINAS - EDITORIAL BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 10px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: var(--fw-normal);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
}

p {
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* Section Common Layout */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-bottom: 1px solid var(--color-border-dark);
}

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

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

/* Editorial Section Header */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-bronze);
  margin-bottom: var(--space-xs);
}

.label-tag::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.7;
}

.section-dark .label-tag {
  color: var(--color-gold);
}

.section-title {
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.section-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

.section-dark .section-desc {
  color: var(--color-text-inverse-muted);
}

/* Custom Editorial Scrollbar & Selection */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 169, 126, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-bronze);
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-gold);
}
