/* ==== Variables ==== */
.tecno-auth-form,
.tecno-directorio,
.tecno-vacantes {
	--tecno-primary: #d8ff00;
	--tecno-primary-dark: #d8ff00;
	--tecno-error: #dc2626;
	--tecno-success: #16a34a;
	--tecno-border: #d1d5db;
	--tecno-bg: #f9fafb;
	--tecno-radius: 20px;
	font-family: 'Sansation', sans-serif;
}

/* ==== Honeypot (oculto para humanos, visible para bots) ==== */
.tecno-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==== Formularios de autenticación ==== */
.tecno-auth-form {
	max-width: 420px;
	margin: 0 auto;
	padding: 2rem;
	background: #fff;
	border: 1px solid var(--tecno-border);
	border-radius: var(--tecno-radius);
}

.tecno-field {
	margin-bottom: 1.1rem;
}

.tecno-field label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 600;
	font-size: .92rem;
}

.tecno-field input[type="text"],
.tecno-field input[type="email"],
.tecno-field input[type="tel"],
.tecno-field input[type="password"],
.tecno-field input[type="search"] {
	width: 100%;
	padding: .65rem .75rem;
	border: 1px solid var(--tecno-border);
	border-radius: 6px;
	font-size: 1rem;
	box-sizing: border-box;
}

.tecno-field input:focus {
	outline: none;
	border-color: var(--tecno-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.tecno-password-wrapper {
	position: relative;
	display: block;
}

.tecno-password-wrapper input {
	padding-right: 2.5rem;
}

.tecno-toggle-password {
	all: unset;
	box-sizing: border-box;
	position: absolute !important;
	right: .4rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 4px;
	box-shadow: none !important;
	cursor: pointer;
	color: #1f2937 !important;
	line-height: 0;
}

.tecno-toggle-password:hover,
.tecno-toggle-password:focus-visible {
	color: var(--tecno-primary) !important;
	background: rgba(37, 99, 235, .08) !important;
	outline: none;
}

.tecno-toggle-password.is-visible {
	color: #1f2937 !important;
}

.tecno-eye-icon {
	display: block;
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.tecno-remember label,
.tecno-terms label {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-weight: 400;
}

.tecno-btn {
	width: 100%;
	padding: .75rem 1rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}

.tecno-btn-primary {
	background: var(--tecno-primary);
	color: #fff;
}

.tecno-btn-primary:hover {
	background: var(--tecno-primary-dark);
}

.tecno-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.tecno-links {
	text-align: center;
	font-size: .9rem;
	margin-top: 1rem;
}

.tecno-links a {
	color: var(--tecno-primary);
	text-decoration: none;
}

.tecno-form-message {
	margin-top: 1rem;
	font-size: .9rem;
	min-height: 1.2em;
}

.tecno-msg-success {
	color: var(--tecno-success);
}

.tecno-msg-error {
	color: var(--tecno-error);
}

/* ==== Directorio de empresas (tabs) ==== */
.tecno-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid var(--tecno-border);
}

.tecno-tab-btn {
	padding: .6rem 1.1rem;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-weight: 600;
	font-size: .95rem;
	color: #4b5563;
}

.tecno-tab-btn.is-active {
	color: var(--tecno-primary);
	border-bottom-color: var(--tecno-primary);
}

.tecno-tab-panel {
	display: none;
}

.tecno-tab-panel.is-active {
	display: block;
}

.tecno-empresas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 1.25rem;
    padding: 0px 50px;
}

.tecno-empresa-card {
	border: 1px solid var(--tecno-border);
	border-radius: var(--tecno-radius);
	padding: 1rem;
	background: #fff;
}

.tecno-empresa-logo img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: .75rem;
}

.tecno-empresa-title {
	margin: 0 0 .4rem;
	font-size: 1.05rem;
}

/* ==== Vacantes ==== */
.tecno-vacantes-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1.5rem;
}

.tecno-vacantes-filtros input,
.tecno-vacantes-filtros select {
	padding: .6rem .75rem;
	border: 1px solid var(--tecno-border);
	border-radius: 6px;
	font-size: .95rem;
}

.tecno-vacantes-filtros input {
	flex: 1 1 240px;
}

.tecno-vacantes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
	min-height: 120px;
}

.tecno-vacante-card {
	border: 1px solid var(--tecno-border);
	border-radius: var(--tecno-radius);
	padding: 1rem;
	background: #fff;
	cursor: pointer;
	transition: box-shadow .15s ease, transform .15s ease;
}

.tecno-vacante-card:hover,
.tecno-vacante-card:focus {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
	outline: none;
}

.tecno-vacante-img img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: .75rem;
}

.tecno-vacante-title {
	margin: 0;
	font-size: 1rem;
}

.tecno-no-results,
.tecno-loading {
	grid-column: 1 / -1;
	text-align: center;
	color: #6b7280;
	padding: 2rem 0;
}

/* Pagination */
.tecno-pagination-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.tecno-page-btn {
	padding: .5rem 1rem;
	border: 1px solid var(--tecno-border);
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
}

.tecno-page-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* Modal */
.tecno-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 100000;
}

.tecno-modal.is-open {
	display: block;
}

.tecno-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, .6);
}

.tecno-modal-content {
	position: relative;
	max-width: 640px;
	margin: 5vh auto;
	background: #fff;
	border-radius: var(--tecno-radius);
	padding: 2rem;
	max-height: 88vh;
	overflow-y: auto;
}

.tecno-modal-close {
	position: absolute;
	top: .75rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.6rem;
	cursor: pointer;
	line-height: 1;
}

.tecno-modal-img img {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 1rem;
}

.tecno-modal-title {
	margin: 0 0 .5rem;
}

.tecno-modal-salario {
	margin: 0 0 1rem;
}

body.tecno-modal-open {
	overflow: hidden;
}
