:root {
	--rosa-chic: #c04090;
	--rosa-hover: #a03276;
	--lila-bg: #f7f2f2;
	--gris-borde: #ddd;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

body {
	font-family: Arial, sans-serif;
	background: #f7f2f2;
	color: #333;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

header {
	background-color: #fff;

	/* Fallback + notch; garantiza mínimo 1.25rem o safe-area+12px, lo que sea mayor */
	padding: 0.9rem 1.25rem;
	padding-left: max(1rem, env(safe-area-inset-left));
	padding-right: max(1.35rem, calc(env(safe-area-inset-right) + 16px));

	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;

	border-bottom: 2px solid #ddd;
	position: sticky;
	top: 0;
	z-index: 20;
}

.logo-chicmx {
	font-weight: bold;
	color: #c04090;
	font-size: 1.7rem;
	cursor: pointer;
	transition: color 0.15s;
}
.logo-chicmx:hover {
	color: var(--rosa-hover);
}

.saludo-header {
	color: var(--rosa-chic);
	font-size: 1.25rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 180px; /* Limita el ancho para el nombre, ajusta si lo ves muy corto/largo */
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.nav-links {
	display: flex;
	gap: 1.2rem;
	font-size: 1rem;
}
.nav-links a {
	text-decoration: none;
	color: #333;
	font-weight: bold;
}
.main {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 2rem 0;
	gap: 2rem;
	width: 100%;
	max-width: 100vw;
}
.bienvenida-chic,
.outfit-box {
	background: white;
	border-radius: 22px;
	box-shadow: 0 2px 24px #c0409030;
	padding: 2.2rem 1.2rem 1.2rem 1.2rem;
	max-width: 420px;
	width: 96vw;
	text-align: center;
	margin: 0 auto 1.2rem auto;
}
@media (max-width: 700px) {
	.main {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem 0;
	}

	.bienvenida-chic,
	.outfit-box {
		width: min(96vw, 460px); /* centrado + respiro lateral */
		max-width: 460px;
		padding: 1.1rem 0.8rem;
		margin: 0.5rem auto 1rem auto; /* centrado real */
		border-radius: 18px;
	}
}
button,
input[type='file'] {
	min-height: 48px;
	font-size: 1.08em;
}
button:active {
	transform: scale(0.97);
}
.toast {
	position: fixed;
	bottom: 34px;
	left: 50%;
	transform: translateX(-50%);
	background: #c04090;
	color: white;
	padding: 13px 32px;
	border-radius: 25px;
	font-size: 1.08em;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s, bottom 0.25s;
	z-index: 2000;
}
.toast.show {
	opacity: 1;
	bottom: 52px;
	pointer-events: auto;
}
#modal-registro,
#perfil-modal {
	display: none;
	position: fixed;
	left: 0;
	width: 100vw;
	z-index: 1000;
	/*align-items: center;*/
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	min-height: 100vh;

	align-items: flex-start; /* <-- Cambia 'center' por 'flex-start' para móviles */
	overflow-y: auto;
}

#modal-registro .modal-content,
#perfil-modal .modal-content {
	background: white;
	border-radius: 18px;
	padding: 24px 12px;
	max-width: 98vw;
	box-shadow: 0 8px 32px #c0409080;
	animation: modalPop 0.5s;

	max-height: 95vh; /* O el % que prefieras */
	overflow-y: auto;
}
@keyframes modalPop {
	from {
		transform: scale(0.88);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
#modal-registro label,
#perfil-modal label {
	margin-top: 1rem;
	font-weight: bold;
	display: block;
}
#modal-registro input,
#modal-registro select,
#perfil-modal input,
#perfil-modal select {
	width: 100%;
	margin-bottom: 14px;
	padding: 10px;
	font-size: 1.08em;
	border-radius: 8px;
	border: 1px solid #ddd;
	box-sizing: border-box;
}
#modal-registro input[type=\"number\"] {
	/* Mejora visual para el input de edad */
	appearance: textfield;
}
#modal-registro input[type=\"number\"]::-webkit-inner-spin-button,
#modal-registro input[type=\"number\"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
#modal-registro #genero-otro {
	margin-bottom: 0.7em;
}
#modal-registro button,
#perfil-modal button {
	width: 100%;
	margin-top: 18px;
	background: #c04090;
	color: white;
	font-weight: bold;
	padding: 13px 0;
	border: none;
	border-radius: 8px;
	font-size: 1.08em;
	cursor: pointer;
	transition: background 0.2s;
}
#modal-registro button:hover,
#perfil-modal button:hover {
	background: #a03276;
}
label {
	display: block;
	margin-bottom: 3px;
	font-weight: bold;
}
#mosaicoLooks {
	display: none;
	margin: 22px auto 0 auto;
	max-width: 420px;
	overflow-x: auto;
}
#stripLooks {
	display: flex;
	gap: 7px;
	margin-top: 6px;
}

