/* ==========================================================================
   Cabecera — Inmobiliaria Solís
   Barra verde oscuro de la marca con el logo a la izquierda y el menú a la
   derecha. En la portada se vuelve transparente para apoyarse sobre el vídeo
   del hero; esas reglas están en hero.css.
   ========================================================================== */

.solis-cab {
	--cab-alto: 96px;
	background: #072017;
	width: 100%;
}

.solis-cab__interior {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	height: var(--cab-alto);
	display: flex;
	align-items: center;
	gap: 20px;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ logo */

.solis-cab__logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 0;
	text-decoration: none;
	color: var(--solis-texto, #111);
	font-weight: 700;
}

/* Elementor impone .elementor img{height:auto} después de esta hoja y con la
   misma especificidad; por eso el selector lleva un nivel de más. */
.solis-cab .solis-cab__logo img {
	width: auto;
	height: 68px;
	object-fit: contain;
	display: block;
}

/* ------------------------------------------------------------------ menú */

/* Sobre la barra verde el menú no necesita caja propia. En la portada, donde
   la barra es transparente sobre el vídeo, hero.css sí se la devuelve. */
.solis-cab__nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 1 auto;
	min-width: 0;
	padding: 7px 10px;
	border-radius: 16px;
}

.solis-cab__enlace {
	padding: 11px 15px;
	border-radius: 11px;
	font-size: 17px;
	font-weight: 500;
	color: rgba(255, 255, 255, .88) !important;
	text-decoration: none;
	white-space: nowrap;
	transition: background .16s, color .16s;
}

.solis-cab__enlace:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff !important;
}

