/* Hixwer – Área privada (estilos del plugin) */
:root { --hxa-red: #D6202A; --hxa-red-h: #B01A22; --hxa-text: #3A3A3A; --hxa-border: #E3E3E3; --hxa-grey: #F2F2F2; }

/* ---------- Caja de acceso ---------- */
.hxa-box { font-family: "Nunito", sans-serif; color: var(--hxa-text); width: 100%; }
.hxa-title { font-family: "Inter", sans-serif; font-size: 17px; font-weight: 600; color: #000; margin: 0 0 4px; }
.hxa-sub { font-size: 15px; margin: 0 0 18px; }
.hxa-title + .hxa-switch { margin-top: 18px; }
.hxa-notice { background: #FCECEC; color: #8E0F16; border-radius: 6px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.hxa-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--hxa-grey); border-radius: 50px; padding: 0; margin: 0 0 22px; }
.hxa-switch button {
	appearance: none; border: 0; background: transparent; border-radius: 50px; padding: 11px 10px; cursor: pointer;
	font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500; color: #000; transition: background-color .25s, color .25s;
}
.hxa-switch button[aria-selected="true"] { background: #000; color: #fff; }
.hxa-switch button:focus-visible { outline: 2px solid var(--hxa-red); outline-offset: 2px; }
.hxa-box[data-tab="login"] .hxa-form--register, .hxa-box[data-tab="register"] .hxa-form--login { display: none; }
.hxa-errors { background: #FCECEC; border-left: 3px solid var(--hxa-red); padding: 10px 14px; margin: 0 0 16px; font-size: 14px; color: #8E0F16; }
.hxa-errors p { margin: 0; }
.hxa-field { display: block; margin: 0 0 18px; }
.hxa-field > span:first-child { display: block; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; color: #000; margin: 0 0 8px; }
.hxa-box input[type=email], .hxa-box input[type=text], .hxa-box input[type=password], .hxa-search input[type=text] {
	width: 100%; height: 46px; border: 1px solid var(--hxa-border); border-radius: 4px; background: #fff; padding: 0 14px;
	font-family: "Nunito", sans-serif; font-size: 15px; color: var(--hxa-text); box-shadow: none; transition: border-color .2s;
}
.hxa-box input:focus, .hxa-search input:focus { border-color: var(--hxa-red); outline: none; }
.hxa-pass { position: relative; display: block; }
.hxa-pass input { padding-right: 46px !important; }
.hxa-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: #555; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.hxa-eye.is-on { color: var(--hxa-red); }
.hxa-hint { display: block; font-size: 12px; margin-top: 6px; color: #777; }
.hxa-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 18px; font-size: 12px; }
.hxa-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #000; cursor: pointer; }
.hxa-check input { accent-color: #000; width: 14px; height: 14px; margin: 0; }
.hxa-lost { color: var(--hxa-red); text-decoration: underline; font-size: 12px; }
.hxa-lost:hover { color: var(--hxa-red-h); }
.hxa-submit {
	appearance: none; width: 100%; height: 50px; border: 0; border-radius: 50px; background: var(--hxa-red); color: #fff; cursor: pointer;
	font-family: "Inter", sans-serif; font-size: 15px; font-weight: 600; transition: background-color .25s, transform .25s;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.hxa-submit:hover { background: var(--hxa-red-h); transform: translateY(-1px); }
.hxa-submit.is-loading { opacity: .7; pointer-events: none; }
.hxa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Grilla de categorías ---------- */
.hxa-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hxa-cat {
	display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px; background: #fff; border: 1px solid var(--hxa-border);
	color: #000; text-decoration: none; transition: border-color .25s, box-shadow .25s;
}
.hxa-cat:hover { border-color: var(--hxa-red); box-shadow: 0 10px 24px rgba(0,0,0,.08); color: #000; }
.hxa-cat__icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--hxa-grey); color: var(--hxa-red); display: flex; align-items: center; justify-content: center; }
.hxa-cat__icon svg { width: 18px; height: 18px; }
.hxa-cat__name { flex: 1; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600; line-height: 1.25; }
.hxa-cat__arrow { color: var(--hxa-red); transition: transform .25s; }
.hxa-cat:hover .hxa-cat__arrow { transform: translateX(4px); }
@media (max-width: 1024px) { .hxa-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hxa-cats { grid-template-columns: 1fr; } }

/* ---------- Cards de novedades ---------- */
.hxa-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hxa-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hxa-border); color: var(--hxa-text); text-decoration: none; transition: box-shadow .3s, transform .3s; }
.hxa-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.1); transform: translateY(-4px); color: var(--hxa-text); }
.hxa-card__media { display: block; height: 170px; overflow: hidden; background: var(--hxa-grey); }
.hxa-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hxa-card:hover .hxa-card__img { transform: scale(1.05); }
.hxa-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 22px; flex: 1; }
.hxa-card__meta { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .3px; color: #555; }
.hxa-card__meta b { color: var(--hxa-red); font-weight: 600; }
.hxa-card__title { font-family: "Inter", sans-serif; font-size: 16px; font-weight: 600; color: #000; line-height: 1.3; }
.hxa-card__text { font-size: 15px; line-height: 1.5; flex: 1; }
.hxa-card__more { align-self: flex-start; margin-top: 6px; padding-bottom: 4px; border-bottom: 1.5px solid #000; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; color: #000; }
.hxa-card__more i { font-style: normal; margin-left: 16px; display: inline-block; transition: transform .3s; }
.hxa-card:hover .hxa-card__more { color: var(--hxa-red); border-color: var(--hxa-red); }
.hxa-card:hover .hxa-card__more i { transform: translateX(4px); }
@media (max-width: 1024px) { .hxa-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hxa-cards { grid-template-columns: 1fr; } }
.hxa-empty { font-size: 15px; margin: 0; }

/* ---------- Buscador de certificados ---------- */
.hxa-search { display: flex; align-items: flex-end; gap: 12px; background: #fff; border-radius: 8px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hxa-search .hxa-field { flex: 1; margin: 0; }
.hxa-search .hxa-field > span:first-child { font-size: 13px; }
.hxa-submit--search { width: auto; height: 46px; padding: 0 26px; flex: 0 0 auto; }
.hxa-submit--search svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .hxa-search { flex-direction: column; align-items: stretch; } .hxa-submit--search { width: 100%; } }

.hxa-results__title { font-family: "Inter", sans-serif; font-size: 15px; font-weight: 600; color: #000; margin: 0 0 16px; }
.hxa-result {
	display: grid; grid-template-columns: 40px minmax(0, 1fr) 120px 100px 100px auto; align-items: center; gap: 16px;
	background: #fff; border-left: 3px solid var(--hxa-red); padding: 14px 18px; margin: 0 0 10px; font-family: "Inter", sans-serif;
}
.hxa-result__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--hxa-grey); color: var(--hxa-red); display: flex; align-items: center; justify-content: center; }
.hxa-result__icon svg { width: 18px; height: 18px; }
.hxa-result b { display: block; font-size: 13px; font-weight: 600; color: #000; }
.hxa-result small { display: block; font-size: 11px; color: #555; }
.hxa-result__col small { text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
.hxa-result__btn {
	display: inline-block; border: 1px solid #000; border-radius: 50px; padding: 9px 26px; color: #000; text-decoration: none;
	font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .25s, color .25s;
}
.hxa-result__btn:hover { background: #000; color: #fff; }
.hxa-result__btn.is-disabled { border-color: #ccc; color: #999; }
@media (max-width: 900px) {
	.hxa-result { grid-template-columns: max-content 1fr 1fr; gap: 12px 16px; }
	.hxa-result__col b { white-space: nowrap; }
	.hxa-result__icon { display: none; }
	.hxa-result__name { grid-column: 1 / -1; }
	.hxa-result__btn { grid-column: 1 / -1; text-align: center; }
}
/* Recursos destacados (Inicio) */
.hxa-feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; }
.hxa-feat { display: flex; background: #fff; border: 1px solid var(--hxa-border); overflow: hidden; transition: box-shadow .35s cubic-bezier(.22,.61,.36,1); }
.hxa-feat:hover { box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.hxa-feat__media { flex: 0 0 33%; display: block; min-height: 230px; overflow: hidden; background: var(--hxa-grey); }
.hxa-feat__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.hxa-feat:hover .hxa-feat__img { transform: scale(1.05); }
.hxa-feat__img--empty { display: flex; align-items: center; justify-content: center; color: #BDBDBD; }
.hxa-feat__img--empty svg { width: 44px; height: 44px; }
.hxa-feat__body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 26px 24px; }
.hxa-feat__tag { display: inline-block; border: 1px solid var(--hxa-red); border-radius: 50px; padding: 3px 7px; color: var(--hxa-red); font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .3px; text-transform: uppercase; }
.hxa-feat__title { margin: 0; font-family: "Inter", sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; }
.hxa-feat__title a { color: #000; text-decoration: none; }
.hxa-feat__title a:hover { color: var(--hxa-red); }
.hxa-feat__text { margin: 0; font-family: "Nunito", sans-serif; font-size: 15px; line-height: 1.45; color: var(--hxa-text); }
.hxa-feat__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; color: #000; text-decoration: none; transition: color .25s; }
.hxa-feat__cta svg { color: var(--hxa-red); flex: 0 0 auto; }
.hxa-feat__cta:hover { color: var(--hxa-red); }
@media (max-width: 1024px) { .hxa-feat-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
	.hxa-feat { flex-direction: column; }
	.hxa-feat__media { flex-basis: auto; min-height: 0; height: 190px; }
}
