:root {
	--ents-navy: #002f5f;
	--ents-navy-2: #01447e;
	--ents-gold: #c4a35a;
	--ents-bg: #f3f5f8;
	--ents-text: #1d2433;
}

* { box-sizing: border-box; }

html {
	height: 100%;
}
html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body.eventos-publico {
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	background: var(--ents-bg);
	color: var(--ents-text);
	min-height: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.eventos-publico > .ev-header,
body.eventos-publico > .ev-page-header {
	flex: 0 0 auto;
}
body.eventos-publico > .ev-main {
	flex: 1 0 auto;
}
body.eventos-publico > .ev-footer {
	flex: 0 0 auto;
	margin-top: auto;
}

.ev-header {
	background: linear-gradient(180deg, var(--ents-navy) 0%, var(--ents-navy-2) 100%);
	color: #fff;
	border-bottom: 4px solid var(--ents-gold);
}

.ev-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ev-header .ev-header-inner img {
	height: 72px;
	width: auto;
	background: #fff;
	padding: 6px;
	border-radius: 8px;
}

header.ev-page-header {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	top: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 150px;
	overflow: hidden;
	background: #7850a0;
	line-height: 0;
	font-size: 0;
}
header.ev-page-header img {
	width: 100%;
	height: 150px;
	object-fit: contain;
	object-position: center;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}

.ev-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.94);
	transition: opacity 0.35s ease, visibility 0.35s ease;
}
.ev-loader.is-hide {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.ev-loader-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.ev-loader-box img {
	width: 92px;
	height: auto;
	animation: ev-loader-pulse 1.15s ease-in-out infinite;
}
.ev-loader-box span {
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #002f5f;
	font-weight: 700;
}
@keyframes ev-loader-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.08); opacity: 0.72; }
}

.ev-header-title {
	text-align: center;
	flex: 1;
}

.ev-header-title p {
	margin: 0;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.85rem;
	color: var(--ents-gold);
	font-weight: 700;
}

.ev-header-title h1 {
	margin: 4px 0 0;
	font-size: 1.45rem;
	font-weight: 600;
}

.ev-main {
	max-width: 1100px;
	margin: 28px auto 48px;
	padding: 0 20px;
}

.ev-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 47, 95, 0.08);
	padding: 28px;
}

.ev-meta {
	color: #5b6577;
	font-size: 0.95rem;
	margin-bottom: 18px;
}

.ev-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.ev-item {
	display: block;
	background: #fff;
	border: 1px solid #e4e8ef;
	border-radius: 12px;
	padding: 20px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ev-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 47, 95, 0.12);
	color: inherit;
}

.ev-item h2 {
	margin: 0 0 8px;
	font-size: 1.15rem;
	color: var(--ents-navy);
}

.ev-item-meta {
	margin: 8px 0 0;
	font-size: 0.82rem;
	color: #7a8494;
}
.ev-item-cta {
	display: inline-block;
	margin-top: 12px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #002f5f;
}
.ev-landing-desc {
	margin-bottom: 16px;
	line-height: 1.55;
}
.ev-landing-cobro {
	background: #f7f1e4;
	border-radius: 8px;
	padding: 10px 12px;
	color: #5a4a28;
}
.ev-landing-actions {
	margin-top: 22px;
}
.ev-modal-cupo .modal-title {
	color: #002f5f;
	font-weight: 700;
}
.ev-modal-cupo .modal-body {
	font-size: 1.02rem;
	line-height: 1.5;
	color: #2a3344;
}
.ev-modal-voucher {
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(58, 39, 80, 0.28);
}
.ev-modal-voucher-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #6a458f, #3a2750);
	color: #fff;
	font-size: 1.7rem;
	box-shadow: 0 8px 20px rgba(58, 39, 80, 0.28);
}
.ev-modal-voucher .modal-title {
	color: #3a2750;
	font-weight: 700;
}
.ev-modal-voucher .modal-body {
	font-size: 1.08rem;
	line-height: 1.55;
	color: #2a3344;
}

