:root {
  --cafe: #352418;
  --cafe-2: #4a3323;
  --cafe-3: #6b4e38;
  --tinta: #1f150e;
  --kraft: #dcd3c2;
  --kraft-2: #e9e2d5;
  --papel: #f7f3ec;
  --blanco: #fffdf9;
  --oxido: #c4552b;
  --oxido-2: #a8431e;
  --verde-wa: #25d366;
  --gris: #7d6f63;
  --linea: rgba(53, 36, 24, .12);
  --vidrio: rgba(255, 253, 249, .62);
  --vidrio-osc: rgba(31, 21, 14, .38);
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --sombra: 0 18px 50px -18px rgba(53, 36, 24, .35);
  --sombra-2: 0 30px 70px -24px rgba(53, 36, 24, .5);
  --f-disp: 'Archivo', system-ui, sans-serif;
  --f-txt: 'Geist', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-txt);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--cafe); color: var(--kraft); }

.disp {
  font-family: var(--f-disp);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: .95;
}

/* Botón principal: la capa de color barre desde la izquierda y la flecha se desliza */
.btn {
  --bg: var(--cafe);
  --fg: var(--kraft);
  --fill: var(--oxido);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 16px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), color .35s;
  box-shadow: 0 10px 24px -12px rgba(31, 21, 14, .55);
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fill);
  border-radius: inherit;
  transform: translateX(-101%);
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn .flecha {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  overflow: hidden;
  transition: background .35s, color .35s;
}
.btn .flecha svg { width: 14px; height: 14px; transition: transform .45s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(31, 21, 14, .6); }
.btn:hover::before { transform: translateX(0); }
.btn:hover .flecha svg { animation: flecha .55s var(--ease); }
.btn:active { transform: translateY(0) scale(.97); }
@keyframes flecha { 0% { transform: translateX(0); } 49% { transform: translateX(22px); } 50% { transform: translateX(-22px); } 100% { transform: translateX(0); } }

.btn.claro { --bg: var(--kraft); --fg: var(--cafe); --fill: var(--blanco); }
.btn.oxido { --bg: var(--oxido); --fg: var(--blanco); --fill: var(--cafe); }

/* Botón de vidrio con borde luminoso */
.btn-vidrio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 253, 249, .28);
  background: rgba(255, 253, 249, .1);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: var(--kraft);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .45s var(--ease), background .35s, border-color .35s;
}
.btn-vidrio::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease);
}
.btn-vidrio:hover { transform: translateY(-3px); background: rgba(255, 253, 249, .18); border-color: rgba(255, 253, 249, .5); }
.btn-vidrio:hover::after { left: 130%; }
.btn-vidrio svg { width: 18px; height: 18px; }
.btn-vidrio.osc { color: var(--cafe); border-color: var(--linea); background: rgba(53, 36, 24, .05); }
.btn-vidrio.osc:hover { background: rgba(53, 36, 24, .1); border-color: rgba(53, 36, 24, .3); }

/* Botón redondo */
.redondo {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, .5);
  background: var(--vidrio);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: var(--cafe);
  text-decoration: none;
  box-shadow: 0 10px 30px -14px rgba(31, 21, 14, .45);
  transition: transform .45s var(--ease), background .3s, color .3s;
}
.redondo:hover { transform: translateY(-3px) rotate(-6deg); background: var(--cafe); color: var(--kraft); }
.redondo svg { width: 20px; height: 20px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visto { opacity: 1; transform: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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