/* RASGO (solo CSS, sin data-mecanica) · bordes de papel rasgado, en dos usos:
   1) .rasgo-borde en una sección: el borde de arriba (o de abajo con .rasgo-borde--abajo) queda rasgado, como
      papel kraft o una bolsa de panadería. Para pasar de una sección a otra sin línea recta.
   2) .tira en un botón o enlace: al pasar el mouse (o con foco) sube una tira de papel rasgado de color detrás del
      texto; al apretar se achica un poco.
   Cuándo: marcas artesanales, de papel o de calle: pizzería, panadería, cervecería, barbería de barrio, fanzines.
   No mezclar con `arco` en la misma página (dos maneras de cortar secciones se pelean).
   HTML:  <section class="rasgo-borde" style="background:var(--kraft)">…</section>
          <a class="btn tira" href="#pedir">Pedir ahora</a>
   Variables: --rasgo-alto, --rasgo-ancho (tamaño del dentado) · --tira-color, --tira-tinta (texto encima).
   Sin movimiento: el borde se ve igual; la tira aparece sin subir. */
.rasgo-borde, .rasgo-borde--abajo { --rasgo-alto: 22px; --rasgo-ancho: 560px; position: relative; }
.rasgo-borde {
  --rasgo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpath d='M0 10L18 14L34 6L52 12L70 4L88 11L104 7L122 15L140 5L158 10L176 3L194 12L212 8L230 14L248 6L266 11L284 4L302 13L320 7L338 12L356 5L374 10L392 3L410 13L428 8L446 14L464 6L482 11L500 4L518 12L536 7L554 13L572 5L590 12L600 10V24H0Z'/%3E%3C/svg%3E");
  margin-top: calc(-1 * var(--rasgo-alto) + 1px);
  padding-top: calc(var(--rasgo-alto) + var(--rasgo-pad, 0px));
  -webkit-mask: var(--rasgo) 0 0 / var(--rasgo-ancho) var(--rasgo-alto) repeat-x,
    linear-gradient(#000 0 0) 0 calc(var(--rasgo-alto) - 1px) / 100% 100% no-repeat;
  mask: var(--rasgo) 0 0 / var(--rasgo-ancho) var(--rasgo-alto) repeat-x,
    linear-gradient(#000 0 0) 0 calc(var(--rasgo-alto) - 1px) / 100% 100% no-repeat; }
.rasgo-borde--abajo {
  --rasgo-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpath transform='matrix(1 0 0 -1 0 24)' d='M0 10L18 14L34 6L52 12L70 4L88 11L104 7L122 15L140 5L158 10L176 3L194 12L212 8L230 14L248 6L266 11L284 4L302 13L320 7L338 12L356 5L374 10L392 3L410 13L428 8L446 14L464 6L482 11L500 4L518 12L536 7L554 13L572 5L590 12L600 10V24H0Z'/%3E%3C/svg%3E");
  margin-bottom: calc(-1 * var(--rasgo-alto) + 1px);
  padding-bottom: calc(var(--rasgo-alto) + var(--rasgo-pad, 0px));
  z-index: 1; }
.rasgo-borde--abajo:not(.rasgo-borde) {
  -webkit-mask: var(--rasgo-b) 0 100% / var(--rasgo-ancho) var(--rasgo-alto) repeat-x,
    linear-gradient(#000 0 0) 0 calc(-1 * var(--rasgo-alto) + 1px) / 100% 100% no-repeat;
  mask: var(--rasgo-b) 0 100% / var(--rasgo-ancho) var(--rasgo-alto) repeat-x,
    linear-gradient(#000 0 0) 0 calc(-1 * var(--rasgo-alto) + 1px) / 100% 100% no-repeat; }
/* las dos a la vez: rasgado arriba y abajo */
.rasgo-borde.rasgo-borde--abajo {
  -webkit-mask: var(--rasgo) 0 0 / var(--rasgo-ancho) var(--rasgo-alto) repeat-x,
    var(--rasgo-b) 0 100% / var(--rasgo-ancho) var(--rasgo-alto) repeat-x,
    linear-gradient(#000 0 0) 0 50% / 100% calc(100% - 2 * var(--rasgo-alto) + 2px) no-repeat;
  mask: var(--rasgo) 0 0 / var(--rasgo-ancho) var(--rasgo-alto) repeat-x,
    var(--rasgo-b) 0 100% / var(--rasgo-ancho) var(--rasgo-alto) repeat-x,
    linear-gradient(#000 0 0) 0 50% / 100% calc(100% - 2 * var(--rasgo-alto) + 2px) no-repeat; }
@media (max-width: 760px) { .rasgo-borde, .rasgo-borde--abajo { --rasgo-alto: 14px; --rasgo-ancho: 360px; } }

/* tira detrás de un botón */
.tira { position: relative; isolation: isolate; overflow: hidden; transition: color .35s var(--curva), transform .15s; }
.tira::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -10px; bottom: 0;
  background: var(--tira-color, var(--acento));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpath d='M0 10L18 14L34 6L52 12L70 4L88 11L104 7L122 15L140 5L158 10L176 3L194 12L212 8L230 14L248 6L266 11L284 4L302 13L320 7L338 12L356 5L374 10L392 3L410 13L428 8L446 14L464 6L482 11L500 4L518 12L536 7L554 13L572 5L590 12L600 10V24H0Z'/%3E%3C/svg%3E") 0 0 / 180px 10px repeat-x,
    linear-gradient(#000 0 0) 0 9px / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpath d='M0 10L18 14L34 6L52 12L70 4L88 11L104 7L122 15L140 5L158 10L176 3L194 12L212 8L230 14L248 6L266 11L284 4L302 13L320 7L338 12L356 5L374 10L392 3L410 13L428 8L446 14L464 6L482 11L500 4L518 12L536 7L554 13L572 5L590 12L600 10V24H0Z'/%3E%3C/svg%3E") 0 0 / 180px 10px repeat-x,
    linear-gradient(#000 0 0) 0 9px / 100% 100% no-repeat;
  transform: translateY(101%); transition: transform .45s var(--curva); }
@media (hover: hover) { .tira:hover::before { transform: none; } .tira:hover { color: var(--tira-tinta, var(--sobre-acento)); } }
.tira:focus-visible::before { transform: none; }
.tira:focus-visible { color: var(--tira-tinta, var(--sobre-acento)); outline: 2px solid var(--tira-color, var(--acento));
  outline-offset: 3px; }
.tira:active { transform: scale(.97); }