.hamburguesa {
	display: none;
	width: 44px; /* área táctil recomendada */
	height: 44px;
	position: relative;
	cursor: pointer;

	margin-left: 2px;
	margin-right: clamp(12px, 2.5vw, 18px); /* más separación del borde */

	border-radius: 10px;
	color: var(--rosa-chic); /* "currentColor" para la barra */
	touch-action: manipulation;
	min-width: 44px;
}
.hamburguesa:active,
.hamburguesa:hover {
	background: rgba(192, 64, 144, 0.08);
}

/* DIBUJA 3 líneas con un solo pseudo‑elemento */
.hamburguesa::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 28px;
	height: 3px;
	background: currentColor;
	border-radius: 2px;
	transform: translate(-50%, -50%);
	/* barra central + top y bottom con box-shadow */
	box-shadow: 0 -8px 0 0 currentColor, 0 8px 0 0 currentColor;
}

/* Oculta los div internos si aún están en el HTML */
.hamburguesa > div {
	display: none !important;
}
.hamburguesa {
	margin-right: 14px; /* antes 0; la empuja un poco hacia la izquierda */
}
@media (max-width: 700px) {
	.nav-links {
		position: fixed;
		top: 65px;
		right: 0;
		background: white;
		flex-direction: column;
		align-items: flex-end;
		gap: 0;
		width: 220px;
		box-shadow: 0 2px 14px #c0409030;
		border-radius: 0 0 0 16px;
		display: none;
		z-index: 1002;
	}
	.nav-links.show {
		display: flex;
		animation: fadeMenu 0.2s;
	}
	.nav-links a {
		padding: 16px 24px 12px 12px;
		width: 80%;
		border-bottom: 1px solid #eee;
		font-size: 1.08em;
	}
	.hamburguesa {
		display: flex;
	}
}
@keyframes fadeMenu {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Botón animado principal */
.boton-principal-anima {
	margin: 1.3em auto 0 auto;
	display: inline-block;
	background: linear-gradient(90deg, #c04090 30%, #f98fd3 100%);
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 1.13em;
	font-weight: bold;
	padding: 1em 2.2em;
	cursor: pointer;
	box-shadow: 0 4px 24px #c0409040;
	transition: transform 0.13s, box-shadow 0.18s, background 0.3s;
	position: relative;
	overflow: hidden;
	letter-spacing: 0.01em;
	animation: rebotar 1.1s infinite alternate
		cubic-bezier(0.62, 0.11, 0.49, 0.89);
}

@keyframes rebotar {
	from {
		transform: translateY(0);
		box-shadow: 0 4px 24px #c0409040;
	}
	to {
		transform: translateY(-5px) scale(1.03);
		box-shadow: 0 8px 32px #e8a1d9a0;
	}
}

.boton-principal-anima:active {
	transform: scale(0.97);
	background: linear-gradient(90deg, #a03276 30%, #d87bb2 100%);
}

@media (max-width: 700px) {
	#modal-registro .modal-content,
	#perfil-modal .modal-content {
		max-height: 88vh;
		overflow-y: auto;
	}
}

.outfit-box {
	margin-top: 2.3rem !important; /* más separación arriba */
	margin-bottom: 2.3rem !important; /* más separación abajo */
	padding: 2.4rem 1.1rem 2.4rem 1.1rem !important;
	max-width: 440px;
	box-shadow: 0 4px 32px #c0409040;
	border-radius: 22px;
}

.outfit-box h2 {
	margin-top: 0.5em;
	margin-bottom: 1.3em;
	color: #c04090;
	font-size: 1.55em;
	font-weight: bold;
	letter-spacing: 0.01em;
}

.outfit-box label {
	margin-top: 1.1em;
	margin-bottom: 0.45em;
	font-size: 1.07em;
	font-weight: bold;
	display: block;
	text-align: left;
}

.outfit-box input[type='file'],
.outfit-box select {
	width: 95%;
	padding: 12px 10px;
	font-size: 1.09em;
	border-radius: 9px;
	border: 1px solid #c0409055;
	margin-bottom: 1.1em;
	background: #faf6fa;
}

.outfit-box input[type='file'] {
	padding: 11px 6px;
	font-size: 1em;
}

#previewLook {
	display: block;
	margin: 0.8em auto 1.2em auto;
	max-width: 120px;
}

.outfit-box button {
	width: 100%;
	margin-top: 18px;
	background: #c04090;
	color: white;
	font-weight: bold;
	font-size: 1.16em;
	padding: 13px 0;
	border: none;
	border-radius: 8px;
	box-shadow: 0 2px 14px #c0409022;
}

@media (max-width: 700px) {
	.outfit-box {
		margin-top: 1.1rem !important;
		margin-bottom: 1.5rem !important;
		padding: 1.1rem 0.3rem 1.5rem 0.3rem !important;
		max-width: 99vw;
		border-radius: 15px;
	}
	.outfit-box h2 {
		font-size: 1.28em;
		margin-bottom: 1em;
	}
}

/* --- CHAT EVOLUTIVO chic.mx --- */
.zona-chat {
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 2px 24px #c0409030;
	padding: 1.5rem 1.2rem 1.3rem 1.2rem;
	max-width: 440px;
	width: 97vw;
	margin: 1.6rem auto 1.5rem auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.05em;
}

.chat-box {
	background: #fcf4fa;
	border-radius: 18px;
	min-height: 130px;
	max-height: 320px;
	padding: 15px 10px;
	box-shadow: 0 2px 18px #c0409025;
	display: flex;
	flex-direction: column-reverse;
	gap: 13px;
	overflow-y: auto;
	font-size: 1.05em;
}

/* Burbujas de chat */
.burbuja-ia {
	background: linear-gradient(90deg, #f8d8f3 50%, #f3c7ea 100%);
	color: #711d54;
	align-self: flex-start;
	border-radius: 18px 18px 18px 6px;
	padding: 9px 13px;
	max-width: 82%;
	box-shadow: 0 2px 9px #eebaf440;
	word-break: break-word;
}
.burbuja-user {
	background: #c04090;
	color: #fff;
	align-self: flex-end;
	border-radius: 18px 18px 6px 18px;
	padding: 9px 13px;
	max-width: 82%;
	box-shadow: 0 2px 9px #c0409030;
	word-break: break-word;
}

/* Input de mensaje */
.input-chat-container {
	display: flex;
	gap: 8px;
	margin: 10px 0 5px 0;
}
.input-chat-container input[type='text'] {
	flex: 1;
	padding: 10px;
	font-size: 1em;
	border: 1px solid #c0409055;
	border-radius: 8px;
	background: #faf6fa;
	outline: none;
}
.input-chat-container button {
	padding: 10px 20px;
	background: #c04090;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.2s;
}
.input-chat-container button:hover {
	background: #a03276;
}

/* Botones de acciones */
#btnNuevaVersionLook,
#btnFinalizarOutfit {
	width: 100%;
	font-size: 1.07em;
	font-weight: bold;
	padding: 12px 0;
	border: none;
	border-radius: 10px;
	margin-bottom: 0.85em;
	box-shadow: 0 1px 8px #c0409021;
	cursor: pointer;
	background: #c04090;
	color: #fff;
	transition: background 0.2s;
}
#btnNuevaVersionLook:hover {
	background: #a03276;
}
.boton-finalizar,
#btnFinalizarOutfit {
	background: #23b95a !important;
	color: #fff;
	margin-bottom: 0;
	margin-top: 1.1em;
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: 0.03em;
	border: 0;
	box-shadow: 0 1px 14px #23b95a30;
	border-radius: 15px;
	padding: 15px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.2s, transform 0.2s;
}
.boton-finalizar:hover,
#btnFinalizarOutfit:hover {
	background: #158941 !important;
	transform: scale(1.03);
}