.solis-cab__enlace.es-actual {
	color: #fff !important;
	font-weight: 700;
	background: var(--solis-naranja, #FA6407);
}

/* ----------------------------------------------------------------- redes */

/* Ya no van en la barra de escritorio; estas reglas las usa el panel móvil. */
.solis-cab__red {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	text-decoration: none;
	transition: background .16s, transform .16s;
}

.solis-cab__red svg { width: 19px; height: 19px; }

/* Cada red con su color de marca desde el principio. */
.solis-cab__red[aria-label="WhatsApp"]  { color: #25D366 !important; }
.solis-cab__red[aria-label="Instagram"] { color: #E1306C !important; }
.solis-cab__red[aria-label="Facebook"]  { color: #1877F2 !important; }

.solis-cab__red:hover {
	background: #F4F5F7;
	transform: translateY(-1px);
}

/* En el panel móvil van centradas y algo más grandes. */
.solis-panel__redes {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #EEE;
}

.solis-panel__redes .solis-cab__red {
	width: 44px;
	height: 44px;
	background: #F4F5F7;
}

.solis-panel__redes .solis-cab__red svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- toggle */

.solis-cab__toggle {
	display: none !important;
	/* Antes lo empujaban las redes; ahora que no están, va él solo al borde. */
	margin-left: auto;
	/* Sin base fija el flex lo encogía a la mitad. */
	flex: 0 0 42px;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, .45) !important;
	border-radius: 10px !important;
	background: transparent !important;
	cursor: pointer;
	align-items: center;
}

.solis-cab__toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
}

/* ------------------------------------------------------------- panel móvil */

.solis-panel { position: fixed; inset: 0; z-index: 99998; }
.solis-panel[hidden] { display: none; }

.solis-panel__fondo {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .22s;
}

.solis-panel__caja {
	position: absolute;
	top: 0;
	right: 0;
	width: min(320px, 84vw);
	height: 100%;
	background: #fff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, .18);
	padding: 16px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 2px;
	transform: translateX(100%);
	transition: transform .26s ease;
	overflow-y: auto;
}

.solis-panel.esta-abierto .solis-panel__fondo { opacity: 1; }
.solis-panel.esta-abierto .solis-panel__caja { transform: translateX(0); }

.solis-panel__cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	margin-bottom: 8px;
	border-bottom: 1px solid #EEE;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #999;
}

.solis-panel__cerrar {
	width: 36px;
	height: 36px;
	border: 0 !important;
	border-radius: 8px !important;
	background: #F4F5F7 !important;
	color: #111 !important;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 !important;
}

.solis-panel__enlace {
	padding: 13px 12px;
	border-radius: 9px;
	font-size: 16px;
	font-weight: 500;
	color: #222 !important;
	text-decoration: none;
}

.solis-panel__enlace:hover { background: #F4F5F7; }

.solis-panel__enlace.es-actual {
	color: var(--solis-naranja, #FA6407) !important;
	font-weight: 700;
	background: rgba(250, 100, 7, .07);
}

.solis-panel__cta {
	margin-top: 14px;
	padding: 13px 18px;
	border-radius: 10px;
	background: #25D366;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

/* ------------------------------------------------------------ responsive */

/* Con los enlaces más grandes el menú necesita más sitio: se va apretando
   por pasos y, cuando ya no cabe, pasa al panel lateral. */
@media (max-width: 1500px) {
	.solis-cab__enlace { padding: 10px 11px; font-size: 16px; }
}

@media (max-width: 1340px) {
	.solis-cab__enlace { padding: 9px 9px; font-size: 15px; }
	.solis-cab__nav { padding: 6px 8px; }
}

@media (max-width: 1200px) {
	.solis-cab__nav { display: none; }
	.solis-cab__toggle { display: flex !important; }
}

@media (max-width: 640px) {
	.solis-cab { --cab-alto: auto; }

	.solis-cab__interior {
		flex-wrap: wrap;
		padding: 12px 16px;
		gap: 10px;
	}

	.solis-cab .solis-cab__logo img { height: 50px; }

	/* El buscador baja a una segunda línea, a todo el ancho.
	   El 100% se calcula sobre el contenido, así que no arrastra el gap. */
}

@media (prefers-reduced-motion: reduce) {
	.solis-panel__caja,
	.solis-panel__fondo,
	.solis-cab__enlace { transition: none; }
}

/* ==========================================================================
   WhatsApp flotante con menú de intenciones (sale en todo el sitio)
   ========================================================================== */

.solis-wsp {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.solis-wsp__boton {
	width: 58px !important;
	height: 58px !important;
	min-width: 58px !important;
	min-height: 58px !important;
	max-width: 58px !important;
	max-height: 58px !important;
	flex: 0 0 auto;
	line-height: 0 !important;
	border-radius: 50% !important;
	border: 0 !important;
	background: #25D366 !important;
	color: #fff !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
	transition: transform .18s;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.solis-wsp__boton:hover { transform: scale(1.06); }
.solis-wsp__boton svg { width: 30px; height: 30px; }

.solis-wsp__menu {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
	padding: 0 0 10px;
	width: min(310px, calc(100vw - 40px));
	overflow: hidden;
	transform-origin: bottom right;
	animation: solis-wsp-abrir .18s ease;
}

@keyframes solis-wsp-abrir {
	from { opacity: 0; transform: translateY(8px) scale(.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Cabecera del menú: verde WhatsApp, como el propio chat. */
.solis-wsp__cabecera {
	background: #075E54;
	padding: 15px 16px;
	margin-bottom: 6px;
}

.solis-wsp__cabecera b {
	display: block;
	color: #fff;
	font-size: 15px;
	line-height: 1.3;
}

.solis-wsp__cabecera span {
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, .82);
	font-size: 12.5px;
}

.solis-wsp__cabecera i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #25D366;
	display: inline-block;
	flex: 0 0 auto;
}

.solis-wsp__titulo {
	margin: 6px 16px 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9AA0A6;
}

/* Un asesor por fila: foto, nombre y cargo. */
.solis-wsp__asesor {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 8px;
	padding: 9px 10px;
	border-radius: 12px;
	text-decoration: none;
	color: #222 !important;
	transition: background .16s;
}

.solis-wsp__asesor:hover { background: #F1FBF4; }

.solis-wsp .solis-wsp__asesor img {
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: #EEE;
}

.solis-wsp__datos { flex: 1 1 auto; min-width: 0; line-height: 1.3; }

.solis-wsp__datos b {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #1B1B1B;
}

.solis-wsp__datos i {
	display: block;
	font-style: normal;
	font-size: 12.5px;
	color: #7A7A7A;
}

/* El icono de WhatsApp a la derecha deja claro por dónde se abre el chat. */
.solis-wsp__ir {
	width: 21px;
	height: 21px;
	flex: 0 0 auto;
	color: #25D366;
}

.solis-wsp__menu > :last-child { margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   Reclamo al pasar el ratón: "Haz clic y chatea con un asesor ahora."
   Se coloca a la izquierda del botón y comparte con él el borde verde, de
   modo que los dos se leen como una sola píldora.
   -------------------------------------------------------------------------- */

.solis-wsp__aviso {
	position: absolute;
	right: 44px;                 /* se mete bajo el botón para unirse a él */
	bottom: 0;
	height: 58px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 40px 0 4px;       /* el hueco derecho lo tapa el botón */
	background: #fff;
	border: 2px solid #25D366;
	border-radius: 40px;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(12px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.solis-wsp .solis-wsp__aviso img {
	width: 50px !important;
	height: 50px !important;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	display: block;
}

.solis-wsp__aviso b {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
	color: #17211B;
}

/* El botón queda por encima para cerrar la píldora por la derecha. */
.solis-wsp__boton { position: relative; z-index: 1; }

.solis-wsp:hover .solis-wsp__aviso,
.solis-wsp:focus-within .solis-wsp__aviso {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* Con el menú abierto sobra: ya se ve el agente en su cabecera. */
.solis-wsp.esta-abierto .solis-wsp__aviso {
	opacity: 0;
	visibility: hidden;
}

/* En móvil no cabe y taparía el contenido. */
@media (max-width: 700px) {
	.solis-wsp__aviso { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.solis-wsp__aviso { transition: none; }
}

/* ==========================================================================
   Buscador rápido: la lupa del menú y su ventana
   ========================================================================== */

.solis-cab__buscar {
	display: grid;
	place-items: center;
	/* Con base explícita: si no, el flex lo aplasta cuando el menú va justo. */
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	height: 40px;
	margin-left: 4px;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: rgba(255, 255, 255, .12) !important;
	color: #fff !important;
	cursor: pointer;
	transition: background .16s;
}

.solis-cab__buscar:hover { background: var(--solis-naranja, #FA6407) !important; }
.solis-cab__buscar svg { width: 18px; height: 18px; }

/* -------------------------------------------------------------- ventana */

.solis-buscar {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: 100vw;
	max-height: 100vh;
	color: var(--solis-texto, #111);
}

.solis-buscar::backdrop {
	background: rgba(6, 17, 12, .62);
	backdrop-filter: blur(3px);
}

.solis-buscar__caja {
	width: min(560px, calc(100vw - 32px));
	box-sizing: border-box;
	padding: 24px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
	animation: solis-buscar-entra .18s ease;
}

@keyframes solis-buscar-entra {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.solis-buscar__cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.solis-buscar__cabecera h2 {
	margin: 0 !important;
	font-size: 20px !important;
	font-weight: 700;
	color: var(--solis-texto, #111) !important;
}

.solis-buscar__cerrar {
	width: 34px !important;
	height: 34px !important;
	min-height: 0 !important;
	padding: 0 !important;
	display: grid;
	place-items: center;
	border: 0 !important;
	border-radius: 50% !important;
	background: #F4F5F7 !important;
	color: #111 !important;
	cursor: pointer;
}

.solis-buscar__cerrar:hover { background: #E7E9EC !important; }
.solis-buscar__cerrar svg { width: 17px; height: 17px; }

/* Campo de texto */

.solis-buscar__texto {
	position: relative;
	display: block;
	margin-bottom: 18px;
}

.solis-buscar__texto svg {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 19px;
	height: 19px;
	color: #7A7A7A;
	pointer-events: none;
}

.solis-buscar__texto input {
	width: 100%;
	height: 50px;
	padding: 0 16px 0 44px !important;
	min-height: 0;
	font-size: 15.5px;
	font-family: inherit;
	border: 1px solid #E4E4E4;
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
}

.solis-buscar__texto input:focus {
	outline: none;
	border-color: var(--solis-naranja, #FA6407);
	box-shadow: 0 0 0 3px rgba(250, 100, 7, .15);
}

/* Operación: los radios se dibujan como chips. */

.solis-buscar__grupo { margin-bottom: 18px; }

.solis-buscar__etiqueta {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #7A7A7A;
}

.solis-buscar__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.solis-buscar__chips label { margin: 0; cursor: pointer; }

.solis-buscar__chips input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.solis-buscar__chips span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border: 1px solid #E4E4E4;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: all .16s;
}

.solis-buscar__chips span i {
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 999px;
	background: #F4F5F7;
	color: #7A7A7A;
}

.solis-buscar__chips input:checked + span {
	background: var(--solis-naranja, #FA6407);
	border-color: var(--solis-naranja, #FA6407);
	color: #fff;
}

.solis-buscar__chips input:checked + span i {
	background: rgba(255, 255, 255, .25);
	color: #fff;
}

.solis-buscar__chips input:focus-visible + span {
	outline: 2px solid var(--solis-naranja, #FA6407);
	outline-offset: 2px;
}

/* Filas de dos campos */

.solis-buscar__fila {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.solis-buscar__campo {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #7A7A7A;
}

.solis-buscar__campo input,
.solis-buscar__campo select {
	width: 100%;
	height: 46px;
	padding: 0 12px !important;
	min-height: 0;
	font-size: 15px;
	font-weight: 400;
	font-family: inherit;
	text-transform: none;
	letter-spacing: 0;
	color: var(--solis-texto, #111);
	border: 1px solid #E4E4E4;
	border-radius: 10px;
	background: #fff;
	background-image: none;
	box-sizing: border-box;
}

.solis-buscar__campo input:focus,
.solis-buscar__campo select:focus {
	outline: none;
	border-color: var(--solis-naranja, #FA6407);
}

.solis-buscar__enviar {
	/* El CSS del tema pone width:auto a los botones. */
	width: 100% !important;
	margin-top: 8px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--solis-naranja, #FA6407) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .18s;
}

.solis-buscar__enviar:hover { background: var(--solis-naranja-oscuro, #E85500) !important; }
.solis-buscar__enviar svg { width: 20px; height: 20px; }

@media (max-width: 480px) {
	.solis-buscar__fila { grid-template-columns: 1fr; }
	.solis-buscar__caja { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.solis-buscar__caja { animation: none; }
	.solis-buscar__chips span,
	.solis-cab__buscar { transition: none; }
}

/* El buscador dentro del panel de móvil se ve como un enlace más. */
.solis-panel__buscar {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	border: 0 !important;
	background: none !important;
	cursor: pointer;
	font-family: inherit;
}

.solis-panel__buscar svg { width: 18px; height: 18px; color: var(--solis-naranja, #FA6407); }
