/* ==========================================================
   base.css — tokens, reset, tipografía, botones, utilidades
   ========================================================== */
:root {
  --forest: #07382c; --forest2: #0c4b3a; --leaf: #08765a;
  --teal: #00a69c; --teal2: #73d8c5;
  --sun: #f49a00; --sun2: #ffb52e;
  --cream: #fff4df; --paper: #fffdf8;
  --ink: #12392e; --muted: #5d7167; --line: #e8e9dc; --white: #fff;
  --shadow: 0 22px 70px #052d231a;
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-head: 'Manrope', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); overflow-x: hidden; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--forest); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 800; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, calc(100% - 48px)); margin: auto; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--leaf); font-size: .68rem; letter-spacing: .19em; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--sun); }

/* Botones */
.btn {
  border: 0; border-radius: 999px; padding: 15px 21px; background: var(--sun); color: #18392d;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 9px 26px #f49a0038; transition: transform .28s var(--ease), background .28s, box-shadow .28s, opacity .2s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:hover { background: var(--sun2); transform: translateY(-3px); box-shadow: 0 15px 34px #f49a0050; }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn.dark { background: var(--forest); color: #fff; box-shadow: none; }
.btn.dark:hover { background: var(--leaf); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #ffffff88; box-shadow: none; }
.btn.ghost:hover { border-color: var(--teal2); color: var(--teal2); }
.btn.outline { background: transparent; color: var(--forest); border: 1.5px solid #cfdccf; box-shadow: none; }
.btn.outline:hover { border-color: var(--leaf); background: #eef7f1; }
.btn.wa { background: #1fa855; color: #fff; box-shadow: 0 9px 26px #1fa85540; }
.btn.wa:hover { background: #17924a; }
.btn.small { padding: 12px 16px; font-size: .68rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; box-shadow: none; }
.arrow { font-size: 1.1rem; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Ripple del botón (lo crea effects.js) */
.ripple { position: absolute; border-radius: 50%; background: #ffffff66; transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.close { border: 0; background: #edf2ea; border-radius: 50%; width: 40px; height: 40px; font-size: 1.3rem; color: var(--forest); transition: background .2s, transform .2s; line-height: 1; }
.close:hover { background: var(--sun); transform: rotate(90deg); }

/* Reveal on scroll (escalonado con --i) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.visible { opacity: 1; transform: none; }
.delay1 { --i: 1; } .delay2 { --i: 2; }

/* Barra de progreso de scroll */
.progress { position: fixed; z-index: 200; inset: 0 0 auto; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--sun)); }

@keyframes pulse { 50% { opacity: .35; transform: scaleY(.7); } }

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