/* Variables de color del plugin */
.ebx-form,
.ebx-list,
.ebx-plazas,
.ebx-pareja {
	--ebx-ink: #1a1a1a;
	--ebx-accent: #ff4d00;
	--ebx-accent-ink: #ffffff;
	--ebx-soft: #f5f5f5;
	--ebx-muted: #767676;
	font-family: inherit;
	color: var(--ebx-ink);
}

/* Formulario de equipo */
.ebx-form {
	margin: 24px 0;
	padding: 24px;
	background: var(--ebx-soft);
	border-top: 6px solid var(--ebx-accent);
}
.ebx-title {
	margin: 0 0 16px;
}
.ebx-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 600px) {
	.ebx-row {
		grid-template-columns: 1fr;
	}
}
.ebx-field {
	margin: 0 0 14px;
}
.ebx-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 600;
}
.ebx-field input,
.ebx-field select {
	width: 100%;
	box-sizing: border-box;
}
.ebx-member {
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid #e3e3e3;
	background: #fff;
}
.ebx-member legend {
	padding: 0 8px;
	font-weight: 700;
}
.ebx-legal {
	font-size: 13px;
	line-height: 1.5;
}
.ebx-trap {
	position: absolute;
	left: -9999px;
}
.ebx-closed {
	padding: 12px 16px;
	background: var(--ebx-ink);
	color: #fff;
	font-weight: 600;
}

/* Listado público de equipos */
.ebx-count {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.ebx-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.ebx-tab {
	padding: 8px 14px;
	border: 1px solid var(--ebx-ink);
	background: #fff;
	color: var(--ebx-ink);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.ebx-tab.is-active {
	background: var(--ebx-accent);
	color: var(--ebx-accent-ink);
}
.ebx-table {
	width: 100%;
	border-collapse: collapse;
}
.ebx-table th {
	padding: 10px 12px;
	background: var(--ebx-ink);
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
}
.ebx-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e3e3e3;
}
.ebx-table tbody tr:nth-child(even) {
	background: var(--ebx-soft);
}
.ebx-empty {
	color: var(--ebx-muted);
}

/* Plazas por categoría */
.ebx-plazas {
	padding: 28px 24px;
	background: var(--ebx-ink);
	color: #fff;
	text-align: center;
}
.ebx-plazas-title {
	margin: 0 0 20px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.ebx-plazas-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ebx-plazas-list li {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 6px 0;
	font-size: 15px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.ebx-plazas-list li.is-open {
	color: var(--ebx-accent);
}
.ebx-plazas-list li.is-full {
	color: var(--ebx-muted);
}
.ebx-plazas-list li.is-open .ebx-plazas-left {
	font-weight: 700;
}

/* Busco pareja */
.ebx-pareja textarea {
	width: 100%;
	box-sizing: border-box;
}
.ebx-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	font-weight: 600;
}
.ebx-notice.is-ok {
	background: var(--ebx-accent);
	color: var(--ebx-accent-ink);
}
.ebx-notice.is-warn {
	background: var(--ebx-ink);
	color: #fff;
}

/* Listado de equipos con fondo propio, para webs con tema oscuro */
.ebx-list {
	padding: 24px;
	background: #fff;
	border-top: 6px solid var(--ebx-accent);
}

/* Espaciado generoso */
.ebx-form {
	padding: 36px 36px 28px;
}
.ebx-title {
	margin: 0 0 28px;
	font-size: 24px;
}
.ebx-row {
	gap: 24px;
}
.ebx-field {
	margin: 0 0 22px;
}
.ebx-field label {
	margin-bottom: 8px;
}
.ebx-member {
	margin: 0 0 28px;
	padding: 28px 28px 10px;
}
.ebx-member legend {
	padding: 0 10px;
}
.ebx-legal {
	margin: 28px 0 12px;
	line-height: 1.7;
}
.ebx-plazas {
	padding: 48px 32px;
}
.ebx-plazas-title {
	margin-bottom: 32px;
}
.ebx-plazas-list li {
	padding: 10px 0;
}
.ebx-list {
	padding: 36px;
}
.ebx-count {
	margin-bottom: 24px;
}
.ebx-tabs {
	gap: 12px;
	margin-bottom: 28px;
}
.ebx-table th,
.ebx-table td {
	padding: 16px 18px;
}
.ebx-notice {
	margin-bottom: 28px;
}
@media (max-width: 600px) {
	.ebx-form,
	.ebx-list {
		padding: 24px 18px;
	}
	.ebx-member {
		padding: 22px 18px 6px;
	}
}

/* Elementos ocultos según la modalidad elegida */
.ebx-form [hidden] {
	display: none !important;
}

/* Campos legibles en cualquier tema */
.ebx-form .ebx-field input,
.ebx-form .ebx-field select,
.ebx-form .ebx-field textarea {
	min-height: 48px;
	padding: 10px 14px;
	line-height: 1.4;
	height: auto;
}
.ebx-form .ebx-title {
	margin: 0 0 28px;
	padding: 0;
	line-height: 1.1;
}
