/* Tutopress Eventos — estilos frontend
   Marca: Poppins + morado #5004be */

.tp-evento-meta,
.tp-evento-descripcion,
.tp-evento-form-wrap,
.tp-eventos-grid,
.tp-evento-card {
	font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
	--tp-brand: #5004be;
	--tp-brand-dark: #3d0393;
	--tp-ink: #1a1a2e;
	--tp-muted: #6b6b7b;
	--tp-soft: #f7f5ff;
	--tp-border: #ece7fb;
}

/* ---------- Meta del evento (fecha / lugar) ---------- */
.tp-evento-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	margin: 24px 0;
	padding: 18px 22px;
	background: var(--tp-soft);
	border-radius: 14px;
	border: 1px solid var(--tp-border);
}
.tp-evento-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: var(--tp-ink);
	font-weight: 500;
}
.tp-evento-icon { font-size: 20px; line-height: 1; }

.tp-evento-descripcion {
	font-size: 17px;
	line-height: 1.7;
	color: #33333f;
}

/* ---------- Formulario de inscripción ---------- */
.tp-evento-form-wrap { margin: 40px 0; }

.tp-evento-form-card {
	background: #ffffff;
	border: 1px solid var(--tp-border);
	border-radius: 18px;
	padding: 32px;
	max-width: 520px;
	box-shadow: 0 10px 40px rgba(80, 4, 190, 0.08);
}
.tp-evento-form-title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
	color: var(--tp-ink);
	line-height: 1.25;
}
.tp-evento-form-sub {
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--tp-muted);
}

.tp-evento-field { margin-bottom: 16px; }
.tp-evento-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tp-ink);
}
.tp-evento-field input,
.tp-evento-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	font-size: 16px;
	font-family: inherit;
	color: var(--tp-ink);
	background: #fbfaff;
	border: 1.5px solid var(--tp-border);
	border-radius: 10px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tp-evento-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235004be' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 42px;
}
.tp-evento-field input:focus,
.tp-evento-field select:focus {
	outline: none;
	border-color: var(--tp-brand);
	box-shadow: 0 0 0 4px rgba(80, 4, 190, 0.12);
	background: #fff;
}

/* Honeypot oculto */
.tp-evento-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	opacity: 0;
}

.tp-evento-btn {
	width: 100%;
	margin-top: 6px;
	padding: 15px 24px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: var(--tp-brand);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease;
}
.tp-evento-btn:hover { background: var(--tp-brand-dark); }
.tp-evento-btn:active { transform: translateY(1px); }
.tp-evento-btn:disabled { opacity: .6; cursor: not-allowed; }

.tp-evento-msg {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.5;
	min-height: 1px;
}
.tp-evento-msg.is-success { color: #167a3c; font-weight: 500; }
.tp-evento-msg.is-error { color: #c0324b; font-weight: 500; }

/* ---------- Estado de éxito (reemplaza el formulario) ---------- */
.tp-evento-form-card--exito {
	text-align: center;
	background: linear-gradient(160deg, #ffffff 0%, #f7f5ff 100%);
	border-color: #d9c9ff;
}
.tp-evento-exito {
	animation: tp-fade-in .4s ease both;
}
.tp-evento-exito-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: 4px auto 18px;
	border-radius: 50%;
	background: var(--tp-brand);
	box-shadow: 0 10px 26px rgba(80, 4, 190, 0.30);
}
.tp-evento-exito-icon svg circle {
	stroke: rgba(255, 255, 255, 0.35);
	stroke-width: 3;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: tp-draw .5s ease-out .1s forwards;
}
.tp-evento-exito-icon svg path {
	stroke: #ffffff;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: tp-draw .35s ease-out .45s forwards;
}
.tp-evento-exito-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	color: var(--tp-ink);
}
.tp-evento-exito-msg {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.6;
	color: #444;
}
.tp-evento-exito-note {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tp-muted);
	background: #efe9ff;
	border-radius: 10px;
	padding: 12px 16px;
}
@keyframes tp-draw { to { stroke-dashoffset: 0; } }
@keyframes tp-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Listado de eventos (tarjetas) ---------- */
.tp-eventos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	margin: 32px 0;
	font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}
