@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 20px;
	font-family: 'Space Mono', monospace;
	background-color: #FFE500;
	background-image:
		repeating-linear-gradient(0deg, transparent, transparent 39px, #000 39px, #000 40px),
		repeating-linear-gradient(90deg, transparent, transparent 39px, #000 39px, #000 40px);
}

/* ===== Tarjeta contenedora ===== */
.glass-card {
	width: 100%;
	max-width: 1100px;
	background: #fff;
	border: 4px solid #000;
	box-shadow: 8px 8px 0px #000;
	padding: 0;
	margin-bottom: 30px;
}

.glass-card h1 {
	background: #FF2D78;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 20px 28px;
	border-bottom: 4px solid #000;
}

/* ===== Barra de navegacion ===== */
.navbar {
	width: 100%;
	max-width: 1100px;
	display: flex;
	gap: 0;
	background: #00F5FF;
	border: 4px solid #000;
	box-shadow: 8px 8px 0px #000;
	margin-bottom: 30px;
}

.navbar a {
	flex: 1;
	text-align: center;
	padding: 18px 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #000;
	text-decoration: none;
	border-right: 4px solid #000;
	transition: background 0.15s ease;
}

.navbar a:last-child {
	border-right: none;
}

.navbar a:hover {
	background: #FF2D78;
	color: #fff;
}

/* ===== Contenido interno ===== */
.contenido {
	padding: 28px;
}

.contenido p {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 12px;
}

/* ===== Formulario ===== */
form {
	padding: 28px;
	display: grid;
	gap: 18px;
}

.campo {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.campo label {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 1.5px;
}

.campo input {
	padding: 12px 14px;
	font-family: 'Space Mono', monospace;
	font-size: 0.9rem;
	border: 3px solid #000;
	background: #f0f0f0;
}

.campo input:focus {
	outline: none;
	background: #FFE500;
}

button {
	justify-self: start;
	padding: 14px 32px;
	font-family: 'Space Mono', monospace;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	background: #FF2D78;
	border: 3px solid #000;
	box-shadow: 4px 4px 0px #000;
	cursor: pointer;
}

button:hover {
	background: #000;
	color: #FFE500;
}

/* ===== Tabla ===== */
.table-wrapper {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th {
	padding: 14px 16px;
	text-align: left;
	background: #000;
	color: #FFE500;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 1.5px;
	font-weight: 700;
	border-right: 2px solid #333;
}

th:last-child {
	border-right: none;
}

td {
	padding: 13px 16px;
	font-size: 0.85rem;
	color: #000;
	border-bottom: 2px solid #000;
	border-right: 2px solid #000;
	background: #fff;
}

td:last-child {
	border-right: none;
}

tbody tr:nth-child(even) td {
	background: #f0f0f0;
}

tbody tr:hover td {
	background: #00F5FF;
	color: #000;
}

tbody tr:last-child td {
	border-bottom: none;
}

/* ===== Mensajes ===== */
.error-msg,
.ok-msg {
	font-weight: 700;
	font-size: 1.05rem;
	text-transform: uppercase;
	color: #000;
	border-top: 4px solid #000;
	padding: 28px;
	text-align: center;
	letter-spacing: 2px;
}

.error-msg {
	background: #FF2D78;
	color: #fff;
}

.ok-msg {
	background: #7CFF6B;
}