/* Miniaturas (stripLooks) */
.strip-looks {
	display: flex;
	gap: 7px;
	margin-top: 4px;
	margin-bottom: 0.5em;
	justify-content: center;
	align-items: flex-end;
	min-height: 58px;
}
.strip-looks img {
	width: 38px;
	height: 55px;
	border-radius: 7px;
	border: 1px solid #ddd;
	object-fit: cover;
	box-shadow: 0 1px 4px #c0409012;
}

/* Modal de confirmación */
.modal-confirmar {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	min-height: 100vh;
	z-index: 1200;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.32);
}
.modal-confirmar .modal-content {
	background: #fff;
	border-radius: 18px;
	padding: 24px 18px 20px 18px;
	box-shadow: 0 8px 32px #c0409080;
	max-width: 95vw;
	animation: modalPop 0.3s;
	text-align: center;
}
@keyframes modalPop {
	from {
		transform: scale(0.88);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
.modal-confirmar h3 {
	color: #c04090;
	margin-bottom: 0.9em;
}
.modal-confirmar button {
	width: 45%;
	padding: 13px 0;
	margin-top: 14px;
	font-weight: bold;
	border-radius: 8px;
	font-size: 1.08em;
	border: none;
	cursor: pointer;
	background: #c04090;
	color: #fff;
	transition: background 0.2s;
}
.modal-confirmar button:hover {
	background: #a03276;
}

/* Responsive */
@media (max-width: 700px) {
	.zona-chat {
		max-width: 99vw;
		padding: 1.1rem 0.3rem 1.5rem 0.3rem !important;
		border-radius: 15px;
	}
	.chat-box {
		max-height: 250px;
		min-height: 90px;
		font-size: 1em;
	}
}

.modal {
	position: fixed;
	z-index: 1002;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(44, 30, 40, 0.13);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.23s;
}

.modal-content {
	background: #fff;
	padding: 2.1em 1.5em 1.3em 1.5em;
	border-radius: 14px;
	box-shadow: 0 4px 22px 0 rgba(80, 50, 70, 0.14);
	width: 100%;
	max-width: 370px;
}

#modal-login input {
	width: 100%;
	margin-bottom: 14px;
	padding: 9px 10px;
	border: 1px solid #dedede;
	border-radius: 7px;
	font-size: 1em;
}

#modal-login label {
	margin-top: 6px;
	margin-bottom: 3px;
	display: block;
}

