/* Cole Eventos — frontend
   Paleta: base zinc, un solo acento (naranja del club, desaturado). Sin negro puro. */

:root {
	--cev-bg: #0f0f10;
	--cev-bg-2: #141416;
	--cev-surface: #1a1a1d;
	--cev-surface-2: #212124;
	--cev-line: rgba(255, 255, 255, 0.08);
	--cev-line-2: rgba(255, 255, 255, 0.14);
	--cev-text: #f4f4f5;
	--cev-muted: #a1a1aa;
	--cev-dim: #71717a;
	--cev-accent: #e5652e;
	--cev-accent-2: #f0824f;
	--cev-accent-soft: rgba(229, 101, 46, 0.14);
	--cev-ok: #3ecf8e;
	--cev-ok-soft: rgba(62, 207, 142, 0.14);
	--cev-warn: #e6b422;
	--cev-warn-soft: rgba(230, 180, 34, 0.14);
	--cev-danger: #e5484d;
	--cev-danger-soft: rgba(229, 72, 77, 0.14);
	--cev-wa: #25a56a;
	--cev-font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--cev-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--cev-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--cev-r: 18px;
	--cev-r-sm: 12px;
	--cev-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.cev *, .cev *::before, .cev *::after { box-sizing: border-box; }

body.cev-page {
	margin: 0;
	min-height: 100dvh;
	background: var(--cev-bg);
	color: var(--cev-text);
	font-family: var(--cev-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

.cev-page h1, .cev-page h2, .cev-page h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
.cev-page p { margin: 0; }
.cev-page a { color: inherit; }
.cev-page img { max-width: 100%; display: block; }
.cev-page button, .cev-page input, .cev-page select, .cev-page textarea { font: inherit; color: inherit; }
.cev-page :focus-visible { outline: 2px solid var(--cev-accent); outline-offset: 3px; border-radius: 6px; }

.cev-mono { font-family: var(--cev-mono); font-variant-numeric: tabular-nums; }

/* grano fijo, sin repaint en scroll */
.cev-grain {
	position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0.045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Top ---------- */
.cev-top {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px clamp(16px, 4vw, 40px);
	background: rgba(15, 15, 16, 0.72);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--cev-line);
}
.cev-top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.cev-top__brand img { height: 32px; width: auto; }
.cev-top__mark { width: 12px; height: 12px; border-radius: 3px; background: var(--cev-accent); transform: rotate(45deg); }
.cev-top__nav { display: flex; gap: 4px; }
.cev-top__nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--cev-muted); font-weight: 500; font-size: 14px; transition: color .25s var(--cev-ease), background .25s var(--cev-ease); }
.cev-top__nav a:hover, .cev-top__nav a.is-active { color: var(--cev-text); background: rgba(255,255,255,.06); }
.cev-top__salir { color: var(--cev-dim) !important; }

.cev-main { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 64px; }
.cev-foot { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 48px; display: flex; align-items: center; gap: 12px; color: var(--cev-dim); font-size: 13px; border-top: 1px solid var(--cev-line); }
.cev-foot__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--cev-dim); }

/* ---------- Reveal en cascada ---------- */
@keyframes cev-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cev-reveal { animation: cev-in .8s var(--cev-ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .cev-reveal { animation: none; } }

/* ---------- Tipografía de apoyo ---------- */
.cev-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cev-accent-2); }
.cev-kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cev-accent); box-shadow: 0 0 0 4px var(--cev-accent-soft); animation: cev-pulse 2.4s ease-in-out infinite; }
@keyframes cev-pulse { 0%,100% { box-shadow: 0 0 0 3px var(--cev-accent-soft); } 50% { box-shadow: 0 0 0 7px rgba(229,101,46,0.06); } }

