/* Expo Stands Manager — público */
.expo-public {
	--expo-primary: #1B2A4A;
	--expo-accent: #FF6B35;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #222;
}
.expo-public * { box-sizing: border-box; }

/* ---------- Mapa ---------- */
.expo-map-topbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	background: var(--expo-primary); color: #fff;
	padding: 12px 16px; border-radius: 10px 10px 0 0;
}
.expo-map-brand { font-weight: 700; font-size: 17px; margin-right: auto; }
.expo-search {
	flex: 1 1 220px; max-width: 340px; padding: 9px 12px;
	border: none; border-radius: 6px; font-size: 14px;
}
.expo-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.expo-chip {
	border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff;
	padding: 5px 12px; border-radius: 20px; font-size: 12.5px; cursor: pointer;
}
.expo-chip-on { background: var(--expo-accent); border-color: var(--expo-accent); }

.expo-map-main { display: flex; gap: 0; border: 1px solid #ddd; border-top: none; border-radius: 0 0 10px 10px; overflow: hidden; background: #e9e9e9; }
.expo-map-stage {
	position: relative; flex: 1 1 auto; overflow: hidden;
	touch-action: none; cursor: grab; min-height: 420px; max-height: 75vh;
}
.expo-map-stage.expo-grabbing { cursor: grabbing; }
.expo-map-inner { position: relative; transform-origin: 0 0; width: 100%; }
.expo-plan-img { display: block; width: 100%; height: auto; user-select: none; pointer-events: none; }
.expo-markers { position: absolute; inset: 0; }

.expo-marker {
	position: absolute; transform: translate(-50%, -50%);
	background: #9e9e9e; color: #fff; border: 2px solid #fff;
	border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 700;
	cursor: default; box-shadow: 0 1px 4px rgba(0,0,0,.35); white-space: nowrap;
}
.expo-marker-on { background: var(--expo-primary); cursor: pointer; }
.expo-marker-on:hover { background: var(--expo-accent); transform: translate(-50%, -50%) scale(1.12); }
.expo-marker-feat { background: var(--expo-accent); border-color: #ffd700; }
.expo-marker-dim { opacity: .18; pointer-events: none; }

.expo-map-side {
	flex: 0 0 280px; max-width: 280px; background: #fff; border-left: 1px solid #ddd;
	display: flex; flex-direction: column; max-height: 75vh;
}
.expo-side-title { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid #eee; color: var(--expo-primary); }
.expo-side-list { overflow-y: auto; flex: 1; }
.expo-side-item {
	display: flex; gap: 10px; align-items: center; padding: 10px 14px;
	border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.expo-side-item:hover { background: #f7f8fb; }
.expo-side-item img, .expo-side-nologo {
	width: 44px; height: 44px; object-fit: contain; border-radius: 6px;
	background: #f0f0f0; flex-shrink: 0;
}
.expo-side-item strong { display: block; font-size: 13.5px; }
.expo-side-cat { display: inline-block; font-size: 11px; color: var(--expo-accent); font-weight: 600; }
.expo-side-stands { display: block; font-size: 11px; color: #888; }
.expo-side-feat strong::after { content: " ★"; color: var(--expo-accent); }
.expo-side-empty { padding: 18px; color: #888; font-size: 13px; }

.expo-zoom {
	position: sticky; bottom: 14px; display: flex; gap: 6px; justify-content: flex-end;
	padding: 10px 14px 0; pointer-events: none;
}
.expo-zoom button {
	pointer-events: auto; width: 42px; height: 42px; border: none; border-radius: 50%;
	background: var(--expo-primary); color: #fff; font-size: 20px; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.expo-zoom button:hover { background: var(--expo-accent); }

/* ---------- Modal ficha ---------- */
.expo-overlay {
	position: fixed; inset: 0; background: rgba(10,15,30,.62); z-index: 99999;
	display: flex; align-items: center; justify-content: center; padding: 18px;
}
.expo-modal {
	background: #fff; border-radius: 12px; max-width: 560px; width: 100%;
	max-height: 90vh; overflow-y: auto; padding: 26px; position: relative;
}
.expo-modal-close {
	position: absolute; top: 10px; right: 12px; border: none; background: none;
	font-size: 28px; cursor: pointer; color: #999; line-height: 1;
}
.expo-ficha-logo { max-width: 150px; max-height: 100px; object-fit: contain; margin-bottom: 10px; }
.expo-ficha h3 { margin: 0 0 6px; color: var(--expo-primary); font-size: 22px; }
.expo-ficha-cat {
	display: inline-block; background: var(--expo-accent); color: #fff;
	padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-right: 8px;
}
.expo-ficha-stand { font-size: 12.5px; color: #888; }
.expo-ficha-desc { font-size: 14.5px; line-height: 1.55; color: #444; margin: 14px 0; }
.expo-ficha-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 18px; }
.expo-ficha-gallery img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.expo-lead-box label { display: block; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.expo-lead-box input[type="text"], .expo-lead-box input[type="email"], .expo-lead-box input[type="tel"] {
	width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; margin-top: 4px;
}
.expo-lead-title { font-weight: 700; color: var(--expo-primary); margin: 16px 0 4px; }
.expo-lead-ok { padding: 14px; border-radius: 8px; margin-top: 16px; }
.expo-privacy-det { margin-top: 10px; font-size: 12px; color: #777; }
.expo-privacy-det p { max-height: 130px; overflow-y: auto; background: #f7f7f7; padding: 10px; border-radius: 6px; }

/* ---------- Botones y mensajes ---------- */
.expo-btn {
	background: var(--expo-accent); color: #fff; border: none; border-radius: 8px;
	padding: 13px 26px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 16px;
}
.expo-btn:hover { filter: brightness(.92); }
.expo-btn:disabled { opacity: .6; cursor: wait; }
.expo-form-msg { margin-top: 12px; font-size: 14px; }
.expo-ok { color: #1b7a38; }
.expo-err { color: #c0392b; }
p.expo-ok, div.expo-ok { background: #e8f7ee; padding: 12px 14px; border-radius: 8px; }
div.expo-err { background: #fdecea; padding: 12px 14px; border-radius: 8px; }

.expo-toast {
	position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
	background: #333; color: #fff; padding: 10px 20px; border-radius: 24px;
	font-size: 14px; opacity: 0; transition: all .3s; z-index: 999999; pointer-events: none;
}
.expo-toast-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Registro ---------- */
.expo-reg-form {
	max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #e3e3e3;
	border-radius: 12px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.expo-reg-title { margin: 0 0 18px; color: var(--expo-primary); font-size: 21px; }
.expo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.expo-reg-form label { display: block; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: #333; }
.expo-reg-form input[type="text"], .expo-reg-form input[type="email"], .expo-reg-form input[type="tel"],
.expo-reg-form select, .expo-reg-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 7px;
	font-size: 14px; margin-top: 5px; font-family: inherit; font-weight: 400;
}
.expo-reg-form input[type="file"] { margin-top: 5px; font-size: 13px; font-weight: 400; }
.expo-reg-form input:focus, .expo-reg-form select:focus, .expo-reg-form textarea:focus {
	outline: 2px solid var(--expo-accent); outline-offset: 0; border-color: var(--expo-accent);
}
.expo-privacy { margin: 6px 0 4px; font-size: 13px; }
.expo-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.expo-check input { margin-top: 3px; }
.expo-privacy details { margin-top: 8px; color: #777; font-size: 12px; }
.expo-privacy details p { max-height: 140px; overflow-y: auto; background: #f7f7f7; padding: 10px; border-radius: 6px; }
.expo-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.expo-turnstile { margin: 10px 0; }

/* ---------- Directorio ---------- */
.expo-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.expo-dir-card {
	background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden;
	display: flex; flex-direction: column; cursor: pointer;
	transition: box-shadow .2s, transform .2s;
}
.expo-dir-card:hover, .expo-dir-card:focus-visible {
	box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px);
	outline: 2px solid var(--expo-accent); outline-offset: 1px;
}
.expo-dir-more {
	display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700;
	color: var(--expo-accent);
}
.expo-dir-logo { width: 100%; height: 130px; object-fit: contain; background: #fafafa; padding: 12px; }
.expo-dir-body { padding: 14px 16px 16px; }
.expo-dir-body h4 { margin: 0 0 6px; color: var(--expo-primary); font-size: 16px; }
.expo-dir-cat { display: inline-block; font-size: 11.5px; color: var(--expo-accent); font-weight: 700; margin-right: 8px; }
.expo-dir-stands { font-size: 11.5px; color: #888; }
.expo-dir-body p { font-size: 13.5px; color: #555; margin: 8px 0 0; }

/* ---------- Portal de expositores ---------- */
.expo-portal-login, .expo-portal-dash {
	max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #e3e3e3;
	border-radius: 12px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.expo-portal-login h3, .expo-portal-dash h3 { margin: 0 0 6px; color: var(--expo-primary); font-size: 21px; }
.expo-portal-req-form label, .expo-portal-save-form label { display: block; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: #333; }
.expo-portal-req-form input, .expo-portal-save-form input:not([type="file"]), .expo-portal-save-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 7px;
	font-size: 14px; margin-top: 5px; font-family: inherit; font-weight: 400;
}
.expo-portal-save-form input:disabled { background: #f4f4f4; color: #888; }
.expo-portal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.expo-portal-logout { font-size: 13px; color: #888; text-decoration: underline; white-space: nowrap; }
.expo-portal-stats { margin: 16px 0; }
.expo-portal-stats .expo-card {
	flex: 1 1 140px; text-align: center; background: #f7f8fb; border: 1px solid #eee;
	border-radius: 10px; padding: 14px; display: flex; flex-direction: column; align-items: center;
}
.expo-portal-stats .expo-card-num { font-size: 26px; font-weight: 700; color: var(--expo-primary); }
.expo-portal-stats .expo-card-label { font-size: 12px; color: #777; margin-top: 4px; }
.expo-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; background: #eee; }
.expo-badge.expo-st-pending { background: #fff3cd; color: #8a6d00; }
.expo-badge.expo-st-approved { background: #d4edda; color: #1b7a38; }
.expo-badge.expo-st-paid { background: #cfe2ff; color: #084298; }
.expo-badge.expo-st-rejected { background: #f8d7da; color: #842029; }
.expo-portal-photos-current { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.expo-portal-photos-current .expo-photo { position: relative; }
.expo-portal-photos-current .expo-photo img { width: 90px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
.expo-portal-photos-current .expo-photo-del {
	position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
	background: #c0392b; color: #fff; border: 2px solid #fff; cursor: pointer; font-size: 13px; line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
	.expo-map-main { flex-direction: column; }
	.expo-map-side { max-width: none; flex: none; max-height: 260px; border-left: none; border-top: 1px solid #ddd; }
	.expo-map-stage { min-height: 320px; }
	.expo-grid { grid-template-columns: 1fr; }
	.expo-reg-form { padding: 20px; }
	.expo-ficha-gallery { grid-template-columns: repeat(2, 1fr); }
}