#modal-login button {
	background: #c04090;
	color: #fff;
	border: none;
	padding: 0.7em 0;
	border-radius: 9px;
	width: 100%;
	margin-top: 10px;
	cursor: pointer;
	font-size: 1.07em;
	font-weight: 500;
	transition: background 0.17s;
}

#modal-login button:hover {
	background: #9a226f;
}

/* ---- LANDING CHIC ---- */
.landing-chic {
	min-height: 100vh;
	width: 100vw;
	position: fixed;
	top: 0;
	left: 0;
	background: linear-gradient(120deg, #fff1fa 0%, #f3e3ef 55%, #f0a6ce 100%);
	z-index: 2005;
	display: flex;
	align-items: center;
	justify-content: center;
}
.landing-hero {
	position: relative;
	width: 100vw;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.landing-overlay {
	position: absolute;
	inset: 0;
	background: url('https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=800&q=80')
		center/cover no-repeat;
	opacity: 0.18;
	z-index: 1;
}
.landing-content {
	position: relative;
	z-index: 2;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 22px;
	box-shadow: 0 6px 48px #c0409030;
	padding: 2.4em 2.1em 2em 2.1em;
	max-width: 370px;
	text-align: center;
}
.landing-logo {
	font-family: 'Georgia', 'Arial', sans-serif;
	font-size: 2.5em;
	color: #c04090;
	font-weight: bold;
	margin-bottom: 0.15em;
	letter-spacing: 0.03em;
}
.landing-logo span {
	color: #7a2256;
}
.landing-tagline {
	font-size: 1.17em;
	font-weight: 500;
	color: #6d2953;
	margin: 0.1em 0 1em 0;
}
.landing-bullets {
	color: #a03276;
	font-size: 1em;
	margin-bottom: 2em;
	font-weight: 400;
}
.landing-buttons {
	display: flex;
	flex-direction: column;
	gap: 1em;
}
.landing-buttons button {
	font-size: 1.09em;
	font-weight: bold;
	border-radius: 50px;
	padding: 1em 0.7em;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 14px #c0409030;
	transition: background 0.18s, transform 0.15s;
}
.btn-login {
	background: #fff;
	color: #c04090;
	border: 2px solid #c04090;
}
.btn-login:hover {
	background: #f3e3ef;
	color: #7a2256;
}
.btn-registro {
	background: linear-gradient(90deg, #c04090 40%, #f98fd3 100%);
	color: #fff;
	margin-top: 0.2em;
}
.btn-registro:hover {
	background: linear-gradient(90deg, #7a2256 40%, #c04090 100%);
}
@media (max-width: 540px) {
	.landing-content {
		max-width: 97vw;
		padding: 1.2em 0.3em;
	}
	.landing-logo {
		font-size: 2em;
	}
}

.verifica-hero {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	min-height: 100vh;
	background: linear-gradient(120deg, #fff1fa 0%, #f3e3ef 55%, #f0a6ce 100%);
	z-index: 2100;
	display: flex;
	align-items: center;
	justify-content: center;
}
.verifica-content {
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 6px 48px #c0409030;
	padding: 2.7em 2em 2.3em 2em;
	text-align: center;
	max-width: 370px;
	animation: modalPop 0.7s;
}
.verifica-icon {
	font-size: 2.6em;
	margin-bottom: 0.3em;
	color: #c04090;
}
.verifica-content h2 {
	color: #c04090;
	margin-bottom: 0.7em;
	font-size: 1.25em;
}
.verifica-content button.btn-login {
	background: #c04090;
	color: #fff;
	border-radius: 50px;
	font-size: 1.09em;
	font-weight: bold;
	padding: 0.8em 2em;
	margin-top: 1em;
	border: none;
	box-shadow: 0 2px 14px #c0409030;
	cursor: pointer;
	transition: background 0.18s, transform 0.15s;
}
.verifica-content button.btn-login:hover {
	background: #7a2256;
}

#cargandoOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(220, 199, 230, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3000;
}
.cargando-contenido {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2em;
}
.spinner {
	width: 62px;
	height: 62px;
	border: 8px solid #fff;
	border-top: 8px solid #c04090;
	border-radius: 50%;
	animation: spin 1.1s linear infinite;
	margin-bottom: 8px;
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
.mensaje-cargando {
	color: #7a2256;
	font-weight: 600;
	font-size: 1.17em;
	text-align: center;
	max-width: 300px;
}

.btn-idioma-landing {
	background: #fff;
	border: 2px solid #c04090;
	color: #c04090;
	border-radius: 13px;
	padding: 2px 10px;
	font-weight: 600;
	font-size: 0.95em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	box-shadow: 1px 1px 8px #0001;
	width: 100%;
	max-width: 260px; /* igual que el botón rosa */
	min-width: 180px;
	margin: 0 auto;
	display: block;
}
.btn-idioma-landing:hover {
	background: #c04090;
	color: #fff;
}
.btnIdioma {
	background: none;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	margin-left: 1rem;
	color: #c04090;
}

.overlay-cargando {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	z-index: 9999;
	text-align: center;
	padding: 1rem;
}
.overlay-cargando .mensaje-cargando {
	font-weight: 600;
	line-height: 1.4;
}

#perfil-ciudad[data-city-ok=''] {
	outline: 2px solid #e12a5a;
}
#perfil-ciudad[data-city-ok='1'] {
	outline: 2px solid #5cb85c;
}

/* Chip de clima */
.clima-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #c0409033;
	border-radius: 999px;
	padding: 6px 12px;
	margin: 8px 0 4px 0;
	font-size: 0.95em;
	color: #711d54;
	box-shadow: 0 1px 10px #c0409018;
}
.clima-chip .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c04090;
}
@media (max-width: 700px) {
	.clima-chip {
		font-size: 0.92em;
	}
}
/* Hint del contador de palabras del contexto */
.input-hint {
	display: block;
	margin: 2px 0 10px 0;
	font-size: 0.85em;
	color: #666;
}
/* Input de contexto dentro del outfit: igual que los selects */
.outfit-box input[type='text'] {
	width: 95%;
	padding: 12px 10px;
	font-size: 1.09em;
	border-radius: 9px;
	border: 1px solid #c0409055;
	margin-bottom: 0.4em;
	background: #faf6fa;
}
/* Campo de texto coherente con el resto */
.input-chic {
	width: 100%;
	display: block;
	padding: 10px 12px;
	border: 1px solid #d6c2d8;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.2;
	background: #fff;
}
.input-chic::placeholder {
	color: #9a8da0;
	opacity: 0.9;
}
.input-hint {
	display: block;
	margin: 2px 0 10px;
	font-size: 0.86rem;
	color: #7a6a79;
	text-align: right;
}

/* === Enciclopedia de Estilos (Core 15) === */
.seccion-estilos {
	padding: 8px 10px;
}
.estilos-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.estilo-card {
	border: 1px solid var(--gris-borde);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.estilo-thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.estilo-meta {
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.estilo-meta h3 {
	margin: 0;
	font-size: 1.02rem;
}
.estilo-tagline {
	margin: 0;
	opacity: 0.8;
	font-size: 0.95rem;
}
.btn-ver-mas {
	align-self: flex-start;
	cursor: pointer;
	border: 1px solid var(--rosa-chic);
	background: transparent;
	color: var(--rosa-chic);
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.92rem;
}
.btn-ver-mas:hover {
	background: var(--rosa-chic);
	color: #fff;
}
#btnVerMasEstilo {
	margin-top: 6px;
} /* botón junto al select */

.estilo-detalle {
	margin-top: 16px;
	border: 1px solid var(--gris-borde);
	border-radius: 12px;
	background: #fff;
	padding: 12px;
}
.estilo-hero {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.estilo-hero img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 8px;
}
.estilo-cols {
	display: grid;
	gap: 16px;
	grid-template-columns: 2fr 1.2fr;
	margin-top: 12px;
}
.estilo-list {
	margin: 6px 0 12px;
	padding-left: 18px;
}
.estilo-paleta span {
	display: inline-block;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	border: 1px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
	margin-right: 6px;
}
.estilo-det-actions {
	margin-top: 8px;
}
.btn-sec {
	border: 1px solid var(--gris-borde);
	background: transparent;
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
}

@media (max-width: 760px) {
	.estilo-cols {
		grid-template-columns: 1fr;
	}
}
/* Centrado del botón "Ver más..." bajo el selector de estilo */
#btnVerMasEstilo.btn-ver-mas {
	display: flex; /* convierte el botón en contenedor flex  */
	justify-content: center; /* centra horizontalmente                 */
	align-items: center; /* centra verticalmente                    */
	text-align: center; /* fallback                                */
}
#btnVerMasEstilo.btn-ver-mas {
	width: auto;
	min-width: 70%;
	margin-left: auto;
	margin-right: auto;
	font-size: 1rem;
}

