/* Titulos de barrio en estilo fileteado porteño (ver js/filete.js):
   letra crema con brillo arriba, contorno oscuro, relieve en diagonal de un color y los ornamentos
   ( y ) de la tipografia Los Banditos a los costados. La tipografia no trae acentos ni Ñ: se dibujan
   aparte (.mk) sobre la letra base. */
@font-face {
  font-family: "Los Banditos";
  src: url("../fonts/los-banditos.ttf") format("truetype");
  font-display: block;
}

.filete {
  --hi: #fffdf2; /* brillo de la letra */
  --face: #f1e5c6; /* cara de la letra */
  --line: #24100a; /* contorno */
  --ext: #c62f22; /* relieve */
  --ext2: #6d140c; /* relieve, parte profunda */
  --orn: #f2c230; /* ornamentos */
  --orn2: #a35d06;
  position: relative;
  display: inline-block;
  font-family: "Los Banditos", Impact, sans-serif;
  font-size: 72px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
}
.filete .layer { display: block; }
.filete .layer + .layer { position: absolute; left: 0; top: 0; }

/* relieve: muchas sombras corridas en diagonal (como la letra pintada con volumen) + linea negra final */
.filete .ext {
  color: var(--ext);
  -webkit-text-stroke: 0.06em var(--line);
  text-shadow:
    0.012em 0.012em 0 var(--ext), 0.024em 0.024em 0 var(--ext), 0.036em 0.036em 0 var(--ext),
    0.048em 0.048em 0 var(--ext2), 0.06em 0.06em 0 var(--ext2), 0.072em 0.072em 0 var(--ext2),
    0.084em 0.084em 0 var(--line), 0.096em 0.096em 0 var(--line);
}
/* cara: crema con una franja de brillo arriba */
.filete .face {
  color: transparent;
  background: linear-gradient(180deg, var(--hi) 0%, var(--hi) 42%, var(--face) 46%, var(--face) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* filete: una linea fina de luz en el borde de arriba a la izquierda */
.filete .shine {
  color: transparent;
  -webkit-text-stroke: 0.012em rgba(255, 255, 255, 0.5);
  transform: translate(-0.012em, -0.012em);
  -webkit-mask-image: linear-gradient(135deg, #000 30%, transparent 60%);
  mask-image: linear-gradient(135deg, #000 30%, transparent 60%);
}
/* ornamentos ( ) en otro color */
.filete .ext .orn { color: var(--orn2); }
.filete .face .orn {
  background: linear-gradient(180deg, #fff6c8 0%, var(--orn) 45%, var(--orn2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.filete .orn { margin: 0 0.12em; }

/* acentos y eñe dibujados aparte (la tipografia no los trae) */
.filete .ac { position: relative; display: inline-block; }
.filete .mk { position: absolute; left: 50%; top: 0.02em; width: 0.42em; height: 0.2em; transform: translateX(-50%); }
.filete .mk::before {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
.filete .ext .mk::before { background: var(--line); transform: translate(0.05em, 0.05em) scale(1.3); }
.filete .face .mk::before { background: var(--hi); }
.filete .shine .mk { display: none; }
.mk.acute { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M14 18 L24 2 L31 4 L19 19 Z'/%3E%3C/svg%3E"); }
.mk.tilde { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M4 15 C8 4 15 4 21 9 C26 13 31 12 34 5 L38 7 C34 17 26 18 19 13 C14 9 10 10 8 17 Z'/%3E%3C/svg%3E"); }
.mk.diaer { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Ccircle cx='12' cy='10' r='5'/%3E%3Ccircle cx='28' cy='10' r='5'/%3E%3C/svg%3E"); }