/* ---------- Botones ---------- */
.cev-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 999px; border: 1px solid var(--cev-line-2);
	background: var(--cev-surface-2); color: var(--cev-text); font-weight: 600; font-size: 15px; line-height: 1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .35s var(--cev-ease), background .25s var(--cev-ease), border-color .25s var(--cev-ease), opacity .2s;
}
.cev-btn:hover { background: #2a2a2e; border-color: rgba(255,255,255,.2); }
.cev-btn:active { transform: scale(0.97); }
.cev-btn--primary { background: var(--cev-accent); border-color: var(--cev-accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -12px rgba(229,101,46,.5); }
.cev-btn--primary:hover { background: var(--cev-accent-2); border-color: var(--cev-accent-2); }
.cev-btn--ghost { background: transparent; }
.cev-btn--wa { background: var(--cev-wa); border-color: var(--cev-wa); color: #fff; }
.cev-btn--wa:hover { background: #2bb877; border-color: #2bb877; }
.cev-btn--lg { padding: 16px 26px; font-size: 16px; }
.cev-btn--sm { padding: 9px 14px; font-size: 13px; }
.cev-btn--block { width: 100%; }
.cev-btn--peligro { color: #f2a0a3; }
.cev-btn--peligro:hover { border-color: var(--cev-danger); }
.cev-btn[disabled] { opacity: .45; cursor: not-allowed; }
.cev-btn__loading { display: none; gap: 5px; }
.cev-btn__loading i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: cev-dots 1s infinite; }
.cev-btn__loading i:nth-child(2) { animation-delay: .15s; } .cev-btn__loading i:nth-child(3) { animation-delay: .3s; }
@keyframes cev-dots { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cev-btn.is-loading .cev-btn__label { visibility: hidden; }
.cev-btn.is-loading .cev-btn__loading { display: flex; position: absolute; }

.cev-link { color: var(--cev-accent-2); font-weight: 600; text-decoration: none; font-size: 14px; }
.cev-link:hover { text-decoration: underline; }
.cev-link--sm { font-size: 13px; margin-top: 6px; display: inline-block; }

/* ---------- Hero asimétrico ---------- */
.cev-hero {
	display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center;
	padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(32px, 5vw, 56px);
	border-bottom: 1px solid var(--cev-line);
}
.cev-hero__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.cev-hero__title { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; max-width: 14ch; }
.cev-hero__texto { color: var(--cev-muted); max-width: 52ch; font-size: 17px; }
.cev-hero__texto p { margin: 0 0 10px; }
.cev-hero__art { margin: 0; position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--cev-shadow); transform: rotate(1.2deg); }
.cev-hero__art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.cev-hero__art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cev-hero__placeholder { aspect-ratio: 4/5; display: grid; place-items: center; background: linear-gradient(135deg, var(--cev-surface-2), var(--cev-bg-2)); }
.cev-hero__placeholder span { font-size: 120px; font-weight: 800; color: var(--cev-accent); opacity: .5; }

.cev-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; width: 100%; max-width: 520px; }
.cev-specs div { border-top: 1px solid var(--cev-line); padding-top: 10px; }
.cev-specs dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cev-dim); font-weight: 600; }
.cev-specs dd { margin: 2px 0 0; font-weight: 500; }

.cev-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cev-price__num { font-family: var(--cev-mono); font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.cev-price__unit { color: var(--cev-muted); }
.cev-price__stock { margin-left: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cev-ok-soft); color: var(--cev-ok); }
.cev-price__stock.is-low { background: var(--cev-warn-soft); color: var(--cev-warn); }

/* ---------- Paneles de compra ---------- */
.cev-compra { display: grid; gap: 18px; max-width: 880px; scroll-margin-top: 90px; }
.cev-panel { background: var(--cev-surface); border: 1px solid var(--cev-line); border-radius: var(--cev-r); padding: clamp(20px, 3vw, 32px); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.cev-panel__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.cev-panel__head h2 { font-size: 22px; font-weight: 700; }
.cev-panel__head p { color: var(--cev-muted); font-size: 14px; margin-top: 4px; }
.cev-step { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--cev-mono); font-weight: 700; background: var(--cev-accent-soft); color: var(--cev-accent-2); border: 1px solid rgba(229,101,46,.3); }
.cev-panel--cerrado { text-align: left; }
.cev-panel--cerrado h2 { font-size: 26px; margin-bottom: 8px; }
.cev-panel--cerrado p { color: var(--cev-muted); margin-bottom: 18px; }

.cev-stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cev-stepper__btn { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--cev-line-2); background: var(--cev-surface-2); font-size: 26px; cursor: pointer; transition: transform .3s var(--cev-ease), background .2s; }
.cev-stepper__btn:hover { background: #2a2a2e; }
.cev-stepper__btn:active { transform: scale(.94); }
.cev-stepper__btn[disabled] { opacity: .3; cursor: not-allowed; }
.cev-stepper__num { font-family: var(--cev-mono); font-size: 34px; font-weight: 700; min-width: 56px; text-align: center; }
.cev-stepper__total { margin-left: auto; color: var(--cev-muted); font-size: 14px; }
.cev-stepper__total strong { font-family: var(--cev-mono); color: var(--cev-text); font-size: 18px; margin-left: 6px; }

.cev-aviso-edad { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--cev-r-sm); background: var(--cev-warn-soft); border: 1px solid rgba(230,180,34,.25); color: #f1d27a; font-size: 14px; margin-bottom: 18px; }
.cev-aviso-edad svg { flex: none; margin-top: 1px; }

.cev-chicos { display: grid; gap: 14px; }
.cev-chico { border: 1px solid var(--cev-line); border-radius: var(--cev-r-sm); padding: 16px; margin: 0; background: var(--cev-bg-2); animation: cev-in .5s var(--cev-ease) both; }
.cev-chico legend { padding: 0 6px; font-weight: 700; font-size: 14px; color: var(--cev-muted); }
.cev-chico__n { font-family: var(--cev-mono); color: var(--cev-accent-2); }

.cev-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cev-grid-2 + .cev-grid-2 { margin-top: 12px; }

.cev-field { display: flex; flex-direction: column; gap: 6px; }
.cev-field > span { font-size: 13px; font-weight: 600; color: var(--cev-muted); }
.cev-field > span small { font-weight: 400; color: var(--cev-dim); }
.cev-field input, .cev-field textarea {
	width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--cev-line-2); background: var(--cev-surface-2); color: var(--cev-text);
	transition: border-color .2s, box-shadow .2s;
}
.cev-field input:focus { outline: none; border-color: var(--cev-accent); box-shadow: 0 0 0 3px var(--cev-accent-soft); }
.cev-field input::placeholder { color: var(--cev-dim); }
.cev-field__err { display: none; font-style: normal; font-size: 13px; color: #f2a0a3; }
.cev-field.is-error input { border-color: var(--cev-danger); }
.cev-field.is-error .cev-field__err { display: block; }
.cev-field__pass { position: relative; display: block; }
.cev-field__pass input { padding-right: 48px; }
.cev-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--cev-muted); }
.cev-eye::before { content: ""; display: block; width: 18px; height: 18px; margin: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.cev-eye.is-on { color: var(--cev-accent-2); }
.cev-field--tel { max-width: 320px; }

.cev-logueado { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--cev-r-sm); background: var(--cev-bg-2); border: 1px solid var(--cev-line); margin-bottom: 14px; }
.cev-logueado strong { display: block; }
.cev-logueado span { color: var(--cev-muted); font-size: 14px; }
.cev-logueado .cev-link { margin-left: auto; }
.cev-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cev-accent); color: #fff; font-weight: 800; font-size: 18px; }

