/* ============================================================
   HEMEL — Propuesta web · estilos base + tokens + animaciones
   Marca: DM Sans · naranja Hemel · neutrales stone cálidos
   ============================================================ */

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;

  /* Marca */
  --hemel-50:#fff9e6; --hemel-100:#fef1c7; --hemel-200:#fde08f; --hemel-300:#fccb58;
  --hemel-400:#f9b52a; --hemel-500:#e99d23; --hemel-600:#d17e1a; --hemel-700:#b45a12;
  --hemel-800:#96380c; --hemel-900:#741906;
  --accent: var(--hemel-600);
  --accent-2: var(--hemel-500);

  /* Stone */
  --stone-50:#fafaf9; --stone-100:#f5f5f4; --stone-200:#e7e5e4; --stone-300:#d6d3d1;
  --stone-400:#a8a29e; --stone-500:#78716c; --stone-600:#57534e; --stone-700:#44403c;
  --stone-800:#292524; --stone-900:#1c1917; --stone-950:#0c0a09;

  /* Semánticos — TEMA CLARO (default) */
  --bg: #f5f5f4;
  --bg-soft: #faf8f5;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #a8a29e;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --hero-ink: #1c1917;
  --shadow-sm: 0 1px 2px rgba(28,25,23,.06);
  --shadow-md: 0 10px 30px rgba(28,25,23,.08);
  --shadow-lg: 0 24px 60px rgba(28,25,23,.12);
  --shadow-glow: 0 24px 80px rgba(209,126,26,.18);
  --glass: rgba(255,255,255,.72);
  --glass-border: rgba(28,25,23,.08);
  --map-land: #ece9e4;
  --map-land-2:#e0dcd5;
  --map-edge: #cfc9c0;
  --grid-dot: rgba(28,25,23,.05);
}

html[data-theme="dark"] {
  --bg: #161311;
  --bg-soft: #1c1917;
  --bg-elev: #211d1a;
  --surface: #211d1a;
  --surface-2: #262220;
  --ink: #f5f5f4;
  --ink-2: #b8b0a8;
  --ink-3: #78716c;
  --line: #322c28;
  --line-strong: #3f3833;
  --hero-ink: #f5f5f4;
  --shadow-sm: none;
  --shadow-md: 0 18px 44px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.55);
  --shadow-glow: 0 24px 90px rgba(233,157,35,.22);
  --glass: rgba(33,29,26,.66);
  --glass-border: rgba(255,255,255,.08);
  --map-land:#2a2522;
  --map-land-2:#322c28;
  --map-edge:#473f39;
  --grid-dot: rgba(255,255,255,.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--hemel-200); color: var(--stone-900); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Layout helpers ---- */
.wrap { width: min(1240px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(940px, 92vw); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 11vh, 140px) 0; }

/* ---- Type ---- */
/* Eyebrow editorial: sentence-case, neutro, con punto de acento.
   (Sin mayúsculas / tracking ancho / rayita degradada — evita el look "IA".) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .95rem; font-weight: 500; text-transform: none; letter-spacing: 0;
  color: var(--ink-2);
}
.eyebrow::before {
  content:""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.display {
  font-weight: 600; letter-spacing: -.025em; line-height: .98;
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
}
.h2 { font-weight: 600; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(2rem, 4vw, 3.2rem); }
.h3 { font-weight: 600; letter-spacing: -.015em; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--ink-2); }
.grad-text {
  color: var(--accent-2);
  font-style: normal;            /* sin cursiva, naranja sólido, sin animación (evita ghosting) */
}

/* ---- Buttons ---- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  padding: .85rem 1.5rem; border-radius: 14px; border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .2s, color .2s, box-shadow .25s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(209,126,26,.28); }
.btn-primary:hover { background: var(--hemel-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(209,126,26,.36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: .6rem 1.05rem; font-size: .875rem; border-radius: 11px; }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.pill {
  display:inline-flex; align-items:center; gap:.45rem; padding:.4rem .85rem;
  border-radius: 999px; font-size:.8rem; font-weight:600;
  background: var(--surface); border:1px solid var(--line); color: var(--ink-2);
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
.reveal[data-d="5"]{ transition-delay:.40s }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1 !important; transform:none !important } html{ scroll-behavior:auto } }

/* ---- Animations ---- */
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
@keyframes pulse-ring { 0%{ transform: scale(.6); opacity:.8 } 100%{ transform: scale(2.6); opacity:0 } }
@keyframes spin-slow { to { transform: rotate(360deg) } }
@keyframes marquee { to { transform: translateX(-50%) } }
@keyframes gridmove { to { background-position: 40px 40px } }
@keyframes blob { 0%,100%{ border-radius:42% 58% 63% 37%/42% 38% 62% 58% } 50%{ border-radius:58% 42% 38% 62%/58% 62% 38% 42% } }

/* dotted grid bg */
.dotgrid {
  background-image: radial-gradient(var(--grid-dot) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