/* Modal Estilo (dimensiones amplias) */
#modalEstilo .modal-content {
	max-width: 980px;
	width: 96%;
	max-height: 90vh;
	overflow: auto;
}
#modalEstilo .modal-header button {
	background: transparent;
	border: 1px solid var(--gris-borde);
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
}
#modalEstilo .modal-header button:hover {
	background: #f6f6f6;
}

/* === Ficha de Estilo: Bio + Intro === */
.estilo-intro {
	display: grid;
	gap: 16px;
	margin: 8px 0 16px;
}

.estilo-intro .bio {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 12px;
}

.bio-portrait {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.estilo-intro h4 {
	margin: 0 0 6px 0;
	font-size: 0.95rem;
}

.estilo-intro p {
	margin: 0;
	line-height: 1.45;
}

/* 2 columnas en pantallas medias+ */
@media (min-width: 720px) {
	.estilo-intro {
		grid-template-columns: 1fr 1fr;
	}
	.estilo-intro .style-intro {
		align-self: start;
	}
}

/* ===========================
   USER BADGE (header) – chic.mx
   =========================== */
:root {
	--user-badge-maxw-xs: 64vw; /* móvil */
	--user-badge-maxw-sm: 48vw; /* ≥480px */
	--user-badge-maxw-md: 32vw; /* ≥768px */
	--user-avatar: 28px; /* ⬅ ahora sí existe */
}

header .user-badge {
	margin-left: auto; /* empuja hacia la derecha */
}

.user-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	max-width: var(--user-badge-maxw-xs);
	padding: 0.3rem 0.55rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.05);
	cursor: pointer;
	user-select: none;
}

