/**
 * Estilos de la plantilla Stich (antes inline en open_html.php).
 * Depende de variables de tema definidas en css/styles.php.
 */

.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Gradientes de marca */
.editorial-gradient {
	background: linear-gradient(135deg, var(--boton-fondo) 0%, var(--boton-fondo-hover) 100%);
	color: var(--boton-texto);
}

.editorial-gradient:hover {
	background: linear-gradient(135deg, var(--boton-fondo-hover) 0%, var(--boton-fondo) 100%);
	color: var(--boton-texto-hover);
}

.primary-gradient {
	background: linear-gradient(135deg, var(--titulos) 0%, var(--iconos) 100%);
	color: var(--boton-texto);
}

.primary-gradient:hover {
	background: linear-gradient(135deg, var(--iconos) 0%, var(--titulos) 100%);
	color: var(--boton-texto-hover);
}

/* Ficha propiedad */
.glass-badge {
	background: rgba(248, 249, 250, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.editorial-shadow {
	box-shadow: 0 12px 32px rgba(25, 28, 29, 0.04);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Buscador hero */
.stich-search-form.search-form {
	display: block !important;
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
}

.stich-search-glass {
	padding: 1.45rem 1.5rem 1.55rem;
	border-radius: 1.25rem;
	background: var(--stich-search-glass-bg, rgba(36, 38, 42, 0.34));
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid var(--stich-search-glass-border, rgba(255, 255, 255, 0.16));
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
	max-height: none;
	overflow: visible;
}

.stich-search-form,
.stich-search-panel,
.stich-search-row--fields {
	max-height: none;
	overflow: visible;
}

.stich-hero-slides {
	position: absolute;
	inset: 0;
}

.stich-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transition: opacity 900ms ease;
	transform: scale(1.05);
}

.stich-hero-slide.is-active {
	opacity: 1;
	animation: stich-kenburns 10s ease-in-out both;
}

@keyframes stich-kenburns {
	0% {
		transform: scale(1.06) translate3d(0, 0, 0);
	}
	100% {
		transform: scale(1.18) translate3d(-1.5%, -1.5%, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.stich-hero-slide {
		transition: none;
		transform: none;
	}

	.stich-hero-slide.is-active {
		animation: none;
	}
}

.stich-search-tabsbar {
	margin-bottom: 1.1rem;
}

.stich-search-tabsbar .search-tabs-container {
	grid-column: auto;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.stich-search-tabsbar .search-tabs {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 9999px;
	padding: 7px;
	gap: 6px;
}

.stich-search-tabsbar .search-tab {
	border-radius: 9999px;
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.92);
	background: transparent;
}

.stich-search-tabsbar .search-tab:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.stich-search-form .stich-search-tabsbar .search-tab.active {
	background-color: var(--boton-fondo) !important;
	color: var(--boton-texto) !important;
	border: 1px solid transparent;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.stich-search-form .stich-search-tabsbar .search-tab.active:hover {
	background-color: var(--boton-fondo-hover) !important;
	color: var(--boton-texto-hover) !important;
}

.stich-search-tabsbar--solo {
	margin-bottom: 1.1rem;
}

.stich-search-tabsbar--solo .stich-input-inner--solo {
	max-width: 22rem;
}

.stich-search-panel {
	padding-top: 0.1rem;
}

.stich-search-row--fields {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: stretch;
}

@media (min-width: 1024px) {
	.stich-search-row--fields {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 1rem;
	}
}

@media (min-width: 640px) and (max-width: 1023.98px) {
	.stich-search-row--fields {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

.stich-field-wrap {
	flex: 1 1 10.5rem;
	min-width: min(100%, 10rem);
}

.stich-field-wrap--narrow {
	flex: 0 1 9.25rem;
	min-width: 7.5rem;
}

.stich-field-wrap--grow {
	flex: 1 1 11rem;
	min-width: 8rem;
}

.stich-field-wrap--btn {
	flex: 0 0 auto;
	display: flex;
	align-items: stretch;
}

@media (min-width: 1024px) {
	.stich-field-wrap--btn {
		align-self: stretch;
	}
}

.stich-input-inner {
	position: relative;
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.stich-input-inner--stacked {
	min-height: 4.35rem;
	padding: 0.55rem 0.65rem 0.55rem 0.35rem;
}

.stich-input-inner:focus-within {
	border-color: var(--iconos);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.stich-input-body {
	flex: 1;
	min-width: 0;
	padding-left: 2.4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
}

.stich-field-label {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--texto);
	opacity: 0.58;
	line-height: 1.2;
}

.stich-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--iconos);
	font-size: 1rem;
	pointer-events: none;
	z-index: 1;
	line-height: 1;
}

.stich-search-form.search-form .stich-input-inner--stacked .stich-input-control,
.stich-search-form.search-form .stich-input-inner--stacked input.stich-input-control,
.stich-search-form.search-form .stich-input-inner--stacked select.stich-input-control {
	width: 100% !important;
	flex: 0 0 auto;
	min-width: 0;
	height: auto !important;
	min-height: 0 !important;
	margin: 0;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 1rem !important;
	font-weight: 700;
	color: var(--texto) !important;
	padding: 0 0.15rem 0 0 !important;
	line-height: 1.25;
}

.stich-search-form.search-form .stich-input-inner--stacked select.stich-input-control--select {
	cursor: pointer;
	appearance: none !important;
	-webkit-appearance: none !important;
	padding-right: 1.85rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%2357534e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.15rem center !important;
}

.stich-search-form.search-form .stich-input-control::placeholder {
	color: #a8a29e;
	font-weight: 600;
	opacity: 0.9;
}

.stich-btn-buscar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	border: none;
	border-radius: 12px;
	padding: 0 1.75rem;
	font-size: 0.82rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--boton-texto) !important;
	background-color: var(--boton-fondo) !important;
	cursor: pointer;
	min-height: 4.35rem;
	width: 100%;
	transition: background-color 0.2s, color 0.2s, transform 0.12s;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stich-btn-buscar:hover {
	background-color: var(--boton-fondo-hover) !important;
	color: var(--boton-texto-hover) !important;
}

.stich-btn-buscar:active {
	transform: scale(0.98);
}

@media (min-width: 1024px) {
	.stich-btn-buscar {
		width: auto;
		min-width: 9.5rem;
		padding: 0 1.9rem;
	}
}

@media (max-width: 767.98px) {
	.stich-search-glass {
		padding: 0.55rem 0.75rem 0.75rem;
		border-radius: 0.85rem;
	}

	.stich-search-tabsbar,
	.stich-search-tabsbar--solo {
		margin-bottom: 0.4rem;
	}

	.stich-search-panel {
		padding-top: 0;
	}

	.stich-search-row--fields {
		gap: 0.35rem;
		align-items: stretch;
	}

	.stich-search-row--fields > .stich-field-wrap,
	.stich-search-row--fields > .stich-field-wrap--narrow,
	.stich-search-row--fields > .stich-field-wrap--grow,
	.stich-search-row--fields > .stich-field-wrap--btn {
		flex: 0 0 auto !important;
	}

	.stich-input-inner--stacked {
		min-height: 3rem;
		padding: 0.32rem 0.5rem 0.32rem 0.28rem;
	}

	.stich-input-body {
		padding-left: 2rem;
		gap: 0;
	}

	.stich-field-label {
		font-size: 0.55rem;
		line-height: 1.1;
	}

	.stich-input-icon {
		left: 11px;
		font-size: 0.88rem;
	}

	.stich-btn-buscar {
		min-height: 3rem;
		padding: 0 1.15rem;
		font-size: 0.76rem;
		border-radius: 10px;
	}

	.stich-search-tabsbar .search-tabs {
		padding: 4px;
		gap: 3px;
	}

	.stich-search-tabsbar .search-tab {
		font-size: 0.7rem !important;
		padding: 0.26rem 0.45rem !important;
		min-width: 0 !important;
		flex: 1 1 auto;
	}

	.stich-search-form.search-form .stich-input-inner--stacked input.stich-input-control,
	.stich-search-form.search-form .stich-input-inner--stacked select.stich-input-control {
		font-size: 0.94rem !important;
		line-height: 1.2 !important;
	}
}

/* H1: 25% más chicos que text-3xl/4xl/5xl/6xl de Tailwind (×0.75) */
.h1-hero {
	font-size: 1.40625rem;
	line-height: 1.15;
}

@media (min-width: 640px) {
	.h1-hero {
		font-size: 1.6875rem;
	}
}

@media (min-width: 768px) {
	.h1-hero {
		font-size: 2.25rem;
	}
}

@media (min-width: 1024px) {
	.h1-hero {
		font-size: 2.8125rem;
	}
}

.h1-page {
	font-size: 1.40625rem;
	line-height: 1.15;
}

@media (min-width: 640px) {
	.h1-page {
		font-size: 1.6875rem;
	}
}

@media (min-width: 768px) {
	.h1-page {
		font-size: 2.25rem;
	}
}

.h1-legal {
	font-size: 1.40625rem;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.h1-legal {
		font-size: 1.6875rem;
	}
}

/* Nav fijo Stich: compensación en body (styles.php usa padding distinto para modern) */
body {
	padding-top: var(--stich-nav-height) !important;
}