.cev-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--cev-muted); line-height: 1.45; margin-bottom: 18px; }
.cev-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cev-check__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--cev-line-2); background: var(--cev-surface-2); margin-top: 1px; position: relative; transition: background .2s, border-color .2s; }
.cev-check__box::after { content: ""; position: absolute; inset: 0; margin: auto; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .3s var(--cev-ease); transform-origin: center; }
.cev-check input:checked + .cev-check__box { background: var(--cev-accent); border-color: var(--cev-accent); }
.cev-check input:checked + .cev-check__box::after { transform: rotate(-45deg) scale(1) translate(1px, -1px); }
.cev-check input:focus-visible + .cev-check__box { outline: 2px solid var(--cev-accent); outline-offset: 2px; }
.cev-check.is-error .cev-check__box { border-color: var(--cev-danger); }
.cev-check--sm { margin: 6px 0 14px; }

.cev-resumen { border-top: 1px dashed var(--cev-line-2); border-bottom: 1px dashed var(--cev-line-2); padding: 14px 0; margin-bottom: 18px; }
.cev-resumen__linea { display: flex; justify-content: space-between; font-family: var(--cev-mono); font-weight: 700; font-size: 18px; }
.cev-resumen__linea span:first-child { color: var(--cev-muted); font-weight: 500; font-family: var(--cev-font); }
.cev-pagar-nota { margin-top: 12px; font-size: 13px; color: var(--cev-dim); text-align: center; }
.cev-error { display: block; padding: 12px 14px; border-radius: var(--cev-r-sm); background: var(--cev-danger-soft); border: 1px solid rgba(229,72,77,.3); color: #f6b3b5; font-size: 14px; margin-bottom: 14px; }
.cev-error[hidden] { display: none; }

/* esperando pago */
.cev-panel--espera { text-align: center; }
.cev-espera { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0; }
.cev-espera__ring { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--cev-line-2); border-top-color: var(--cev-accent); animation: cev-spin 1s linear infinite; margin-bottom: 6px; }
@keyframes cev-spin { to { transform: rotate(360deg); } }
.cev-espera h2 { font-size: 22px; }
.cev-espera p { color: var(--cev-muted); font-size: 14px; max-width: 42ch; }
.cev-espera__acciones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* listo */
.cev-listo { display: grid; gap: 22px; }
.cev-listo__head { display: flex; gap: 16px; align-items: flex-start; }
.cev-listo__head h2 { font-size: 28px; font-weight: 800; }
.cev-listo__head p { color: var(--cev-muted); margin-top: 6px; }
.cev-listo__head a { color: var(--cev-accent-2); font-weight: 600; }
.cev-listo__check { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--cev-ok-soft); color: var(--cev-ok); display: grid; place-items: center; border: 1px solid rgba(62,207,142,.3); }
.cev-listo__check svg { width: 24px; height: 24px; animation: cev-check-in .6s var(--cev-ease) .2s both; }
@keyframes cev-check-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.cev-listo__nota { color: var(--cev-dim); font-size: 14px; }

