/* Verifias — Sistema de design tokens
   Paleta tierra · Bricolage Grotesque · Sellos como tic identitario */

:root {
  /* Paleta verde profundo + crema cálida + terracota tinta */
  --verde:        #1F5F4A;
  --verde-osc:    #143828;
  --verde-tinta:  #2D7558;
  --verde-claro:  #D9E8DE;
  --crema:        #F5F0E5;
  --crema-osc:    #E8DFC9;
  --negro:        #1A1A1A;
  --gris:         #5C5C5C;
  --gris-suave:   #9E9684;
  --terracota:    #B84527;
  --terracota-osc:#8E2F18;

  --font: 'Bricolage Grotesque', -apple-system, system-ui, sans-serif;

  --grain-opacity: .035;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--negro);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  position: relative;
}

/* Textura sutil de papel — overlay grain */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
}

/* Sistema de Sellos — la firma visual */
.sello {
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  transition: transform .25s ease;
}
.sello-circ {
  width: 54px; height: 54px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-4deg);
  padding: 6px;
  clip-path: polygon(
    50% 0%, 65% 2%, 78% 7%, 88% 16%, 95% 28%, 99% 42%, 99% 58%, 95% 72%, 88% 84%, 78% 93%, 65% 98%, 50% 100%, 35% 98%, 22% 93%, 12% 84%, 5% 72%, 1% 58%, 1% 42%, 5% 28%, 12% 16%, 22% 7%, 35% 2%);
}
.sello-circ::before {
  content: "";
  position: absolute; inset: 0;
  border: 1.5px dashed currentColor;
  border-radius: 50%;
  opacity: .4;
  margin: 5px;
}
.sello-rect {
  padding: 6px 12px;
  font-size: 11px;
  border: 2px solid currentColor;
  transform: rotate(-1.5deg);
  position: relative;
}
.sello-rect::after {
  content: "";
  position: absolute; inset: -3px;
  border: 1px solid currentColor;
  opacity: .3;
  transform: rotate(.8deg);
}
.sello:hover { transform: rotate(-1deg) scale(1.04); }

.sello-verde { color: var(--verde); }
.sello-tint  { color: var(--terracota); }

/* Subrayado SVG manuscrito (clase utility para énfasis en titulares) */
.subrayado {
  position: relative;
  display: inline-block;
}
.subrayado::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: -4px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5 Q 50 1, 100 4 T 198 3' stroke='%23B84527' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Botones del sistema */
.btn {
  font-family: var(--font);
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  padding: 16px 26px;
  transition: all .2s;
  border: 2px solid var(--negro);
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--negro);
}
.btn-primary {
  background: var(--negro); color: var(--crema);
}
.btn-primary:hover {
  background: var(--verde-osc);
  border-color: var(--verde-osc);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--negro);
}
.btn-secondary:hover {
  background: var(--terracota); color: var(--crema);
  border-color: var(--terracota);
}
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
