/**
 * Latin Body – Asistente de Talla (estilos)
 * ───────────────────────────────────────────
 * Mobile first. Todos los estilos van con prefijo .lba- para no
 * chocar con Elementor ni el tema.
 *
 * MARCA: cambia los colores aquí arriba (variables CSS) para
 * ajustarlos 1:1 a la identidad de Latin Body.
 */
.lba-widget {
	--lba-vino: #7a1e3c;        /* Berry profundo: premium y femenino  */
	--lba-fucsia: #d6336c;      /* Acento latino, botones y CTAs        */
	--lba-crema: #fdf8f5;       /* Fondo suave                          */
	--lba-carbon: #2b2226;      /* Texto principal                      */
	--lba-oro: #c9a15a;         /* Detalle dorado (eyebrow, bordes)     */

	max-width: 680px;
	margin: 0 auto;
	padding: 24px 18px 28px;
	background: var(--lba-crema);
	border: 1px solid #f0e2da;
	border-radius: 20px;
	color: var(--lba-carbon);
	font-family: inherit; /* Hereda la tipografía del tema/Elementor */
	box-shadow: 0 8px 30px rgba(122, 30, 60, 0.08);
}

/* ── Cabecera ── */
.lba-eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lba-oro);
	font-weight: 600;
}
.lba-title {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.2;
	color: var(--lba-vino);
}
.lba-sub { margin: 0 0 18px; font-size: 15px; opacity: 0.85; }

/* ── Barra de progreso "cinta métrica" (elemento firma) ── */
.lba-progress {
	height: 14px;
	border-radius: 8px;
	background:
		repeating-linear-gradient(90deg,
			transparent 0 9px,
			rgba(122, 30, 60, 0.35) 9px 10px),
		#f3e3db;
	overflow: hidden;
	position: relative;
}
.lba-progress-fill {
	height: 100%;
	width: 15%;
	background: linear-gradient(90deg, var(--lba-vino), var(--lba-fucsia));
	border-radius: 8px;
	transition: width 0.45s ease;
}
.lba-step-label {
	margin: 8px 0 18px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lba-vino);
	font-weight: 600;
}

/* ── Paso 1: tarjetas de objetivo ── */
.lba-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.lba-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 12px;
	background: #fff;
	border: 1.5px solid #f0dcd2;
	border-radius: 14px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
	font-family: inherit;
}
.lba-card:hover,
.lba-card:focus-visible {
	border-color: var(--lba-fucsia);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(214, 51, 108, 0.15);
	outline: none;
}
.lba-card-icon { font-size: 24px; }
.lba-card-name { font-weight: 700; font-size: 14px; color: var(--lba-vino); }
.lba-card-desc { font-size: 12px; opacity: 0.75; line-height: 1.35; }

/* ── Paso 2: campos ── */
.lba-hint { font-size: 14px; background: #fff; border-left: 3px solid var(--lba-oro); padding: 10px 12px; border-radius: 0 10px 10px 0; }
.lba-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 16px 0;
}
.lba-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--lba-vino); }
.lba-field-full { grid-column: 1 / -1; }
.lba-field input,
.lba-field textarea {
	padding: 12px 12px;
	border: 1.5px solid #eadcd4;
	border-radius: 10px;
	font-size: 16px; /* 16px evita el zoom automático en iPhone */
	font-family: inherit;
	background: #fff;
	color: var(--lba-carbon);
}
.lba-field input:focus,
.lba-field textarea:focus {
	outline: none;
	border-color: var(--lba-fucsia);
	box-shadow: 0 0 0 3px rgba(214, 51, 108, 0.12);
}

/* ── Botones ── */
.lba-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lba-btn {
	flex: 1;
	min-width: 150px;
	padding: 14px 18px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--lba-vino), var(--lba-fucsia));
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.lba-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(122, 30, 60, 0.25); }
.lba-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.lba-btn-ghost {
	background: transparent;
	color: var(--lba-vino);
	border: 1.5px solid var(--lba-vino);
}

