/* ==========================================================
   BASE — Atma Siddhi · tipografías, body, contenedores
   V4 — escala ampliada, fondos con grain
   ========================================================== */

/* Google Fonts — Allura + Cormorant Garamond + Lato */
@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

/* ---- BODY ---- */
body {
  font-family: var(--font-texto);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--negro-mate);
  background-color: var(--crema-calido);
  overflow-x: hidden;
}

/* ---- HEADINGS ---- */
h1 {
  font-family: var(--font-subtitulos);
  font-size: var(--size-h1);
  line-height: var(--lh-h1);
  font-weight: 400;
  color: var(--tierra);
}

h2 {
  font-family: var(--font-subtitulos);
  font-size: var(--size-h2);
  line-height: var(--lh-h2);
  font-weight: 400;
  color: var(--tierra);
}

h3 {
  font-family: var(--font-subtitulos);
  font-size: var(--size-h3);
  line-height: var(--lh-h3);
  font-weight: 500;
  color: var(--tierra);
}

h4, h5, h6 {
  font-family: var(--font-subtitulos);
  font-weight: 500;
  color: var(--tierra);
}

/* ---- PÁRRAFOS ---- */
p {
  font-family: var(--font-texto);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--negro-mate);
  max-width: 65ch;
}

/* ---- PULL-QUOTE ---- */
.pull-quote {
  font-family: var(--font-titulos);
  font-size: var(--size-quote);
  line-height: var(--lh-quote);
  color: var(--violeta);
  font-weight: 400;
}

/* ---- CONTENEDOR PRINCIPAL ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

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

/* ---- SECCIÓN BASE ---- */
section {
  padding-block: var(--sp-16);
}

@media (max-width: 768px) {
  section {
    padding-block: var(--sp-12);
  }
}

/* ---- PRE-TÍTULO ---- */
.pre-titulo {
  font-family: var(--font-texto);
  font-size: var(--size-small);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violeta);
  margin-bottom: var(--sp-4);
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-header p {
  margin-inline: auto;
  color: var(--tierra-light);
  margin-top: var(--sp-4);
  font-size: var(--size-subtitle);
}

/* ---- DIVISOR SVG ---- */
.divisor {
  width: 100%;
  height: 32px;
  overflow: hidden;
  line-height: 0;
}

/* ---- FOCUS VISIBLE ---- */
:focus-visible {
  outline: 3px solid var(--violeta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--violeta);
  color: var(--crema-calido);
  padding: var(--sp-3) var(--sp-6);
  z-index: 9999;
  font-family: var(--font-texto);
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: 0;
}

/* ---- GRAIN HELPER (G2) ---- */
/* Aplicar a cualquier sección para textura sutil */
.grain-overlay {
  position: relative;
}
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-url);
  background-size: 200px 200px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.grain-overlay > * {
  position: relative;
  z-index: 1;
}

/* ---- DIVISOR ORNAMENTAL SVG (G4 / breaks visuales) ---- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding-block: var(--sp-8);
  opacity: 0.35;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--violeta), transparent);
}

.ornament-divider svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--violeta);
  stroke-width: 1;
}
