/* =========================================================
   ÁNGELES · Base · Reset · Tipografía · Utilidades
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Italianno&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600;700;800&display=swap");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--burdeos); }
ul, ol { padding: 0; margin: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

/* ───── Tipografía ───── */
.font-display { font-family: var(--font-display); font-weight: 400; line-height: .9; }
.font-serif   { font-family: var(--font-serif); }
.font-sans    { font-family: var(--font-sans); }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: var(--lh-snug); color: var(--text); }
h1 { font-size: var(--fs-4xl); letter-spacing: -.01em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -.005em; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-4); }
.lead { font-size: var(--fs-lg); line-height: var(--lh-loose); color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--burdeos);
  position: relative;
  padding-left: 36px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: translateY(-50%);
}
.eyebrow.center { padding-left: 0; padding: 0 36px; }
.eyebrow.center::before { left: 0; width: 24px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow.center::after  {
  content:""; position:absolute; right:0; top:50%; width:24px; height:1px;
  background: linear-gradient(90deg, var(--gold), transparent); transform: translateY(-50%);
}

.gold-text {
  background: var(--gold-shimmer);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

.script-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .85;
  letter-spacing: .005em;
}

/* ───── Layout ───── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
section { padding: var(--space-9) 0; position: relative; }
section.tight   { padding: var(--space-7) 0; }
section.spacious { padding: var(--space-10) 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head p  { color: var(--text-soft); }

/* ───── Utilidades ───── */
.text-center { text-align: center; }
.text-soft   { color: var(--text-soft); }
.text-mute   { color: var(--text-mute); }
.text-burdeos{ color: var(--burdeos); }
.text-gold   { color: var(--gold-deep); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); } .gap-5 { gap: var(--space-5); } .gap-6 { gap: var(--space-6); } .gap-7 { gap: var(--space-7); }

.grid { display: grid; gap: var(--space-5); }
.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(260px, 1fr)); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  border: 0;
  margin: var(--space-6) auto;
  max-width: 320px;
}

.bg-deep   { background: var(--noir-900); color: var(--text-on-dark); }
.bg-burdeos{ background: var(--burdeos); color: var(--text-on-dark); }
.bg-cream  { background: var(--crema-200); }
.bg-paper  { background: var(--surface-tint); }

.bg-noise {
  position: relative;
}
.bg-noise::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3, 0 0 0 0 .2, 0 0 0 0 .1, 0 0 0 .15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@media (max-width: 900px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: var(--space-7) 0; }
}

/* Selection */
::selection { background: var(--gold-200); color: var(--burdeos-900); }
