/* =========================================================================
   UNITECH · modal.css  —  Modal "Solicita información" (UT-03) + single post
   ========================================================================= */

/* ---- Modal ---- */
.unitech-modal[hidden] { display: none; }
.unitech-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 1.5rem;
}
.unitech-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(22, 24, 28, 0.7);
	animation: unitech-fade 0.2s ease;
}
.unitech-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 820px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-modal);
	animation: unitech-pop 0.22s ease;
}
.unitech-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	width: 38px;
	height: 38px;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: #fff;
	color: var(--color-secondary);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.unitech-modal__close:hover { background: var(--color-bg-light); }

.unitech-modal__grid {
	display: grid;
	grid-template-columns: 40% 60%;
}
.unitech-modal__aside {
	background: var(--color-primary);
	color: #fff;
	padding: 2.25rem 1.75rem;
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.unitech-modal__title { color: #fff; font-size: 1.75rem; line-height: 1.1; margin: 0 0 1rem; }
.unitech-modal__desc { font-size: 0.95rem; opacity: 0.92; }
.unitech-modal__or { font-weight: 700; margin: 1.5rem 0 0.75rem; }
.unitech-modal__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.unitech-modal__contact a { color: #fff; text-decoration: none; font-weight: 600; }
.unitech-modal__contact a:hover { text-decoration: underline; }
.unitech-modal__hours { font-size: 0.8125rem; opacity: 0.8; margin-top: 1.25rem; }

.unitech-modal__form { padding: 2.25rem 1.75rem; }

/* Formulario fallback */
.unitech-form { display: flex; flex-direction: column; gap: 0.75rem; }
.unitech-form input,
.unitech-form select {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.75rem 0.9rem;
	font: inherit;
	background: var(--color-bg-light);
}
.unitech-form input:focus,
.unitech-form select:focus { outline: 2px solid var(--color-secondary); outline-offset: 1px; background: #fff; }
.unitech-form__row { display: flex; gap: 0.75rem; }
.unitech-form__row--phone { align-items: stretch; }
.unitech-form__prefix {
	display: inline-flex;
	align-items: center;
	padding: 0 0.9rem;
	background: var(--color-bg-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-weight: 600;
	color: var(--color-text-muted);
}
.unitech-form__legal { font-size: 0.7rem; color: var(--color-text-muted); margin: 0.25rem 0; line-height: 1.4; }
.unitech-form__check { display: flex; gap: 0.5rem; font-size: 0.78rem; color: var(--color-text-muted); align-items: flex-start; }
.unitech-form__check input { width: auto; margin-top: 0.15rem; }

@keyframes unitech-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes unitech-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---- Single post ---- */
.unitech-posthero { color: #fff; text-align: left; }
.unitech-posthero .wp-block-cover__inner-container { width: min(100% - 2.5rem, 1000px); }
.unitech-breadcrumb--light a { color: rgba(255, 255, 255, 0.85); }
.unitech-posthero__cat { color: var(--color-accent-sky); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
.unitech-posthero__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); margin: 0.5rem 0; }
.unitech-posthero__date { color: rgba(255, 255, 255, 0.8); font-size: 0.875rem; }

.unitech-singlewrap { padding-block: 3rem; }
.unitech-singlecols { gap: 2.5rem; align-items: flex-start; }
.unitech-singlemain { min-width: 0; }
.unitech-singlemain p,
.unitech-singlemain li { line-height: 1.7; }
.unitech-singlemain > * { max-width: 720px; }

.unitech-author {
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: var(--color-bg-light);
	border-radius: var(--radius-md);
	gap: 1rem;
	align-items: center;
}
.unitech-author__avatar img { border-radius: 50%; }
.unitech-author__name { font-weight: 700; margin: 0; }
.unitech-author__bio { font-size: 0.9rem; color: var(--color-text-muted); margin: 0.25rem 0 0; }

.unitech-singleside { position: sticky; top: 80px; }
.unitech-widget { margin-bottom: 2rem; }
.unitech-widget__title { font-size: 1.0625rem; border-bottom: 2px solid var(--color-border); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.unitech-related__grid { gap: 1.5rem; }

/* ---- Responsive ---- */
@media (max-width: 781px) {
	.unitech-modal__grid { grid-template-columns: 1fr; }
	.unitech-modal__aside { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
	.unitech-singlecols { flex-wrap: wrap; }
	.unitech-singlemain, .unitech-singleside { flex-basis: 100% !important; }
	.unitech-singleside { position: static; }
	.unitech-related__grid { grid-template-columns: 1fr !important; }
}
