/**
 * Loiacono Compartir - estilos del frente.
 */

.lcomp-share {
	--lcomp-radius: 10px;
	--lcomp-wa: #25d366;
	--lcomp-wa-dark: #1da851;
	--lcomp-fb: #1877f2;
	--lcomp-fb-dark: #0f5fd0;
	--lcomp-ink: #2b3134;
	--lcomp-muted: #6b7477;
	--lcomp-line: #e3e6e7;

	box-sizing: border-box;
	margin: 22px 0 24px;
	padding: 15px 17px 13px;
	border: 1px solid var(--lcomp-line);
	border-radius: var(--lcomp-radius);
	background: #fafbfb;
	clear: both;
}

.lcomp-share--direct {
	margin-bottom: 18px;
}

.lcomp-share *,
.lcomp-share *::before,
.lcomp-share *::after {
	box-sizing: border-box;
}

.lcomp-share__title {
	margin: 0 0 11px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--lcomp-ink);
}

.lcomp-share__title::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 14px;
	margin-right: 9px;
	border-radius: 2px;
	background: var(--lcomp-accent, #dd3333);
	vertical-align: -2px;
}

.lcomp-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Botones ------------------------------------------------------------- */

.lcomp-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 8px 13px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: #fff;
	box-shadow: none;
	color: var(--lcomp-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.lcomp-btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lcomp-btn:active {
	transform: translateY(0);
}

.lcomp-btn:focus-visible {
	outline: 3px solid rgba(0, 0, 0, 0.35);
	outline-offset: 2px;
}

.lcomp-btn[hidden] {
	display: none;
}

.lcomp-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: currentColor;
}

/* Estilo pleno */

.lcomp-style--solid .lcomp-btn--whatsapp {
	background: var(--lcomp-wa);
	color: #fff;
}

.lcomp-style--solid .lcomp-btn--whatsapp:hover {
	background: var(--lcomp-wa-dark);
}

.lcomp-style--solid .lcomp-btn--instagram {
	background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
	color: #fff;
}

.lcomp-style--solid .lcomp-btn--facebook {
	background: var(--lcomp-fb);
	color: #fff;
}

.lcomp-style--solid .lcomp-btn--facebook:hover {
	background: var(--lcomp-fb-dark);
}

.lcomp-style--solid .lcomp-btn--copy,
.lcomp-style--solid .lcomp-btn--native,
.lcomp-style--solid .lcomp-btn--email {
	background: #fff;
	border-color: var(--lcomp-line);
	color: var(--lcomp-ink);
}

.lcomp-style--solid .lcomp-btn--copy:hover,
.lcomp-style--solid .lcomp-btn--native:hover,
.lcomp-style--solid .lcomp-btn--email:hover {
	border-color: #c9cfd1;
}

/* Estilo contorno */

.lcomp-style--outline .lcomp-btn {
	background: #fff;
	border-color: var(--lcomp-line);
}

.lcomp-style--outline .lcomp-btn--whatsapp {
	color: var(--lcomp-wa-dark);
	border-color: rgba(37, 211, 102, 0.55);
}

.lcomp-style--outline .lcomp-btn--instagram {
	color: #d62976;
	border-color: rgba(214, 41, 118, 0.45);
}

.lcomp-style--outline .lcomp-btn--facebook {
	color: var(--lcomp-fb);
	border-color: rgba(24, 119, 242, 0.45);
}

/* Íconos dentro de la barra de datos del tema ------------------------- */

.lcomp-share--icons {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	background: none;
}

.lcomp-share--icons .lcomp-share__inquiry {
	margin-top: 16px;
	padding-top: 0;
	border-top: 0;
}

/* Contenedor que el navegador mueve adentro de la barra amarilla. */
.lcomp-meta-host {
	position: relative;
	min-height: 44px;
}

.lcomp-icons {
	display: flex;
	align-items: center;
	gap: 7px;
}

.lcomp-meta-host .lcomp-icons {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	z-index: 3;
}

.lcomp-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	color: #394041;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease;
}

.lcomp-ico:hover,
.lcomp-ico:focus {
	transform: scale(1.08);
	text-decoration: none;
}

.lcomp-ico:focus-visible {
	outline: 3px solid rgba(0, 0, 0, 0.45);
	outline-offset: 2px;
}

.lcomp-ico[hidden] {
	display: none;
}

.lcomp-ico .lcomp-icon {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
}

.lcomp-ico--whatsapp {
	background: #25d366;
	color: #fff;
}

.lcomp-ico--whatsapp:hover {
	background: #1da851;
	color: #fff;
}

.lcomp-ico--instagram {
	background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
	color: #fff;
}

.lcomp-ico--instagram:hover {
	color: #fff;
}

.lcomp-ico--facebook {
	background: #1877f2;
	color: #fff;
}

.lcomp-ico--facebook:hover {
	background: #0f5fd0;
	color: #fff;
}

.lcomp-ico--panel.is-open {
	background: var(--lcomp-accent, #dd3333);
	color: #fff;
}

/* Panel del envío a un número, debajo de la barra amarilla. */
.lcomp-panel {
	margin-top: 14px;
	padding: 16px 18px;
	border: 1px solid #e3e6e7;
	border-radius: 10px;
	background: #fafbfb;
}

.lcomp-panel[hidden] {
	display: none;
}

.lcomp-panel .lcomp-direct {
	margin: 0;
	padding: 0;
	border: 0;
}

@media (max-width: 767px) {
	/* La barra amarilla se parte en filas de ancho completo: los íconos van
	   en una fila propia, alineados a la derecha. */
	.lcomp-meta-host .lcomp-icons {
		position: static;
		transform: none;
		justify-content: flex-end;
		padding: 8px 12px;
		border-top: 1px solid rgba(57, 64, 65, 0.18);
	}
}

/* Enviar a un número puntual (uso interno) */

.lcomp-direct {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--lcomp-line);
}

