/**
 * SemiConecta — componentes reusables.
 */

/* --- Botones --- */
.button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid transparent;
	border-radius: var(--radius-xs);
	padding: 12px 22px;
	color: inherit;
	background: transparent;
	text-decoration: none;
	font-family: var(--font-body);
	font-weight: 800;
	font-size: .95rem;
	cursor: pointer;
	transition: transform .22s var(--ease), background .22s, color .22s, border-color .22s, box-shadow .22s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--primary { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.button--primary:hover { background: #FFE04B; }
.button--dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button--dark:hover { background: var(--gray-900); }
.button--ghost { color: inherit; background: transparent; border-color: currentColor; }
.button--ghost:hover { background: rgba(0, 0, 0, .04); }
.button--light { color: var(--white); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .38); }
.button--light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.button svg { width: 18px; height: 18px; }

/* --- Text link --- */
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-block: 4px;
	color: inherit;
	font-weight: 800;
	text-decoration: none;
	border-bottom: 2px solid var(--yellow);
}
.text-link:hover { color: var(--ink-strong); }

/* --- Inputs --- */
select,
.input,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea {
	min-height: 44px;
	width: 100%;
	border: 1px solid var(--gray-300);
	border-radius: var(--radius-xs);
	padding: 10px 14px;
	color: var(--ink);
	background: var(--white);
	font-family: var(--font-body);
	transition: border-color .2s, box-shadow .2s;
}
select:focus,
.input:focus,
input:focus,
textarea:focus {
	border-color: var(--ink-strong);
	outline: 3px solid rgba(14,14,17,.15);
	outline-offset: 0;
}

.field-label {
	display: block;
	margin-bottom: 6px;
	color: var(--gray-500);
	font-size: .68rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* --- Tag list --- */
.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	list-style: none;
	margin: 0;
}
.tag-list li a {
	display: inline-block;
	padding: 6px 12px;
	background: var(--gray-50);
	border: 1px solid var(--gray-200);
	color: var(--gray-700);
	font-size: .82rem;
	font-weight: 700;
	transition: background .2s, color .2s, border-color .2s;
}
.tag-list li a:hover { background: var(--yellow-soft); border-color: var(--yellow); color: var(--ink); }

/* --- Demo flag (indicador de contenido demo) --- */
.demo-flag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--gray-700);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.demo-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 213, 0, .2); }

/* --- Module shell (para futuras Fases: mapa, cadena, etc) --- */
.module-shell { border: 1px solid var(--gray-200); background: var(--white); box-shadow: var(--shadow-soft); }

/* Botón destacado en azul marino (uso puntual para CTAs importantes) */
.button--navy { color: var(--white); background: var(--navy); border-color: var(--navy); }
.button--navy:hover { background: var(--navy-2); }
