/* DP Fotos Evento · front */
.dpfe, .dpfe-events, .dpfe-mine {
	--dpfe-accent: #f97316;
	--dpfe-ink: #111827;
	--dpfe-muted: #6b7280;
	--dpfe-line: #e5e7eb;
	--dpfe-soft: #f6f6f4;
	--dpfe-radius: 14px;
	color: var(--dpfe-ink);
	font-size: 16px;
	line-height: 1.5;
}
.dpfe *, .dpfe-events *, .dpfe-mine * { box-sizing: border-box; }

/* Botones */
.dpfe-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
	background: var(--dpfe-ink); color: #fff !important; font: inherit; font-weight: 600;
	cursor: pointer; text-decoration: none !important; transition: transform .15s, background .15s;
}
.dpfe-btn:hover { background: var(--dpfe-accent); }
.dpfe-btn:active { transform: scale(.97); }
.dpfe-btn-ghost { background: transparent; color: var(--dpfe-ink) !important; box-shadow: inset 0 0 0 1.5px var(--dpfe-line); }
.dpfe-btn-ghost:hover { background: var(--dpfe-soft); }

/* Info del álbum */
.dpfe-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; color: var(--dpfe-muted); font-size: 15px; }
.dpfe-pill { padding: 4px 12px; border-radius: 999px; background: var(--dpfe-ink); color: #fff; font-weight: 600; font-size: 14px; }
.dpfe-pill .amount, .dpfe-pill bdi { color: inherit; }
.dpfe-pill-soft { background: color-mix(in srgb, var(--dpfe-accent) 14%, #fff); color: var(--dpfe-ink); }

/* Buscador */
.dpfe-search { background: var(--dpfe-soft); border-radius: calc(var(--dpfe-radius) + 6px); padding: 8px 8px 22px; margin-bottom: 18px; }
.dpfe-tabs { display: flex; gap: 4px; background: #fff; border-radius: 999px; padding: 4px; margin-bottom: 20px; overflow-x: auto; }
.dpfe-tabs button {
	flex: 1; white-space: nowrap; border: 0; background: transparent; padding: 10px 14px; border-radius: 999px;
	font: inherit; font-size: 15px; font-weight: 600; color: var(--dpfe-muted); cursor: pointer;
}
.dpfe-tabs button.is-active { background: var(--dpfe-ink); color: #fff; }
.dpfe-pane { display: none; padding: 0 14px; }
.dpfe-pane.is-active { display: block; }
.dpfe-pane[data-pane="all"] { display: none !important; }

.dpfe-selfie { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dpfe-selfie-preview {
	width: 76px; height: 76px; border-radius: 50%; flex: none; overflow: hidden;
	display: grid; place-items: center; background: #fff; color: var(--dpfe-muted);
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--dpfe-accent);
}
.dpfe-selfie-preview img { width: 100%; height: 100%; object-fit: cover; }
.dpfe.is-loading .dpfe-selfie-preview { animation: dpfe-pulse 1.1s ease-in-out infinite; }
@keyframes dpfe-pulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 9px color-mix(in srgb, var(--dpfe-accent) 45%, transparent); } }
.dpfe-selfie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.dpfe-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--dpfe-muted); cursor: pointer; }
.dpfe-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--dpfe-accent); flex: none; }
.dpfe-consent.is-required { color: #b91c1c; }
.dpfe-consent a { color: inherit; text-decoration: underline; }

.dpfe-bib-form { display: flex; gap: 10px; max-width: 420px; }
.dpfe-bib-input {
	flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--dpfe-line); border-radius: 999px;
	padding: 0 20px; font: inherit; font-size: 18px; font-weight: 600; letter-spacing: .06em; background: #fff;
}
.dpfe-bib-input:focus { outline: none; border-color: var(--dpfe-accent); }