/* Cuando va solo, arriba del aviso, no necesita la línea de separación. */
.lcomp-share--direct .lcomp-direct {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.lcomp-direct__label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--lcomp-muted);
}

.lcomp-direct__row {
	display: flex;
	gap: 8px;
}

.lcomp-direct__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--lcomp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--lcomp-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.2;
	box-shadow: none;
}

.lcomp-direct__input:focus {
	border-color: var(--lcomp-wa);
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.lcomp-direct__send {
	flex: 0 0 auto;
	padding: 10px 20px;
}

.lcomp-direct__send[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.lcomp-direct__hint {
	margin: 8px 0 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--lcomp-muted);
}

.lcomp-direct__hint.is-ready {
	font-weight: 700;
	color: var(--lcomp-wa-dark);
}

/* Consulta directa */

.lcomp-share__inquiry {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--lcomp-line);
}

.lcomp-btn--inquiry {
	width: 100%;
	justify-content: center;
	padding: 11px 16px;
	background: var(--lcomp-wa);
	color: #fff;
	font-size: 14px;
}

.lcomp-btn--inquiry .lcomp-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.lcomp-btn--inquiry:hover {
	background: var(--lcomp-wa-dark);
}

.lcomp-share__feedback {
	margin: 10px 0 0;
	min-height: 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--lcomp-wa-dark);
}

.lcomp-share__feedback.is-error {
	color: #c0392b;
}

/* Tarjetas del listado ------------------------------------------------- */

.lcomp-card-share {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	display: inline-flex;
	gap: 6px;
}

.lcomp-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	color: #2b3134;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.lcomp-card-btn:hover {
	background: #25d366;
	color: #fff;
	transform: scale(1.06);
}

.lcomp-card-btn .lcomp-icon {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
}

.lcomp-card-btn.is-copy:hover {
	background: var(--lcomp-accent, #dd3333);
}

.lcomp-card-host {
	position: relative;
}

.lcomp-card-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 100000;
	padding: 11px 20px;
	border-radius: 999px;
	background: rgba(20, 24, 26, 0.94);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transform: translate(-50%, 12px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.lcomp-card-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Barra fija en celulares --------------------------------------------- */

.lcomp-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: none;
	gap: 8px;
	padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.14);
	backdrop-filter: saturate(140%) blur(6px);
}

.lcomp-sticky__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 auto;
	min-height: 46px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: #25d366;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.lcomp-sticky__btn:hover,
.lcomp-sticky__btn:focus {
	color: #fff;
	text-decoration: none;
}

.lcomp-sticky__btn--ig {
	flex: 0 0 52px;
	background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
}

.lcomp-sticky__btn--ask {
	flex: 0 0 auto;
	background: var(--lcomp-accent, #dd3333);
}

.lcomp-sticky__btn .lcomp-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

@media (max-width: 767px) {
	.lcomp-sticky[data-lcomp-sticky] {
		display: flex;
	}

	body.lcomp-has-sticky {
		padding-bottom: 68px;
	}

	.lcomp-share {
		padding: 16px 14px 14px;
	}

	.lcomp-share__buttons .lcomp-btn {
		flex: 1 1 calc(50% - 4px);
		justify-content: center;
	}
}

/* Ventana de Instagram ------------------------------------------------ */

.lcomp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lcomp-modal[hidden] {
	display: none;
}

.lcomp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 15, 17, 0.72);
}

.lcomp-modal__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 26px 26px 22px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	text-align: center;
}

.lcomp-modal__x {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: #7a8285;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.lcomp-modal__x:hover {
	color: #22282a;
}

.lcomp-modal__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: #2b3134;
}

.lcomp-modal__intro {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.45;
	color: #6b7477;
}

.lcomp-modal__formats {
	display: inline-flex;
	margin-bottom: 16px;
	padding: 4px;
	border-radius: 999px;
	background: #f0f2f3;
}

.lcomp-modal__formats button {
	padding: 7px 16px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: #6b7477;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.lcomp-modal__formats button.is-active {
	background: #fff;
	color: #2b3134;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.lcomp-modal__preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	margin-bottom: 18px;
	padding: 12px;
	border-radius: 10px;
	background: #f0f2f3;
}

.lcomp-modal__preview canvas {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 46vh;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.lcomp-modal__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f0f2f3;
	color: #6b7477;
	font-size: 14px;
	font-weight: 600;
}

.lcomp-modal__loading[hidden] {
	display: none;
}

.lcomp-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.lcomp-modal__actions .lcomp-btn {
	justify-content: center;
}

.lcomp-modal__actions .lcomp-btn--instagram {
	grid-column: 1 / -1;
	padding: 13px 16px;
	background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
	color: #fff;
	font-size: 15px;
}

.lcomp-btn--dark {
	background: #2b3134;
	color: #fff;
}

.lcomp-btn--dark:hover {
	background: #1a1f21;
}

.lcomp-btn--ghost {
	background: #fff;
	border-color: #e3e6e7;
	color: #2b3134;
}

.lcomp-btn--ghost:hover {
	border-color: #c9cfd1;
}

.lcomp-modal__feedback {
	margin: 12px 0 0;
	min-height: 18px;
	font-size: 13px;
	font-weight: 600;
	color: #1da851;
}

.lcomp-modal__feedback.is-error {
	color: #c0392b;
}

@media (max-width: 480px) {
	.lcomp-modal__box {
		padding: 22px 16px 18px;
	}

	.lcomp-modal__actions {
		grid-template-columns: 1fr;
	}
}