/* ── Paso 3: resultado ── */
.lba-result {
	background: #fff;
	border: 1.5px solid var(--lba-oro);
	border-radius: 16px;
	padding: 20px 18px;
	text-align: center;
	margin-bottom: 20px;
}
.lba-result-label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lba-oro); font-weight: 700; }
.lba-result-size {
	margin: 4px 0 10px;
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(90deg, var(--lba-vino), var(--lba-fucsia));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lba-result-text { margin: 0; font-size: 14.5px; line-height: 1.55; text-align: left; }

.lba-h3 { font-size: 17px; color: var(--lba-vino); margin: 22px 0 10px; }

/* ── Productos recomendados ── */
.lba-products { display: grid; gap: 10px; }
.lba-product {
	display: block;
	background: #fff;
	border: 1.5px solid #f0dcd2;
	border-radius: 14px;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--lba-carbon);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.lba-product:hover { border-color: var(--lba-fucsia); box-shadow: 0 6px 16px rgba(214, 51, 108, 0.12); }
.lba-product-name { display: block; font-weight: 700; color: var(--lba-vino); margin-bottom: 3px; }
.lba-product-text { display: block; font-size: 13px; opacity: 0.8; line-height: 1.4; }
.lba-product-items { display: block; margin-top: 8px; }
.lba-item { display: block; font-size: 12.5px; padding: 3px 0; border-top: 1px dashed #eadcd4; }
.lba-product-cta { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--lba-fucsia); }

/* ── Formulario de asesoría ── */
.lba-form-box {
	margin-top: 24px;
	padding: 18px 16px;
	background: #fff;
	border-radius: 16px;
	border: 1.5px solid #f0dcd2;
}
.lba-whatsapp {
	display: block;
	margin-top: 12px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #1faa53;
	text-decoration: underline;
}

/* ── Mensajes ── */
.lba-error { color: #b3123e; font-size: 14px; font-weight: 600; }
.lba-success { color: #1a7a43; font-size: 14px; font-weight: 700; }

.lba-disclaimer {
	margin: 20px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	opacity: 0.65;
	border-top: 1px dashed #e8d5cb;
	padding-top: 12px;
}

/* ── Escritorio ── */
@media (min-width: 640px) {
	.lba-widget { padding: 32px 34px 34px; }
	.lba-title { font-size: 30px; }
	.lba-grid { grid-template-columns: 1fr 1fr 1fr; }
	.lba-fields { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Accesibilidad: menos movimiento ── */
@media (prefers-reduced-motion: reduce) {
	.lba-progress-fill, .lba-btn, .lba-card { transition: none; }
}

/* ─────────────────────────────────────────────
   v1.1 · Botón en producto + ventana emergente
   ───────────────────────────────────────────── */
.lba-trigger {
	display: block;
	width: 100%;
	margin: 12px 0 16px;
	padding: 14px 18px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(90deg, #7a1e3c, #d6336c);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.15s, box-shadow 0.2s;
	box-shadow: 0 4px 14px rgba(122, 30, 60, 0.25);
}
.lba-trigger:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(214, 51, 108, 0.35); color: #fff; }

.lba-modal {
	position: fixed;
	inset: 0;
	z-index: 999999; /* Por encima del header de Elementor y del botón de WhatsApp */
	overflow-y: auto;
	padding: 16px;
	-webkit-overflow-scrolling: touch;
}
.lba-modal[hidden] { display: none; }
.lba-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(43, 34, 38, 0.6);
	backdrop-filter: blur(2px);
}
.lba-modal-inner {
	position: relative;
	max-width: 680px;
	margin: 28px auto 40px;
	animation: lbaPop 0.25s ease;
}
@keyframes lbaPop {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}
.lba-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 50%;
	background: #7a1e3c;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
}
.lba-modal-close:hover { background: #d6336c; }

@media (prefers-reduced-motion: reduce) {
	.lba-modal-inner { animation: none; }
}


/* ─────────────────────────────────────────────
   v1.2 · Botón de producto: máxima legibilidad.
   El tema (Quicksand) sobrescribía color y grosor de la letra,
   por eso se fuerzan con !important. Frambuesa de marca + blanco.
   ───────────────────────────────────────────── */
button.lba-trigger,
.woocommerce button.lba-trigger,
.woocommerce div.product button.lba-trigger {
	background: #c2185b !important;
	background-image: none !important;
	color: #ffffff !important;
	border: none !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	letter-spacing: 0.01em;
	text-transform: none !important;
	border-radius: 999px !important;
	box-shadow: 0 4px 14px rgba(194, 24, 91, 0.30);
	opacity: 1 !important;
}
button.lba-trigger:hover,
.woocommerce button.lba-trigger:hover,
.woocommerce div.product button.lba-trigger:hover {
	background: #a01048 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
}
