/* ============================================================
   ÁMATE — utilities.css
   Clases de utilidad: spacing, text, flex, grid, display
   ============================================================ */

/* === DISPLAY === */
.block    { display: block; }
.inline   { display: inline; }
.flex     { display: flex; }
.grid     { display: grid; }
.hidden   { display: none !important; }
.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;
}

/* === FLEX === */
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.items-end    { align-items: flex-end; }
.justify-start    { justify-content: flex-start; }
.justify-center   { justify-content: center; }
.justify-end      { justify-content: flex-end; }
.justify-between  { justify-content: space-between; }
.gap-2  { gap: var(--sp-2); }
.gap-3  { gap: var(--sp-3); }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }
.gap-12 { gap: var(--sp-12); }

/* === GRID HELPERS === */
.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.col-span-2 { grid-column: span 2; }

/* === SPACING === */
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }

.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-3  { margin-bottom: var(--sp-3); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }

.mx-auto { margin-left: auto; margin-right: auto; }

.pt-0  { padding-top: 0; }
.pt-8  { padding-top: var(--sp-8); }
.pt-16 { padding-top: var(--sp-16); }
.pb-0  { padding-bottom: 0; }
.pb-8  { padding-bottom: var(--sp-8); }

/* === TIPOGRAFÍA === */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }

.font-display { font-family: var(--font-display); }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.italic       { font-style: italic; }
.uppercase    { text-transform: uppercase; }
.tracking-wide{ letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }

/* === COLORES DE TEXTO === */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-orange    { color: var(--primary-light); }
.text-gold      { color: var(--gold-light); }

/* === ANCHO / ALTURA === */
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.max-w-prose { max-width: 68ch; }
.max-w-lg    { max-width: 640px; }
.max-w-xl    { max-width: 800px; }
.max-w-2xl   { max-width: 1000px; }

/* === POSITION === */
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }

/* === OVERFLOW === */
.overflow-hidden { overflow: hidden; }

/* === BORDER === */
.rounded-sm { border-radius: var(--r-sm); }
.rounded    { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: var(--r-full); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* === FONDOS === */
.bg-card    { background: var(--bg-card); }
.bg-surface { background: var(--bg-surface); }
.bg-elevated { background: var(--bg-elevated); }

/* === DIVISOR === */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}
.divider-lg { margin: var(--sp-16) 0; }

/* === LEAD (párrafo introductorio) === */
.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* === LIST CHECKS === */
.list-check { display: flex; flex-direction: column; gap: var(--sp-3); }
.list-check li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.list-check li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D4580A'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === ROMBO decorativo SVG inline (motivo maya) === */
.rombo-deco {
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