.dpfe-status { min-height: 24px; margin: 0 0 14px; font-weight: 600; }
.dpfe-status.is-error { color: #b91c1c; }
.dpfe-status.is-ok { color: #15803d; }
.dpfe-status.is-loading { color: var(--dpfe-muted); }

/* Grilla */
.dpfe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.dpfe-tile { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--dpfe-soft); cursor: zoom-in; }
.dpfe-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.dpfe-tile:hover img { transform: scale(1.04); }
.dpfe-tile-btn {
	position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--dpfe-ink);
	font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18);
	transition: transform .15s, background .15s;
}
.dpfe-tile-btn:hover { transform: scale(1.08); }
.dpfe-tile-btn .dpfe-check { display: none; font-size: 18px; }
.dpfe-tile.is-selected { box-shadow: 0 0 0 3px var(--dpfe-accent); }
.dpfe-tile.is-selected .dpfe-tile-btn { background: var(--dpfe-accent); color: #fff; }
.dpfe-tile.is-selected .dpfe-plus { display: none; }
.dpfe-tile.is-selected .dpfe-check { display: inline; }
.dpfe-more { display: flex; margin: 22px auto 0; }

/* Lightbox */
.dpfe-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,12,.94); display: flex; align-items: center; justify-content: center; }
.dpfe-lightbox[hidden] { display: none; }
.dpfe-lightbox figure { margin: 0; max-width: 92vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.dpfe-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.dpfe-lightbox > button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.dpfe-lightbox > button:hover { background: rgba(255,255,255,.22); }
.dpfe-lb-close { top: 16px; right: 16px; }
.dpfe-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.dpfe-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.dpfe-lb-bar { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; }
.dpfe-lb-action { background: #fff; color: var(--dpfe-ink) !important; }
.dpfe-lb-action.is-selected { background: var(--dpfe-accent); color: #fff !important; }
.dpfe-noscroll, .dpfe-noscroll body { overflow: hidden; }

/* Barra del carrito */
.dpfe-bar {
	position: fixed; z-index: 9999; left: 50%; bottom: 16px; transform: translateX(-50%);
	width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px;
	padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--dpfe-ink); color: #fff;
	box-shadow: 0 12px 40px rgba(0,0,0,.28); animation: dpfe-up .25s ease-out;
}
.dpfe-bar[hidden] { display: none; }
@keyframes dpfe-up { from { transform: translate(-50%, 20px); opacity: 0; } }
.dpfe-bar-info { flex: 1; display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; }
.dpfe-bar-info span { opacity: .75; }
.dpfe-bar-cart { color: #fff !important; opacity: .8; font-size: 14px; text-decoration: underline; }
.dpfe-bar-pay { background: var(--dpfe-accent); }
.dpfe-bar-pay:hover { background: #fff; color: var(--dpfe-ink) !important; }

/* Listado de eventos */
.dpfe-events-search { display: flex; gap: 8px; margin-bottom: 22px; }
.dpfe-events-search input { flex: 1; min-width: 0; height: 50px; border: 1.5px solid var(--dpfe-line); border-radius: 999px; padding: 0 22px; font: inherit; }
.dpfe-events-search input:focus { outline: none; border-color: var(--dpfe-accent); }
.dpfe-events-search button { height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--dpfe-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dpfe-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dpfe-event-card { display: flex; flex-direction: column; border-radius: var(--dpfe-radius); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--dpfe-line); color: inherit !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.dpfe-event-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--dpfe-line), 0 14px 30px rgba(0,0,0,.08); }
.dpfe-event-cover { aspect-ratio: 16 / 10; background: var(--dpfe-soft) center / cover no-repeat; }
.dpfe-event-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; font-size: 14px; color: var(--dpfe-muted); }
.dpfe-event-body strong { color: var(--dpfe-ink); font-size: 17px; line-height: 1.3; }
.dpfe-event-foot { margin-top: 6px; color: var(--dpfe-ink); font-weight: 600; }
.dpfe-pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.dpfe-pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--dpfe-line); color: inherit; text-decoration: none; }
.dpfe-pager a.is-current { background: var(--dpfe-ink); color: #fff; }
.dpfe-empty { color: var(--dpfe-muted); }

/* Mi cuenta → Mis fotos */
.dpfe-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.dpfe-mine-tile { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--dpfe-line); }
.dpfe-mine-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dpfe-mine-tile figcaption { padding: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 600px) {
	.dpfe-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
	.dpfe-tabs button { font-size: 14px; padding: 9px 10px; }
	.dpfe-selfie { flex-direction: column; text-align: center; }
	.dpfe-selfie-actions { justify-content: center; }
	.dpfe-selfie-actions .dpfe-btn { flex: 1; }
	.dpfe-bar-cart { display: none; }
	.dpfe-lb-prev, .dpfe-lb-next { top: auto !important; bottom: 20px; transform: none !important; }
}