.ev-alert {
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.ev-alert-info {
	background: #e8f1fb;
	color: #0b3b70;
}
.ev-aviso-boleto {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 10px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-left: 6px solid #e0a800;
	color: #664d03;
	font-weight: 600;
	line-height: 1.5;
	box-shadow: 0 4px 14px rgba(224, 168, 0, 0.18);
}
.ev-aviso-boleto-icon {
	flex: 0 0 2rem;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffc107;
	color: #664d03;
	font-size: 1rem;
}

.ev-pregunta-pago .ev-pago-info {
	font-size: 0.92rem;
	line-height: 1.4;
	white-space: normal;
}
.ev-pregunta-pago .form-check {
	margin-bottom: 0.35rem;
}

.ev-timeline {
	background: #fff;
	border: 1px solid #e4d0f2;
	border-radius: 14px;
	padding: 18px 16px 8px;
}
.ev-timeline-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}
.ev-timeline-item {
	flex: 1 1 140px;
	min-width: 120px;
	position: relative;
	padding: 0 10px 16px;
	text-align: center;
	color: #8a7a9a;
}
.ev-timeline-item:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 14px;
	left: calc(50% + 16px);
	right: calc(-50% + 16px);
	height: 2px;
	background: #ddd0ea;
	z-index: 0;
}
.ev-timeline-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #efe6f7;
	color: #8a7a9a;
	position: relative;
	z-index: 1;
	margin-bottom: 8px;
	font-size: 0.75rem;
}
.ev-timeline-item.is-done .ev-timeline-dot {
	background: #198754;
	color: #fff;
}
.ev-timeline-item.is-current .ev-timeline-dot {
	background: #002f5f;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(0, 47, 95, 0.15);
}
.ev-timeline-item.is-done,
.ev-timeline-item.is-current {
	color: #002f5f;
}
.ev-timeline-item.is-done:not(:last-child)::after {
	background: #198754;
}
.ev-timeline-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.25;
}
.ev-timeline-list-modal {
	margin-top: 8px;
}
@media (max-width: 700px) {
	.ev-timeline-item { flex: 1 1 45%; }
	.ev-timeline-item:not(:last-child)::after { display: none; }
}

.ev-alert-warn {
	background: #fff6e5;
	color: #7a4d00;
}

.ev-footer {
	text-align: center;
	color: #6b7382;
	font-size: 0.85rem;
	padding: 12px 20px 28px;
	position: relative;
	z-index: 2;
}
.ev-footer-unam {
	background: #002f5f;
	color: #d7e4f2;
	font-size: 0.58rem;
	line-height: 1.25;
	text-align: center;
	padding: 6px 14px 7px;
	min-height: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
}
.ev-footer-unam p {
	margin: 0;
}
.ev-footer-unam a {
	color: #c4a35a;
	text-decoration: underline;
}
.ev-footer-unam a:hover {
	color: #fff;
}
.ev-footer-unam .ev-copy {
	color: #fff;
	font-weight: 600;
	font-size: 0.62rem;
	margin-top: 2px;
}

.ev-empty {
	text-align: center;
	color: #667;
	padding: 24px 0;
}

.ev-fondo-img {
	position: fixed;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.28;
	z-index: 0;
	pointer-events: none;
}
body.eventos-publico .ev-header,
body.eventos-publico .ev-page-header,
body.eventos-publico .ev-main,
body.eventos-publico .ev-footer {
	position: relative;
	z-index: 1;
}
.ev-instrucciones {
	background: #eef4fb;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 20px;
}
.ev-pregunta {
	margin-bottom: 22px;
	padding-bottom: 8px;
	border-bottom: 1px solid #edf0f5;
}
.ev-pregunta:last-child {
	border-bottom: 0;
}
.ev-sep {
	margin: 28px 0 16px;
	padding-bottom: 6px;
	border-bottom: 2px solid #c4a35a;
}
.ev-sep h2 {
	margin: 0;
	font-size: 1.2rem;
	color: var(--ents-navy);
}
.ev-otra {
	margin-top: 8px;
}
.ev-pregunta.d-none {
	display: none !important;
}
.ev-btn-enviar {
	background: #002f5f;
	border-color: #002f5f;
	color: #fff;
}
.ev-btn-enviar:hover {
	background: #01447e;
	border-color: #01447e;
	color: #fff;
}
.ev-sesion {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
	font-size: 0.9rem;
	color: #3a4456;
	margin-bottom: 16px;
	padding: 10px 12px;
	background: #f4f7fb;
	border: 1px solid #dce4ef;
	border-radius: 12px;
}
.ev-sesion-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.ev-sesion-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #cfd8e6;
	color: #002f5f;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
}
.ev-sesion-link:hover {
	background: #eef3fb;
	border-color: #002f5f;
	color: #002f5f;
}
.ev-sesion-user {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	min-width: 0;
}
.ev-sesion-who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}
.ev-sesion-nombre {
	font-weight: 700;
	color: #002f5f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 280px;
}
.ev-sesion-cta {
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: #5b6577;
}
.ev-sesion-salir {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #c45a6a;
	color: #9b1c32;
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
}
.ev-sesion-salir:hover {
	background: #9b1c32;
	border-color: #9b1c32;
	color: #fff;
}
@media (max-width: 700px) {
	.ev-sesion-user {
		width: 100%;
		justify-content: space-between;
	}
	.ev-sesion-nombre {
		max-width: 70vw;
	}
}
.ev-login-form {
	max-width: 420px;
}
.ev-acceso-tabs .nav-link {
	cursor: pointer;
	color: #002f5f;
	border: 1px solid #cfd8e6;
	margin-right: 6px;
	margin-bottom: 6px;
}
.ev-acceso-tabs .nav-link.active {
	background: #002f5f;
	border-color: #002f5f;
	color: #fff;
}
.ev-panel {
	width: 100%;
}
@media (max-width: 700px) {
	.ev-header-inner { flex-direction: column; }
	.ev-header .ev-header-inner img { height: 58px; }
}