/* ---------- Ticket "boarding pass" ---------- */
.cev-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.cev-ticket {
	position: relative; display: grid; grid-template-columns: 150px 1fr; background: #fafafa; color: #18181b; border-radius: 18px; overflow: hidden;
	box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); animation: cev-in .6s var(--cev-ease) both; animation-delay: calc(var(--i, 0) * 100ms);
}
.cev-ticket::before, .cev-ticket::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--cev-surface); left: 139px; z-index: 1; }
.cev-ticket::before { top: -11px; } .cev-ticket::after { bottom: -11px; }
.cev-page--evento .cev-ticket::before, .cev-page--evento .cev-ticket::after { background: var(--cev-bg); }
.cev-ticket__qr { padding: 14px; background: #fff; border-right: 2px dashed #d4d4d8; display: grid; place-items: center; }
.cev-ticket__qr svg { width: 100%; height: auto; }
.cev-ticket__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cev-ticket__evento { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cev-accent); }
.cev-ticket__nombre { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.cev-ticket__meta { color: #52525b; font-size: 13px; }
.cev-ticket__codigo { font-family: var(--cev-mono); font-size: 12px; color: #71717a; letter-spacing: .06em; margin-top: 2px; }
.cev-ticket__estado { display: inline-block; margin-top: 4px; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e4e4e7; color: #3f3f46; }
.cev-ticket__acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.cev-ticket__acciones .cev-btn { padding: 9px 13px; font-size: 13px; }
.cev-ticket__acciones .cev-btn--ghost { background: #f4f4f5; border-color: #e4e4e7; color: #18181b; }
.cev-ticket__acciones .cev-btn--ghost:hover { background: #e4e4e7; }
.cev-ticket.is-ingreso .cev-ticket__estado { background: #d1fae5; color: #065f46; }
.cev-ticket.is-salio .cev-ticket__estado { background: #e4e4e7; }
.cev-ticket.is-anulada { opacity: .55; }
.cev-ticket.is-anulada .cev-ticket__qr { filter: grayscale(1) blur(3px); }
.cev-ticket.is-anulada .cev-ticket__estado { background: #fee2e2; color: #991b1b; }
.cev-ticket.is-pendiente .cev-ticket__qr { filter: blur(4px); }
.cev-ticket--solo { max-width: 520px; margin: 0 auto; grid-template-columns: 190px 1fr; }
.cev-ticket--solo::before, .cev-ticket--solo::after { left: 179px; background: var(--cev-bg); }
.cev-ticket-page__nota { text-align: center; color: var(--cev-muted); font-size: 14px; margin-top: 22px; }

/* ---------- Lista de eventos ---------- */
.cev-lista-page__head { margin-bottom: 32px; display: grid; gap: 10px; }
.cev-lista-page__head h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.cev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cev-card { display: grid; grid-template-rows: auto 1fr; background: var(--cev-surface); border: 1px solid var(--cev-line); border-radius: 22px; overflow: hidden; text-decoration: none; transition: transform .5s var(--cev-ease), border-color .3s; }
.cev-card:hover { transform: translateY(-4px); border-color: var(--cev-line-2); }
.cev-card:active { transform: scale(.985); }
.cev-card__art { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--cev-bg-2); }
.cev-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cev-ease); }
.cev-card:hover .cev-card__art img { transform: scale(1.04); }
.cev-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(26,26,29,.9)); }
.cev-card__placeholder { height: 100%; display: grid; place-items: center; }
.cev-card__placeholder span { font-size: 72px; font-weight: 800; color: var(--cev-accent); opacity: .4; }
.cev-card__date { position: absolute; top: 14px; left: 14px; z-index: 1; display: grid; place-items: center; width: 54px; padding: 8px 0; border-radius: 12px; background: rgba(15,15,16,.75); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); }
.cev-card__date b { font-family: var(--cev-mono); font-size: 20px; line-height: 1; }
.cev-card__date small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--cev-muted); margin-top: 3px; }
.cev-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.cev-card__body h3 { font-size: 20px; font-weight: 700; }
.cev-card__body p { color: var(--cev-muted); font-size: 14px; }
.cev-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--cev-line); }
.cev-card__precio { font-family: var(--cev-mono); font-weight: 700; font-size: 18px; }
.cev-card__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--cev-accent-2); }
.cev-card__cta i { width: 14px; height: 14px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) scale(.7); transition: transform .3s var(--cev-ease); }
.cev-card:hover .cev-card__cta i { transform: rotate(45deg) scale(.7) translate(3px, -3px); }
.cev-card.is-cerrado .cev-card__cta { color: var(--cev-dim); }
.cev-card.is-cerrado .cev-card__art img { filter: grayscale(.6); }