.tp-evento-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 6px 24px rgba(80, 4, 190, 0.06);
	transition: transform .18s ease, box-shadow .18s ease;
}
.tp-evento-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 44px rgba(80, 4, 190, 0.14);
}
.tp-evento-card-img {
	aspect-ratio: 16 / 9;
	background: #f0ecfb;
	overflow: hidden;
}
.tp-evento-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tp-evento-card-noimg {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 46px;
	background: linear-gradient(135deg, #5004be 0%, #7b3ff2 100%);
}
.tp-evento-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tp-evento-card-fecha {
	font-size: 13px;
	font-weight: 600;
	color: var(--tp-brand);
	text-transform: capitalize;
}
.tp-evento-card-titulo {
	margin: 8px 0 10px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--tp-ink);
}
.tp-evento-card-excerpt {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--tp-muted);
	flex: 1;
}
.tp-evento-card-cta {
	font-size: 14px;
	font-weight: 600;
	color: var(--tp-brand);
}

.tp-eventos-vacio {
	font-family: 'Poppins', sans-serif;
	padding: 28px;
	background: #f7f5ff;
	border-radius: 14px;
	color: #6b6b7b;
	text-align: center;
}

/* ==========================================================================
   PÁGINA INDIVIDUAL DEL EVENTO (plantilla dedicada)
   ========================================================================== */
.tp-evento-single {
	font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
	--tp-brand: #5004be;
	--tp-brand-dark: #3d0393;
	--tp-ink: #1a1a2e;
	--tp-muted: #6b6b7b;
	--tp-soft: #f7f5ff;
	--tp-border: #ece7fb;
	color: var(--tp-ink);
}

/* ---------- Landing sin distracciones (sin header/footer del tema) ---------- */
body.tp-evento-landing {
	margin: 0;
	background: #ffffff;
	font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}
.tp-landing-footer {
	padding: 28px 24px;
	text-align: center;
	font-size: 13px;
	color: #9a9aa8;
	border-top: 1px solid #f0edf9;
}

/* ---------- Layout compacto de dos columnas ---------- */
.tp-evento-layout {
	max-width: 1080px;
	margin: 0 auto;
	padding: 44px 24px 64px;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 44px;
	align-items: start;
}

/* Encabezado: eyebrow, título y meta */
.tp-evento-header { margin-bottom: 24px; }
.tp-evento-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--tp-brand);
	margin-bottom: 12px;
}
.tp-evento-titulo {
	margin: 0 0 4px;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	font-weight: 700;
	color: var(--tp-ink);
}

/* La meta (fecha/lugar) se muestra debajo del título, sin margen superior grande */
.tp-evento-main .tp-evento-meta { margin: 16px 0 0; }

/* Imagen destacada contenida y con bordes redondeados */
.tp-evento-imagen {
	margin: 0 0 28px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 34px rgba(80, 4, 190, 0.10);
	line-height: 0;
}
.tp-evento-imagen img {
	width: 100%;
	height: auto;
	display: block;
}

.tp-evento-main .tp-evento-descripcion {
	font-size: 17px;
	line-height: 1.75;
	color: #33333f;
}
.tp-evento-main .tp-evento-descripcion h2 { font-size: 24px; margin-top: 1.4em; }
.tp-evento-main .tp-evento-descripcion h3 { font-size: 20px; }
.tp-evento-main .tp-evento-descripcion img { border-radius: 12px; }

/* Tarjeta de inscripción pegajosa */
.tp-evento-aside .tp-evento-form-wrap { margin: 0; }
.tp-evento-aside {
	position: sticky;
	top: 28px;
}

/* Badge "cupos limitados" y nota de privacidad */
.tp-evento-form-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--tp-brand);
	background: #f0e9ff;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.tp-evento-form-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--tp-muted);
	text-align: center;
}

@media (max-width: 900px) {
	.tp-evento-layout {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 40px 20px 56px;
	}
	.tp-evento-aside { position: static; }
	.tp-hero { min-height: 380px; }
}

@media (max-width: 600px) {
	.tp-evento-form-card { padding: 24px 20px; }
	.tp-evento-form-title { font-size: 21px; }
	.tp-hero-inner { padding: 36px 20px 42px; }
	.tp-hero { min-height: 320px; }
}
