/* =====================================================================
   HERO-COMISIONADO · inicio de sesion (escritorio y sitio movil)
   Estructura: tarjeta grande redondeada con dos paneles.
   ===================================================================== */
.hero-login { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px; background: #E9ECE7; font-family: var(--font); color: var(--text); }
.hero-login * { box-sizing: border-box; }

.hero-card {
	width: 100%; max-width: 1040px; min-height: 600px; display: flex; gap: 10px; padding: 10px;
	background: #FBFCFA; border-radius: 28px; box-shadow: 0 1px 2px rgba(31, 42, 27, .06), 0 12px 40px rgba(31, 42, 27, .10);
	animation: hero-aparece .35s ease both;
}

/* ---------- Panel izquierdo: foto de la obra con degradado verde HERO ---------- */
.hero-card__izq {
	position: relative; flex: 0 0 46%; border-radius: 20px; overflow: hidden; color: #fff;
	background: #5F7D12 url('../../images/construccion.jpg') center / cover no-repeat;
	display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 36px 40px;
}
.hero-card__izq::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(127, 163, 27, .45) 0%, rgba(95, 125, 18, .35) 30%, rgba(31, 42, 27, .78) 62%, rgba(24, 34, 20, .94) 100%); }
.hero-card__izq > * { position: relative; z-index: 1; }
.hero-card__logo--m { display: none; }
.hero-form__logo { margin: 0 0 22px; }
.hero-form__logo img { display: block; height: 96px; width: auto; }
.hero-card__iconos { display: flex; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.hero-card__iconos li { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(24, 34, 20, .55); border: 1px solid rgba(255, 255, 255, .45); }
.hero-card__iconos svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-card__frase { margin: 0 0 10px; font-size: 14px; opacity: .9; }
.hero-card__titulo { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.hero-card__apoyo { margin: 14px 0 0; max-width: 340px; font-size: 14px; line-height: 1.5; opacity: .9; }

/* ---------- Panel derecho: formulario ---------- */
.hero-card__der { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 36px; }
.hero-form { width: 100%; max-width: 360px; }
.hero-form__titulo { margin: 0 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.hero-form__sub { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.hero-campo { margin-bottom: 16px; }
.hero-campo__fila { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; }
.hero-campo label { font-size: 13px; font-weight: 600; color: var(--text); }
.hero-campo__envoltura { position: relative; }
.hero-campo input {
	width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text);
	background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-ctl); outline: 0;
	transition: border-color .15s, box-shadow .15s;
}
.hero-campo input[type="password"], .hero-campo input.hero-con-ojo { padding-right: 46px; }
.hero-campo input:focus { border-color: var(--hero); box-shadow: 0 0 0 3px var(--hero-ring); }
.hero-campo input::placeholder { color: #9AA5B1; }
.hero-ojo { position: absolute; top: 0; right: 0; width: 46px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 17px; cursor: pointer; border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0; }
.hero-ojo:hover { color: var(--hero-dark); }

.hero-olvido { font-size: 13px; font-weight: 600; color: var(--hero-dark); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.hero-olvido:hover { color: var(--hero); text-decoration: underline; }
.hero-olvido__aviso { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-ctl); background: var(--hero-soft); color: #4A6310; font-size: 13px; line-height: 1.45; }
.hero-olvido__aviso[hidden] { display: none; }

.hero-boton {
	width: 100%; height: 46px; margin-top: 6px; border: 0; border-radius: var(--radius-ctl); cursor: pointer;
	background: var(--hero); color: #fff; font: inherit; font-size: 16px; font-weight: 600; transition: background .15s, transform .05s;
}
.hero-boton:hover { background: var(--hero-dark); }
.hero-boton:active { transform: scale(.99); }
.hero-boton:focus-visible { outline: 3px solid var(--hero-ring); outline-offset: 2px; }

.hero-error { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--radius-ctl); background: #FDECEC; color: var(--danger-dark); font-size: 14px; }
.hero-error:empty { display: none; }
.hero-pie { margin-top: 30px; text-align: center; color: var(--muted); font-size: 12px; }
.hero-pie b { color: var(--hero-dark); font-weight: 600; letter-spacing: .04em; }

@keyframes hero-aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-card { animation: none; } }

/* ---------- Celular / tableta: pantalla limpia y centrada (logo en circulo, titulo, formulario redondeado) ---------- */
@media (max-width: 820px), (orientation: landscape) and (max-height: 520px) {
	.hero-login { padding: 0; align-items: stretch; background: linear-gradient(180deg, #F8FAF6 0%, #EAF1E4 100%); }
	.hero-card { flex-direction: column; gap: 0; padding: 0; min-height: 100vh; min-height: 100dvh; border-radius: 0; box-shadow: none; background: transparent; animation: none; }
	.hero-card__izq { display: none; }
	.hero-card__der { flex: 1 0 auto; padding: 36px 24px 28px; align-items: flex-start; justify-content: center; }
	.hero-form { max-width: 420px; margin: 0 auto; text-align: center; }
	.hero-form__logo { display: flex; align-items: center; justify-content: center; width: 148px; height: 148px; margin: 0 auto 22px; border-radius: 50%; background: #fff; box-shadow: 0 8px 28px rgba(95, 125, 18, .16), inset 0 0 0 10px #F1F5EA; }
	.hero-form__logo img { display: block; height: 96px; width: auto; }
	.hero-form__titulo { margin: 0 0 6px; font-size: 28px; font-weight: 600; text-align: center; }
	.hero-form__sub { margin: 0 0 26px; text-align: center; font-size: 15px; line-height: 1.45; }
	.hero-campo { text-align: left; margin-bottom: 14px; }
	.hero-campo input { min-height: 52px; border-radius: 14px; border-color: #D5DCD1; background: #fff; box-shadow: 0 1px 2px rgba(31, 42, 27, .05); }
	.hero-boton { min-height: 56px; margin-top: 10px; border-radius: 30px; font-size: 17px; box-shadow: 0 6px 16px rgba(95, 125, 18, .28); }
	.hero-form { display: flex; flex-direction: column; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }
	.hero-pie { margin-top: auto; padding-top: 28px; }
}
@media (orientation: landscape) and (max-height: 520px) {
	.hero-card__der { padding: 18px 24px; }
	.hero-form__logo { width: 96px; height: 96px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(95, 125, 18, .14), inset 0 0 0 6px #F1F5EA; }
	.hero-form__logo img { height: 62px; }
	.hero-form__sub { margin-bottom: 14px; }
	.hero-form { min-height: 0; }
	.hero-pie { margin-top: 14px; padding-top: 0; }
}

.hero-card__frase, .hero-card__titulo, .hero-card__apoyo { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hero-card__frase, .hero-card__apoyo { opacity: 1; }