.cev-vacio { display: grid; gap: 10px; justify-items: start; padding: clamp(28px, 5vw, 48px); border: 1px dashed var(--cev-line-2); border-radius: var(--cev-r); max-width: 560px; }
.cev-vacio__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cev-accent-soft); position: relative; margin-bottom: 6px; }
.cev-vacio__icon::after { content: ""; position: absolute; inset: 12px; border: 2px dashed var(--cev-accent-2); border-radius: 6px; }
.cev-vacio h2 { font-size: 22px; }
.cev-vacio p { color: var(--cev-muted); margin-bottom: 8px; }

/* ---------- Login ---------- */
.cev-login-page { display: grid; place-items: center; min-height: 60dvh; }
.cev-login { width: 100%; max-width: 440px; display: grid; gap: 10px; }
.cev-login h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.cev-login__sub { color: var(--cev-muted); margin-bottom: 8px; }
.cev-login__form { display: grid; gap: 14px; background: var(--cev-surface); border: 1px solid var(--cev-line); border-radius: var(--cev-r); padding: 22px; }
.cev-login__links { display: flex; justify-content: space-between; margin-top: 8px; }

/* ---------- Mis entradas ---------- */
.cev-cuenta-page__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.cev-cuenta-page__head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.035em; margin-top: 8px; }
.cev-compras { display: grid; gap: 22px; }
.cev-compra-card { background: var(--cev-surface); border: 1px solid var(--cev-line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 20px; }
.cev-compra-card__head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.cev-compra-card__thumb { width: 72px; height: 90px; object-fit: cover; border-radius: 12px; }
.cev-compra-card__info h2 { font-size: 22px; font-weight: 700; }
.cev-compra-card__info h2 a { text-decoration: none; }
.cev-compra-card__info p { color: var(--cev-muted); font-size: 14px; margin-top: 4px; }
.cev-compra-card__meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px !important; }
.cev-compra-card__acciones { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cev-compra-card.is-devuelta .cev-tickets { opacity: .6; }
.cev-compra-card.is-pasada { opacity: .75; }
.cev-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--cev-surface-2); color: var(--cev-muted); }
.cev-tag--gris { background: rgba(255,255,255,.08); }
.cev-tag--amb { background: var(--cev-warn-soft); color: var(--cev-warn); }

