/* ============================================
   Cielo Mercadotecnia — design tokens & base
   Mexican-warm + Apple-clean editorial system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* --- Mexican sunset palette --- */
  --terracotta: #C9512E;       /* primary warm */
  --terracotta-deep: #A53D1F;
  --gold: #E8A33D;             /* secondary warm */
  --gold-soft: #F2C475;
  --navy: #0E1A35;             /* primary dark */
  --navy-deep: #060C20;
  --cream: #F6EFE2;            /* primary light bg */
  --cream-warm: #EFE5D2;
  --bone: #FAF6EE;
  --ink: #15110C;              /* foreground */
  --ink-muted: rgba(21, 17, 12, 0.62);
  --ink-faint: rgba(21, 17, 12, 0.38);
  --line: rgba(21, 17, 12, 0.14);
  --line-strong: rgba(21, 17, 12, 0.28);

  /* signature sunset gradient (used SPARINGLY) */
  --sunset: linear-gradient(135deg, #C9512E 0%, #E8A33D 60%, #F2C475 100%);
  --sunset-h: linear-gradient(90deg, #C9512E 0%, #E8A33D 100%);

  /* type */
  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* spacing 8pt */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --s11: 192px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.section {
  position: relative;
  padding: var(--s10) var(--s7);
}
@media (max-width: 768px) {
  .section { padding: var(--s9) var(--s5); }
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.hairline {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 150ms cubic-bezier(.2,.6,.2,1), background 150ms, color 150ms, box-shadow 200ms;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: #000; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

.btn-sunset {
  background: var(--sunset-h);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 6px 18px rgba(201,81,46,0.25);
}
.btn-sunset:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 10px 28px rgba(201,81,46,0.38); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-wa {
  background: #25D366;
  color: white;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
}
.btn-wa:hover { background: #1faa53; }

/* fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.6,.2,1), transform 800ms cubic-bezier(.2,.6,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* sun-burst utility — radial sunset glow */
.sunburst {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  background: radial-gradient(circle, rgba(232,163,61,0.55), rgba(201,81,46,0.25) 50%, transparent 75%);
}

/* papel-picado style decorative band — subtle */
.papel {
  height: 28px;
  background-image:
    radial-gradient(circle at 14px 0, transparent 8px, var(--terracotta) 8px, var(--terracotta) 9px, transparent 10px);
  background-size: 28px 28px;
  background-repeat: repeat-x;
  opacity: 0.18;
}

/* selection */
::selection { background: var(--gold); color: var(--ink); }

/* focus */
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* utility */
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-muted); }

/* hide scrollbars on horizontal carousels */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
