/* ==========================================================
   ICT — base: tokens, reset, tipografía, layout, botones
   ========================================================== */
:root {
  --ink: #0f1a16;
  --ink-soft: #46554e;
  --forest: #0d2f24;
  --forest-2: #123d2f;
  --green: #1f7a4d;
  --leaf: #4cb37a;
  --red: #e0362a;
  --red-dark: #b92a20;
  --cream: #f7f5ef;
  --tint: #eef4ef;
  --white: #fff;
  --line: rgba(15, 26, 22, .12);
  --shadow-sm: 0 1px 2px rgba(13, 47, 36, .06), 0 4px 14px rgba(13, 47, 36, .06);
  --shadow-md: 0 10px 34px rgba(13, 47, 36, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", "Manrope", system-ui, sans-serif;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .section--green :focus-visible, .cta :focus-visible, .footer :focus-visible, .hero :focus-visible { outline-color: #ffd0cb; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border: 2px solid transparent; border-radius: 999px;
  font: 700 .97rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn--sm { padding: .62em 1.15em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(224, 54, 42, .32); }
.btn--primary:hover { background: var(--red-dark); }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--forest-2); }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: var(--tint); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }
.btn--whatsapp { background: #1fa855; color: #fff; }
.btn--whatsapp:hover { background: #178a45; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--red-dark); text-decoration: none; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- Secciones --- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--forest); color: #fff; }
.section--green { background: linear-gradient(160deg, var(--green), #145c39); color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: 16px; }
.section--dark .section__lead, .section--green .section__lead { color: rgba(255, 255, 255, .78); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ffb4ac; }

/* --- Animación de aparición al scroll --- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
