/* Yappy, forma de pago preferida (2-dic-2026): blanco con aro arcoíris que gira y brilla.
   El arcoíris es la única excepción a los 3 colores de la web: es la firma de Yappy y de la vista guiada. */
@property --yp-giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn-yappy { --yp-arco: conic-gradient(from var(--yp-giro), #FF3B3B, #FF9F1C, #FFD60A, #2EC27E, #1C9BFF, #8B5CF6, #FF3BD4, #FF3B3B);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px 0 10px;
  border: 3px solid transparent; border-radius: 999px; background: linear-gradient(#FFFFFF, #F7F6F3) padding-box, var(--yp-arco) border-box;
  color: #121317; font: 800 1rem/1 var(--f); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 0 rgb(18 19 23 / .14), 0 12px 28px -14px rgb(139 92 246 / .7), 0 8px 22px -16px rgb(255 59 59 / .6);
  transition: transform 220ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 220ms var(--ease-out); }
.btn-yappy::before { content: ''; position: absolute; inset: -7px; z-index: -1; border-radius: inherit; background: conic-gradient(#FF3B3B, #FF9F1C, #FFD60A, #2EC27E, #1C9BFF, #8B5CF6, #FF3BD4, #FF3B3B);
  filter: blur(12px); opacity: .28; transition: opacity 260ms ease, inset 260ms var(--ease-out); pointer-events: none; }
.yp-brillo { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.yp-brillo::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgb(255 214 10 / .38), rgb(28 155 255 / .3), rgb(255 59 212 / .32), transparent); opacity: 0; }
.yp-ic { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 200deg, #FF3B3B, #FF9F1C, #FFD60A, #2EC27E, #1C9BFF, #8B5CF6, #FF3BD4, #FF3B3B); color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .55); }
.yp-ic::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #121317; }
.yp-ic svg { position: relative; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.yp-ic .yp-o1, .yp-ic .yp-o2 { opacity: .9; }
.yp-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.yp-txt small { font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5A5B63; order: 0; }
.yp-txt b { font-size: 1.14rem; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; order: 1; }
.yp-txt b span { display: inline-block; }
.btn-yappy[data-modo="ws"] .yp-txt small { order: 2; }
.yp-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; margin-left: 2px; }
.yp-eq i { width: 3px; height: 100%; border-radius: 2px; transform: scaleY(.3); transform-origin: bottom; }
.yp-eq i:nth-child(1) { background: #FF3B3B; } .yp-eq i:nth-child(2) { background: #FFD60A; } .yp-eq i:nth-child(3) { background: #2EC27E; } .yp-eq i:nth-child(4) { background: #1C9BFF; }
.yp-onda { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgb(255 214 10 / .55), rgb(139 92 246 / .35) 55%, transparent 70%); animation: ypOnda 620ms var(--ease-out) forwards; }
@keyframes ypOnda { to { transform: scale(22); opacity: 0; } }
.btn-yappy:active { transform: translateY(2px) scale(.965); box-shadow: 0 0 0 rgb(18 19 23 / .14), 0 6px 14px -10px rgb(139 92 246 / .7); }
.btn-yappy:focus-visible { outline: 3px solid #8B5CF6; outline-offset: 4px; }
.btn-yappy.ancho { display: flex; width: 100%; }
.btn-yappy--chico { min-height: 46px; padding: 0 14px 0 6px; gap: 8px; }
.btn-yappy--chico .yp-ic { width: 30px; height: 30px; } .btn-yappy--chico .yp-ic svg { width: 16px; height: 16px; }
.btn-yappy--chico .yp-txt b { font-size: .98rem; } .btn-yappy--chico .yp-txt small { font-size: .58rem; }
.btn-yappy--xl { display: flex; width: 100%; min-height: 62px; }
.btn-yappy--xl .yp-txt b { font-size: 1.22rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn-yappy { animation: ypGiro 5s linear infinite; }
  .yp-brillo::after { animation: ypBrillo 4.2s var(--ease-io) infinite; }
  .yp-ic .yp-o1 { animation: ypSenal 2.4s ease-out infinite; } .yp-ic .yp-o2 { animation: ypSenal 2.4s ease-out .25s infinite; }
}
@media (hover: hover) {
  .btn-yappy:hover { transform: translateY(-3px) scale(1.02); }
  .btn-yappy:hover::before { opacity: .62; inset: -10px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-yappy:hover { animation-duration: 1.3s; }
  .btn-yappy:hover .yp-brillo::after { animation-duration: 1.1s; }
  .btn-yappy:hover .yp-txt b span { animation: ypLetra .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * 45ms); }
  .btn-yappy:hover .yp-eq i { animation: ypEq .5s ease-in-out infinite alternate; }
  .btn-yappy:hover .yp-eq i:nth-child(2) { animation-delay: -.2s; } .btn-yappy:hover .yp-eq i:nth-child(3) { animation-delay: -.35s; } .btn-yappy:hover .yp-eq i:nth-child(4) { animation-delay: -.1s; }
  .btn-yappy:hover .yp-ic { animation: ypTel .55s var(--ease-out); }
}
@keyframes ypGiro { to { --yp-giro: 360deg; } }
@keyframes ypBrillo { 0%, 62% { left: -60%; opacity: 0; } 66% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
@keyframes ypSenal { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ypLetra { 40% { transform: translateY(-5px) rotate(-4deg); } 100% { transform: none; } }
@keyframes ypEq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes ypTel { 30% { transform: rotate(-14deg) scale(1.08); } 60% { transform: rotate(10deg); } 100% { transform: none; } }

/* sello «Preferido» y chip en listas de medios */
.yp-pref { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: #fff; color: #121317; font: 800 .7rem/1 var(--f); letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(#FF3B3B, #FF9F1C, #FFD60A, #2EC27E, #1C9BFF, #8B5CF6, #FF3BD4, #FF3B3B) border-box; }
.yp-pref::before { content: '★'; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #121317; color: #FFD60A; font-size: .6rem; }
.medios li.medio-yappy { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 2px solid transparent; box-shadow: none;
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(#FF3B3B, #FF9F1C, #FFD60A, #2EC27E, #1C9BFF, #8B5CF6, #FF3BD4, #FF3B3B) border-box; color: #121317; font-weight: 800; }
.medios li.medio-yappy .yp-pref { padding: 3px 8px 3px 4px; border: 0; background: #121317; color: #fff; font-size: .6rem; }

/* bloque Yappy en «Llévatelo hoy» */
.yp-banda { position: relative; display: grid; gap: 14px; margin: 22px 0 6px; padding: 18px; border-radius: 24px; color: #121317; isolation: isolate;
  border: 3px solid transparent; background: linear-gradient(#FFFFFF, #F7F6F3) padding-box, conic-gradient(from var(--yp-giro), #FF3B3B, #FF9F1C, #FFD60A, #2EC27E, #1C9BFF, #8B5CF6, #FF3BD4, #FF3B3B) border-box; }
@media (prefers-reduced-motion: no-preference) { .yp-banda { animation: ypGiro 7s linear infinite; } }
.yp-banda .yp-pref { justify-self: start; }
.yp-banda h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-stretch: 80%; line-height: 1.05; color: #121317; margin: 0; }
.yp-banda p { margin: 0; color: #43444C; font-size: .95rem; }
.yp-banda .yp-acc { display: flex; flex-wrap: wrap; gap: 10px; }
.calc .btn-yappy { width: 100%; display: flex; margin-bottom: 10px; }

/* pedido y ficha */
.pago-yappy { display: grid; gap: 10px; }
.pago-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pago-alt .btn { min-height: 46px; padding: 0 10px; font-size: .9rem; }
.pago-alt .btn-yappy { min-height: 46px; }
@media (max-width: 400px) { .pago-alt { grid-template-columns: 1fr; } }
.ficha-yappy { margin-top: 12px; }

/* hoja «Paga con Yappy» */
.yp-dlg { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; background: var(--main); color: var(--second); overflow: auto;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .5); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity 260ms ease, transform 360ms cubic-bezier(.34, 1.56, .64, 1), overlay 260ms allow-discrete, display 260ms allow-discrete; }
.yp-dlg[open] { opacity: 1; transform: none; }
@starting-style { .yp-dlg[open] { opacity: 0; transform: translateY(16px) scale(.97); } }
.yp-dlg::backdrop { background: rgb(18 19 23 / .55); }
.yp-in { position: relative; padding: 22px 20px 20px; display: grid; gap: 14px; }
.yp-in::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #FF3B3B, #FF9F1C, #FFD60A, #2EC27E, #1C9BFF, #8B5CF6, #FF3BD4); }
.yp-cab { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.yp-sello { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; color: #fff; position: relative;
  background: conic-gradient(from var(--yp-giro), #FF3B3B, #FF9F1C, #FFD60A, #2EC27E, #1C9BFF, #8B5CF6, #FF3BD4, #FF3B3B); }
.yp-sello::before { content: ''; position: absolute; inset: 4px; border-radius: 14px; background: #121317; }
.yp-sello svg { position: relative; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .yp-sello { animation: ypGiro 3s linear infinite; } .yp-sello .yp-o1 { animation: ypSenal 2s ease-out infinite; } .yp-sello .yp-o2 { animation: ypSenal 2s ease-out .25s infinite; } }
.yp-kicker { margin: 0 0 2px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.yp-cab h2 { margin: 0; font-size: 1.6rem; font-stretch: 80%; line-height: 1; }
.yp-marca { background: linear-gradient(90deg, #D61F28, #A65400, #138A50, #0F66B8, #6A35D6); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-tema-actual="noche"] .yp-marca { background: linear-gradient(90deg, #FF6E77, #FFB347, #FFE14D, #4ADE80, #5BB8FF, #B794F6); -webkit-background-clip: text; background-clip: text; }
.yp-sub { margin: 0; color: var(--suave); font-size: .95rem; }
.yp-monto { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--velo); box-shadow: inset 0 0 0 1px var(--linea); }
.yp-monto-l { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.yp-total { display: block; font-size: 2rem; font-weight: 900; font-stretch: 78%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.yp-monto.sin .yp-total { font-size: 1.05rem; font-stretch: 90%; }
.yp-nota-monto { display: block; color: var(--suave); font-size: .78rem; margin-top: 2px; }
.yp-copiar { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--second); color: var(--main); font: 700 .82rem var(--f); cursor: pointer; transition: transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.yp-copiar:active { transform: scale(.94); }
.yp-copiar.ok { background: #1A9A5C; color: #fff; }
.yp-detalle { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 170px; overflow: auto; }
.yp-detalle:empty { display: none; }
.yp-detalle li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.yp-detalle li:not(:has(img)) { grid-template-columns: 1fr auto; }
.yp-detalle img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--linea); }
.yp-detalle b { font-variant-numeric: tabular-nums; }
.yp-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.yp-pasos li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: .92rem; line-height: 1.4; }
.yp-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 900; font-size: .9rem; background: #121317; box-shadow: 0 0 0 2px var(--main), 0 0 0 4px var(--c, #8B5CF6); }
.yp-pasos li:nth-child(1) .yp-n { --c: #FF3B3B; } .yp-pasos li:nth-child(2) .yp-n { --c: #FFD60A; } .yp-pasos li:nth-child(3) .yp-n { --c: #1C9BFF; }
:root[data-tema-actual="noche"] .yp-n { background: #fff; color: #121317; }
@media (prefers-reduced-motion: no-preference) { .yp-dlg[open] .yp-pasos li { animation: ypPaso .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(140ms + var(--i) * 110ms); } }
@keyframes ypPaso { from { opacity: 0; transform: translateX(-12px); } }
.yp-tarjeta { justify-self: center; font-size: .9rem; color: var(--suave); }
.yp-seguro { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: .8rem; color: var(--suave); text-align: center; }
.yp-seguro svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.capa-fx .yp-nota { position: absolute; font: 900 22px/1 var(--f); text-shadow: 0 2px 0 rgb(0 0 0 / .12); }
.yp-codigo { margin: -4px 0 0; font-size: .8rem; color: var(--suave); }
.yp-codigo b { font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--second); }