/* modal */
.cev-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.cev-modal[hidden] { display: none; }
.cev-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); animation: cev-fade .3s both; }
@keyframes cev-fade { from { opacity: 0; } }
.cev-modal__box { position: relative; width: 100%; max-width: 460px; background: var(--cev-surface); border: 1px solid var(--cev-line-2); border-radius: 20px; padding: 24px; box-shadow: var(--cev-shadow); animation: cev-in .5s var(--cev-ease) both; display: grid; gap: 14px; }
.cev-modal__box h3 { font-size: 20px; }
.cev-modal__acciones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.cev-modal__box p { color: var(--cev-muted); font-size: 14px; }
.cev-modal__box textarea { width: 100%; min-height: 90px; padding: 12px; border-radius: 12px; border: 1px solid var(--cev-line-2); background: var(--cev-surface-2); color: var(--cev-text); resize: vertical; }

/* toast */
.cev-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 60; padding: 12px 18px; border-radius: 999px; background: #27272a; border: 1px solid var(--cev-line-2); color: var(--cev-text); font-size: 14px; font-weight: 600; box-shadow: var(--cev-shadow); opacity: 0; transition: transform .4s var(--cev-ease), opacity .3s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.cev-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.cev-toast.is-ok { border-color: rgba(62,207,142,.4); }
.cev-toast.is-error { border-color: rgba(229,72,77,.5); }

/* skeleton */
.cev-skel { border-radius: 12px; background: linear-gradient(90deg, var(--cev-surface-2) 25%, #2a2a2e 50%, var(--cev-surface-2) 75%); background-size: 200% 100%; animation: cev-shimmer 1.4s infinite; min-height: 60px; }
@keyframes cev-shimmer { to { background-position: -200% 0; } }

/* ---------- Embebido en Elementor ---------- */
.cev--embed { font-family: var(--cev-font); }
.cev--embed .cev-cards { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	.cev-hero { grid-template-columns: 1fr; gap: 24px; }
	.cev-hero__art { order: -1; transform: none; max-width: 420px; }
	.cev-hero__title { max-width: none; }
	.cev-compra-card__head { grid-template-columns: auto 1fr; }
	.cev-compra-card__acciones { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
	.cev-cuenta-page__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
	.cev-top { padding: 12px 16px; }
	.cev-top__brand span { display: none; }
	.cev-grid-2 { grid-template-columns: 1fr; }
	.cev-specs { grid-template-columns: 1fr 1fr; }
	.cev-stepper__total { width: 100%; margin-left: 0; }
	.cev-stepper { flex-wrap: wrap; }
	.cev-tickets { grid-template-columns: 1fr; }
	.cev-ticket { grid-template-columns: 120px 1fr; }
	.cev-ticket::before, .cev-ticket::after { left: 109px; }
	.cev-ticket--solo { grid-template-columns: 1fr; }
	.cev-ticket--solo::before, .cev-ticket--solo::after { display: none; }
	.cev-ticket--solo .cev-ticket__qr { border-right: 0; border-bottom: 2px dashed #d4d4d8; padding: 24px; }
	.cev-ticket--solo .cev-ticket__qr svg { max-width: 260px; }
	.cev-panel__head { flex-direction: column; gap: 10px; }
	.cev-btn--lg { padding: 15px 20px; }
}

/* ---------- Modo prueba ---------- */
.cev-sandbox { position: sticky; top: 0; z-index: 31; padding: 8px 16px; text-align: center; font-size: 13px; background: #3b2a06; color: #f1d27a; border-bottom: 1px solid rgba(230,180,34,.35); }
.cev-sandbox b { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--cev-warn); color: #1c1403; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* hidden siempre gana sobre display de clase */
.cev [hidden], .cev-page [hidden] { display: none !important; }