body.ev-modo-participante,
body.ev-login-page {
	color: #3a2750;
	background: linear-gradient(180deg, #faf6fd 0%, #f3e9fa 38%, #eadcf5 72%, #e2d0f2 100%);
}
body.ev-modo-participante > header,
body.ev-modo-participante > main,
body.ev-login-page > header,
body.ev-login-page > main {
	position: relative;
	z-index: 1;
}
.ev-olas {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42vh;
	min-height: 160px;
	max-height: 360px;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	line-height: 0;
	opacity: 0.42;
}
.ev-olas svg {
	display: block;
	width: 120%;
	height: 100%;
	margin-left: -10%;
}
body.ev-modo-participante .ev-header {
	background: linear-gradient(90deg, #002f5f 0%, #3d2a6b 52%, #9977ba 100%);
	border-bottom: 4px solid #c4a35a;
}
body.ev-modo-participante .ev-card-participante {
	background: linear-gradient(180deg, #ffffff 0%, #fbf8fe 70%, #f4ecfb 100%);
	border: 1px solid #e4d0f2;
	box-shadow: 0 18px 44px rgba(123, 82, 165, 0.14);
}
body.ev-modo-participante .ev-instrucciones {
	background: linear-gradient(90deg, #eef3fb, #f4ecfb);
	border-left: 4px solid #002f5f;
	color: #3a2750;
}
body.ev-modo-participante .ev-sep { border-bottom-color: #9977ba; }
body.ev-modo-participante .ev-sep h2,
body.ev-modo-participante .ev-card-participante label.fw-semibold { color: #002f5f; }
body.ev-modo-participante .ev-sesion {
	background: linear-gradient(90deg, #eef3fb, #f4ecfb);
	border: 1px solid #e4d0f2;
	border-radius: 12px;
	padding: 10px 12px;
	color: #002f5f;
}
body.ev-modo-participante .ev-sesion-link {
	background: rgba(255, 255, 255, 0.88);
	border-color: #d7c4ea;
	color: #3d2a6b;
}
body.ev-modo-participante .ev-sesion-link:hover {
	background: #fff;
	border-color: #9977ba;
	color: #002f5f;
}
body.ev-modo-participante .ev-pregunta { border-bottom-color: #eadcf5; }
body.ev-modo-participante .ev-btn-enviar {
	background: linear-gradient(90deg, #002f5f, #01447e);
	border: 0;
	color: #fff;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 600;
}
body.ev-modo-participante .ev-btn-enviar:hover {
	background: linear-gradient(90deg, #01447e, #9977ba);
	color: #fff;
}

body.ev-login-page {
	min-height: 100vh;
}
body.ev-modo-participante:not(.ev-login-page) .ev-main {
	padding-bottom: 22vh;
}
body.ev-login-page .ev-main {
	max-width: none;
	width: 100%;
	min-height: 0;
	margin: 0 auto 0;
	padding: 18px 16px 22vh;
	display: block;
}

.ev-login-shell {
	width: 100%;
	display: flex;
	justify-content: center;
}
.ev-login-card {
	width: 100%;
	max-width: 440px;
	background: rgba(255, 252, 255, 0.92);
	border: 1px solid rgba(228, 208, 242, 0.9);
	border-radius: 24px;
	box-shadow: 0 24px 56px rgba(47, 20, 80, 0.14);
	overflow: hidden;
	padding: 0;
	backdrop-filter: blur(8px);
}
.ev-login-card.is-wide {
	max-width: 680px;
}
.ev-login-body {
	padding: 32px 30px 26px;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #ffffff 0%, #fbf8fe 100%);
}
.ev-login-brand {
	margin-bottom: 20px;
	text-align: center;
}
.ev-login-brand h2 {
	margin: 0 0 6px;
	font-size: 1.7rem;
	font-weight: 700;
	color: #002f5f;
}
.ev-login-sub {
	margin: 0;
	color: #6d5a82;
	font-size: 0.95rem;
}
.ev-field { margin-bottom: 16px; }
.ev-field .form-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #002f5f;
	margin-bottom: 6px;
}
.ev-ig .input-group-text {
	background: #faf6fd;
	border-color: #eadcf5;
	color: #002f5f;
	min-width: 46px;
	justify-content: center;
}
.ev-ig .form-control,
.ev-ig .form-select {
	border-color: #eadcf5;
	min-height: 48px;
	background: #fff;
}
.ev-ig .form-control:focus,
.ev-ig .form-select:focus {
	border-color: #002f5f;
	box-shadow: 0 0 0 0.2rem rgba(0, 47, 95, 0.12);
}
.ev-eye {
	border: 1px solid #eadcf5;
	border-left: 0;
	background: #fff;
	color: #9977ba;
}
.ev-eye:hover { color: #002f5f; background: #faf6fd; }
.ev-login-row {
	display: flex;
	justify-content: flex-end;
	margin: -4px 0 16px;
}
.ev-btn-login {
	width: 100%;
	background: linear-gradient(90deg, #002f5f, #01447e);
	border: 0;
	color: #fff;
	font-weight: 700;
	padding: 13px 18px;
	border-radius: 12px;
	letter-spacing: 0.02em;
}
.ev-btn-login:hover {
	background: linear-gradient(90deg, #01447e, #9977ba);
	color: #fff;
}
.ev-btn-login i { margin-left: 8px; }
.ev-login-foot {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid #f0e6f8;
	text-align: center;
	color: #6d5a82;
	font-size: 0.92rem;
}
.ev-link,
.ev-link-strong {
	background: none;
	border: 0;
	padding: 0;
	color: #002f5f;
	font-weight: 600;
	text-decoration: none;
}
.ev-link:hover,
.ev-link-strong:hover { color: #9977ba; text-decoration: underline; }
.ev-link-strong { margin-left: 6px; }
.ev-hint {
	margin: 12px 0 10px;
	color: #9977ba;
	font-size: 0.86rem;
}
.ev-hint i { color: #002f5f; margin-right: 6px; }
.ev-login-warn { max-width: 520px; margin: 16px auto 0; }
body.ev-modo-participante #ev-acceso-msg.alert-success {
	background: #eef8f0;
	border-color: #b7e0c2;
	color: #14532d;
}
body.ev-modo-participante #ev-acceso-msg.alert-danger {
	background: #fdecec;
	border-color: #f3c0c0;
	color: #7f1d1d;
}
.ev-voucher {
	margin-top: 16px;
	padding: 16px 16px 14px;
	border: 1px dashed #9b74c9;
	border-radius: 12px;
	background: #faf7fd;
}
.ev-voucher-titulo {
	font-weight: 700;
	color: #3d2458;
}
.ev-voucher-titulo i { margin-right: 6px; }
.ev-voucher-hint {
	font-size: 0.9rem;
	color: #5a4a6e;
	margin-bottom: 12px;
}
.ev-voucher-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ev-voucher-btn {
	position: relative;
	overflow: hidden;
}
.ev-voucher-btn input[type=file] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.ev-voucher-ok {
	display: inline-block;
	margin-top: 12px;
	color: #14532d;
	font-weight: 600;
}
.ev-voucher-prev {
	max-width: 280px;
}
.ev-voucher-prev img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #e4d0f2;
}

@media (max-width: 700px) {
	.ev-login-body { padding: 24px 18px 20px; }
	.ev-login-brand h2 { font-size: 1.4rem; }
	.ev-login-card { border-radius: 18px; }
	body.ev-login-page .ev-main { padding: 14px 12px 22vh; }
	.ev-footer-unam { font-size: 0.55rem; padding: 6px 10px; }
}