.user-badge:focus-visible {
	outline: 2px solid var(--rosa-chic);
	outline-offset: 3px;
}

.user-badge__avatar {
	width: var(--user-avatar);
	height: var(--user-avatar);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: 700 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
	background: #f3e1ff;
	color: #7a1bb7;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-badge__name {
	font: 600 14px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis; /* ⟵ evita cortes feos */
	max-width: calc(var(--user-badge-maxw-xs) - (var(--user-avatar) + 24px));
}

/* Anchos mayores: permite un poco más de texto */
@media (min-width: 480px) {
	.user-badge {
		max-width: var(--user-badge-maxw-sm);
	}
	.user-badge__name {
		max-width: calc(
			var(--user-badge-maxw-sm) - (var(--user-avatar) + 24px)
		);
	}
}
@media (min-width: 768px) {
	.user-badge {
		max-width: var(--user-badge-maxw-md);
	}
	.user-badge__name {
		max-width: calc(
			var(--user-badge-maxw-md) - (var(--user-avatar) + 24px)
		);
	}
}

header #saludoHeader {
	display: none;
}

/* ====== Evento UI (input + chips) ====== */
.evento-ui {
	margin: 6px 0 12px;
}
.evento-ui input[type='text'] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--gris-borde, #ddd);
	border-radius: 8px;
}
