/* Devellia - Venta Flash · estilos del escaparate (todo con prefijo app-venta-flash) */
.app-venta-flash-precio { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .4em; }
.app-venta-flash-ahora { color: var(--avf-now, #d92d20); font-weight: 700; }
.app-venta-flash-antes { color: var(--avf-was, #7a7a7a); font-weight: 400; text-decoration: line-through; font-size: .88em; }

.app-venta-flash-etq-pos { position: absolute; top: 8px; left: 8px; z-index: 3; pointer-events: none; }
.app-venta-flash-etq { display: inline-block; background: var(--avf-accent, #d92d20); color: #fff; font: 700 12px/1 system-ui, sans-serif; padding: 6px 10px; letter-spacing: .02em; }
.app-venta-flash-etq--rect { border-radius: min(var(--avf-radius, 4px), 6px); }
.app-venta-flash-etq--pill { border-radius: 999px; }
.app-venta-flash-etq--circle { border-radius: 50%; min-width: 3.1em; min-height: 3.1em; display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 4px; }
.app-venta-flash-etq--ribbon { border-radius: 0 999px 999px 0; padding-left: 14px; margin-left: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6px 50%); }
.app-venta-flash-anima { animation: app-venta-flash-pulso 1.8s ease-in-out infinite; }
@keyframes app-venta-flash-pulso { 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .app-venta-flash-anima { animation: none; } }

.app-venta-flash-lema { display: inline-block; font: 700 11px/1.2 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--avf-accent, #d92d20); }

/* cuenta atrás */
.app-venta-flash-cd { color: var(--avf-text, #111); font: 500 13px/1.3 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.app-venta-flash-cd b { font-weight: 700; color: var(--avf-accent, #d92d20); }
.app-venta-flash-cd--digital b { font-size: 1.5em; letter-spacing: .03em; }
.app-venta-flash-cd--compacto { display: inline-block; background: var(--avf-bg, #fff1f0); border-radius: var(--avf-radius, 6px); padding: 3px 8px; }
.app-venta-flash-cd--cajas { display: flex; gap: 6px; }
.app-venta-flash-caja { display: inline-flex; flex-direction: column; align-items: center; min-width: 3.2em; background: var(--avf-accent, #d92d20); color: #fff; border-radius: var(--avf-radius, 6px); padding: 6px 4px; }
.app-venta-flash-caja b { color: inherit; font-size: 1.4em; line-height: 1; }
.app-venta-flash-caja i { font-style: normal; font-size: 10px; text-transform: uppercase; opacity: .85; }
.app-venta-flash-barra { display: block; height: 8px; background: rgba(0,0,0,.12); border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.app-venta-flash-barra span { display: block; height: 100%; background: var(--avf-accent, #d92d20); border-radius: inherit; transition: width 1s linear; }
.app-venta-flash-barra-t { font-weight: 600; }
.app-venta-flash-cd-card { margin-top: 6px; }
.app-venta-flash-cd-card .app-venta-flash-cd--cajas { gap: 3px; }
.app-venta-flash-cd-card .app-venta-flash-caja { min-width: 2.6em; padding: 3px 2px; }
.app-venta-flash-cd-card .app-venta-flash-caja b { font-size: 1.05em; }
.app-venta-flash-cd-card .app-venta-flash-cd--digital b { font-size: 1.1em; }

/* ficha de producto */
.app-venta-flash-pdp-etq { margin: 8px 0; }
.app-venta-flash-caja-ficha { margin: 10px 0; padding: 12px 14px; background: var(--avf-bg, #fff1f0); color: var(--avf-text, #111); border: 1px solid var(--avf-accent, #d92d20); border-radius: var(--avf-radius, 8px); display: grid; gap: 6px; }

/* banner */
.app-venta-flash-banner { position: relative; background: var(--avf-bg, #fff1f0); color: var(--avf-text, #111); background-size: cover; background-position: center; border-radius: 0; display: block; font-family: system-ui, sans-serif; overflow: hidden; }
.app-venta-flash-banner--small { min-height: 160px; } .app-venta-flash-banner--medium { min-height: 260px; } .app-venta-flash-banner--large { min-height: 400px; }
.app-venta-flash-banner--img { color: #fff; --avf-text: #fff; }
.app-venta-flash-banner-in { padding: 28px 24px; max-width: 920px; width: 100%; display: grid; gap: 12px; justify-items: center; text-align: center; }
.app-venta-flash-banner--left .app-venta-flash-banner-in { justify-items: start; text-align: left; margin-right: auto; }
.app-venta-flash-banner-t { margin: 0; font-size: clamp(26px, 5vw, 46px); line-height: 1.1; color: inherit; }
.app-venta-flash-banner-s { margin: 0; font-size: 16px; opacity: .9; }
.app-venta-flash-banner--img .app-venta-flash-lema { color: #fff; }
.app-venta-flash-banner--img .app-venta-flash-cd { color: #fff; }
.app-venta-flash-btn { display: inline-block; background: var(--avf-accent, #d92d20); color: #fff; padding: 12px 24px; border-radius: var(--avf-radius, 8px); font-weight: 700; text-decoration: none; cursor: pointer; }
.app-venta-flash-bps { display: flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; margin-top: 6px; }
.app-venta-flash-bp { display: grid; gap: 4px; width: 120px; background: rgba(255,255,255,.92); color: #111; border-radius: min(var(--avf-radius, 8px), 12px); padding: 8px; text-decoration: none; font-size: 12px; text-align: left; }
.app-venta-flash-bp img, .app-venta-flash-bp-sin { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #ddd; display: block; }
.app-venta-flash-bp-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-venta-flash-aviso { padding: 16px; border: 1px dashed #aaa; text-align: center; font: 13px system-ui, sans-serif; }

/* banner en forma de slide */
.app-venta-flash-sl { display: none; align-items: center; justify-content: center; gap: 24px; min-height: inherit; height: 100%; background: var(--avf-bg, #fff1f0); color: var(--avf-text, #111); }
.app-venta-flash-banner--img .app-venta-flash-sl { background: transparent; }
.app-venta-flash-sl--on { display: flex; animation: app-venta-flash-fade .5s ease; }
@keyframes app-venta-flash-fade { from { opacity: 0; } to { opacity: 1; } }
.app-venta-flash-banner:not(.app-venta-flash-banner--small):not(.app-venta-flash-banner--large) { min-height: 420px; }
.app-venta-flash-banner--small { min-height: 280px; } .app-venta-flash-banner--large { min-height: 560px; }
.app-venta-flash-sl-img { flex: 0 1 38%; max-height: 90%; padding: 16px; box-sizing: border-box; }
.app-venta-flash-sl-img img { width: 100%; max-height: 380px; object-fit: contain; display: block; }
.app-venta-flash-sl .app-venta-flash-banner-in { max-width: 520px; width: auto; flex: 1 1 auto; }
.app-venta-flash-banner-p { margin: 0; font-size: 22px; font-weight: 700; }
.app-venta-flash-sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.app-venta-flash-sl-nav--prev { left: 12px; } .app-venta-flash-sl-nav--next { right: 12px; }
.app-venta-flash-sl-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.app-venta-flash-sl-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.4); background: rgba(255,255,255,.7); cursor: pointer; }
.app-venta-flash-sl-dot--on { background: var(--avf-accent, #d92d20); border-color: var(--avf-accent, #d92d20); }
@media (max-width: 700px) { .app-venta-flash-sl { flex-direction: column; padding: 16px 0 36px; } .app-venta-flash-sl-img { flex: 0 0 auto; max-width: 60%; } .app-venta-flash-sl-img img { max-height: 200px; } }

/* banner a pantalla completa: la foto del producto de fondo, cuenta atrás grande y movimiento */
.app-venta-flash-banner { width: 100%; min-height: 85vh; min-height: 85svh; }
.app-venta-flash-banner:not(.app-venta-flash-banner--small):not(.app-venta-flash-banner--large) { min-height: 85vh; min-height: 85svh; }
.app-venta-flash-banner--small { min-height: 60vh; min-height: 60svh; } .app-venta-flash-banner--large { min-height: 100vh; min-height: 100svh; }
.app-venta-flash-sl { position: relative; overflow: hidden; padding: 40px 24px 56px; box-sizing: border-box; }
.app-venta-flash-sl--on { min-height: inherit; }
.app-venta-flash-sl--foto { color: #fff; --avf-text: #fff; background: #111; }
.app-venta-flash-sl--foto .app-venta-flash-sl-img { position: absolute; inset: 0; flex: none; max-height: none; padding: 0; z-index: 0; }
.app-venta-flash-sl--foto .app-venta-flash-sl-img img { width: 100%; height: 100%; max-height: none; object-fit: cover; animation: app-venta-flash-zoom 14s ease-in-out infinite alternate; }
.app-venta-flash-sl--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.25) 60%, rgba(0,0,0,.1)); z-index: 1; }
.app-venta-flash-sl .app-venta-flash-banner-in { position: relative; z-index: 2; max-width: 860px; gap: 18px; }
.app-venta-flash-sl--foto .app-venta-flash-banner-t, .app-venta-flash-sl--foto .app-venta-flash-lema, .app-venta-flash-sl--foto .app-venta-flash-cd, .app-venta-flash-sl--foto .app-venta-flash-precio { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.app-venta-flash-sl--foto .app-venta-flash-antes { color: rgba(255,255,255,.75); }
.app-venta-flash-sl--foto .app-venta-flash-cd b { color: #fff; }
.app-venta-flash-sl .app-venta-flash-banner-t { font-size: clamp(34px, 6.5vw, 84px); line-height: 1.05; }
.app-venta-flash-sl .app-venta-flash-banner-p { font-size: clamp(26px, 3.6vw, 48px); }
.app-venta-flash-sl .app-venta-flash-lema { font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.app-venta-flash-sl .app-venta-flash-cd { font-size: clamp(18px, 2.4vw, 30px); }
.app-venta-flash-sl .app-venta-flash-cd--cajas { gap: clamp(8px, 1.6vw, 20px); }
.app-venta-flash-sl .app-venta-flash-caja { min-width: clamp(64px, 9vw, 130px); padding: clamp(10px, 1.6vw, 22px) 8px; border-radius: var(--avf-radius, 14px); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.app-venta-flash-sl .app-venta-flash-caja b { font-size: clamp(34px, 6vw, 88px); font-variant-numeric: tabular-nums; }
.app-venta-flash-sl .app-venta-flash-caja i { font-size: clamp(10px, 1.1vw, 15px); letter-spacing: .08em; }
.app-venta-flash-sl .app-venta-flash-cd--digital b, .app-venta-flash-sl .app-venta-flash-cd--compacto b { font-size: clamp(40px, 7vw, 96px); font-variant-numeric: tabular-nums; }
.app-venta-flash-sl .app-venta-flash-cd--texto b { font-size: clamp(28px, 4.5vw, 60px); }
.app-venta-flash-sl .app-venta-flash-btn { font-size: clamp(16px, 1.6vw, 22px); padding: 16px 40px; }
.app-venta-flash-sl--on .app-venta-flash-banner-in > * { animation: app-venta-flash-sube .7s cubic-bezier(.2,.7,.2,1) both; }
.app-venta-flash-sl--on .app-venta-flash-banner-in > *:nth-child(2) { animation-delay: .1s; } .app-venta-flash-sl--on .app-venta-flash-banner-in > *:nth-child(3) { animation-delay: .2s; }
.app-venta-flash-sl--on .app-venta-flash-banner-in > *:nth-child(4) { animation-delay: .3s; } .app-venta-flash-sl--on .app-venta-flash-banner-in > *:nth-child(5) { animation-delay: .4s; }
.app-venta-flash-sl--on .app-venta-flash-btn { animation: app-venta-flash-sube .7s .5s cubic-bezier(.2,.7,.2,1) both, app-venta-flash-pulso 2s 1.4s ease-in-out infinite; }
.app-venta-flash-sl .app-venta-flash-caja:last-child { animation: app-venta-flash-latido 1s ease-in-out infinite; }
@keyframes app-venta-flash-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes app-venta-flash-sube { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes app-venta-flash-pulso { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes app-venta-flash-latido { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (max-width: 700px) { .app-venta-flash-sl--foto { justify-content: flex-end; padding-bottom: 56px; } .app-venta-flash-sl--foto .app-venta-flash-sl-img { max-width: none; } .app-venta-flash-sl--foto::after { background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.2)); } }
@media (prefers-reduced-motion: reduce) { .app-venta-flash-sl *, .app-venta-flash-sl::after { animation: none !important; } }

/* foto del producto en el recuadro izquierdo y texto + cuenta atrás a la derecha */
.app-venta-flash-sl--foto { justify-content: center; gap: clamp(24px, 5vw, 80px); padding-left: clamp(24px, 6vw, 96px); padding-right: clamp(24px, 6vw, 96px); }
.app-venta-flash-sl--foto .app-venta-flash-sl-img img { filter: blur(22px) brightness(.6); transform: scale(1.15); animation: none; }
.app-venta-flash-sl--foto::after { background: rgba(0,0,0,.3); }
.app-venta-flash-sl-prod { display: none; }
.app-venta-flash-sl--foto .app-venta-flash-sl-prod { display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; flex: 0 1 42%; max-width: 560px; }
.app-venta-flash-sl-prod img { width: 100%; max-height: 70vh; object-fit: contain; display: block; border-radius: var(--avf-radius, 14px); box-shadow: 0 16px 48px rgba(0,0,0,.45); background: rgba(255,255,255,.08); }
.app-venta-flash-sl--foto .app-venta-flash-banner-in { flex: 1 1 50%; max-width: 640px; justify-items: start; text-align: left; margin: 0; }
.app-venta-flash-sl--foto .app-venta-flash-cd { justify-content: flex-start; }
@media (max-width: 900px) { .app-venta-flash-sl--foto { flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 56px; } .app-venta-flash-sl--foto .app-venta-flash-sl-prod { flex: 0 0 auto; max-width: 70%; } .app-venta-flash-sl-prod img { max-height: 32vh; } .app-venta-flash-sl--foto .app-venta-flash-banner-in { justify-items: center; text-align: center; } .app-venta-flash-sl--foto .app-venta-flash-cd { justify-content: center; } }
