/* ============================================================
   JL Refrigeración — Design Tokens & Base
   ============================================================ */

:root {
  /* Brand palette */
  --ink:        #0B0D0E;
  --ink-2:      #1A1D1F;
  --paper:      #FFFFFF;          /* pure white background */
  --paper-2:    #F4F8FB;          /* very light blue tint for surfaces */
  --hairline:   rgba(11, 13, 14, 0.12);
  --hairline-2: rgba(11, 13, 14, 0.06);
  --muted:      rgba(11, 13, 14, 0.58);

  /* JL brand cyan */
  --brand:        #00A0DA;
  --brand-2:      #008CC2;        /* hover / shadow */
  --brand-soft:   #E5F4FB;        /* tinted surfaces */
  --brand-softer: #F4FAFD;
  --brand-ink:    #003C5A;        /* dark blue for headings */

  /* Type */
  --sans: 'Geist', 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Geometry */
  --gutter: 24px;
  --col-w: 1440px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  display: inline-block;
  border-radius: 2px;
}

/* ============================================================
   Section structure
   ============================================================ */
section {
  position: relative;
  padding: 110px 0;
}
section.bare { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gutter);
  margin-bottom: 72px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(36px, 4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 14ch;
  text-wrap: balance;
}
.section-head h2 em {
  font-style: normal;
  color: var(--brand);
}
.section-head .lede {
  font-size: 18px;
  line-height: 1.5;
  max-width: 58ch;
  color: var(--muted);
  align-self: end;
}

/* ============================================================
   Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }
.reveal.d5 { transition-delay: 400ms; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 200ms, color 200ms, transform 200ms, box-shadow 200ms;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 200ms;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 24px; }

.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover { background: var(--brand-2); }

.btn-dark {
  background: var(--ink);
  color: white;
}
.btn-dark:hover { background: var(--ink-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn-ghost:hover {
  background: var(--brand-softer);
  box-shadow: inset 0 0 0 1px var(--brand);
  color: var(--brand-ink);
}

.btn-ghost-white {
  background: transparent;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.06); }

/* ============================================================
   Image frames — real photos with subtle border
   ============================================================ */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frame.tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
