/* Simulador de Baldosas — estilos intencionadamente sencillos para que
   puedas adaptarlos a la identidad visual de la web sin tocar el resto. */

.bhs-app { max-width: 720px; margin: 0 auto; font-family: inherit; }

/* Algunos temas (Divi entre ellos) redefinen display en elementos genéricos
   y anulan el atributo [hidden]. Lo reforzamos dentro de nuestro ámbito. */
.bhs-app [hidden] { display: none !important; }

.bhs-loading { text-align: center; padding: 40px 0; color: #777; }
.bhs-loading.is-error { color: #b00020; font-weight: 600; }

.bhs-step { margin-bottom: 32px; }
.bhs-step h3 { margin-bottom: 12px; font-size: 1.1em; }

.bhs-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Campo trampa anti-bots: fuera de la vista pero sin display:none, que
   algunos bots detectan. */
.bhs-hp {
	position: absolute !important; left: -9999px; top: auto;
	width: 1px; height: 1px; overflow: hidden;
}

.bhs-progress {
	display: flex; gap: 8px; justify-content: center; margin: 0 0 28px;
	padding: 0; list-style: none;
}
.bhs-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.bhs-dot.is-active { background: #222; }
.bhs-dot.is-skipped { display: none; }

.bhs-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.bhs-prev, .bhs-next {
	padding: 12px 22px; background: #fff; color: #222; border: 1px solid #222;
	border-radius: 4px; font-size: 1em; cursor: pointer; line-height: 1.2;
}
.bhs-next, .bhs-submit { margin-left: auto; }
.bhs-prev:disabled, .bhs-next:disabled, .bhs-submit:disabled { opacity: 0.6; cursor: default; }

.bhs-submit {
	padding: 14px 28px; background: #222; color: #fff; border: 1px solid #222;
	border-radius: 4px; font-size: 1em; cursor: pointer; line-height: 1.2;
}
.bhs-next { background: #222; color: #fff; }

.bhs-step-error { color: #b00020; font-weight: 600; margin-top: 10px; min-height: 1.2em; }
.bhs-step-error:empty { margin-top: 0; min-height: 0; }

.bhs-form label { display: block; margin-bottom: 14px; font-weight: 600; }
.bhs-form label.bhs-inline { display: flex; align-items: flex-start; gap: 8px; font-weight: normal; }
.bhs-form label.bhs-inline input { margin-top: 3px; flex: 0 0 auto; }

.bhs-fieldset { border: 0; padding: 0; margin: 0 0 14px; }

.bhs-consent { font-weight: 600; margin-top: 18px; }
.bhs-consent a { text-decoration: underline; }

.bhs-form input[type="text"],
.bhs-form input[type="email"],
.bhs-form input[type="tel"],
.bhs-form textarea {
	display: block; width: 100%; margin-top: 4px; padding: 10px;
	border: 1px solid #ccc; border-radius: 4px; font-weight: normal;
}
.bhs-form input[type="file"] { max-width: 100%; }

.bhs-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bhs-tab-btn {
	padding: 10px 18px; border: 1px solid #ccc; background: #fff;
	border-radius: 999px; cursor: pointer; font-weight: 600;
}
.bhs-tab-btn.is-active { background: #222; color: #fff; border-color: #222; }

.bhs-products-grid, .bhs-variations-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 14px;
}

/* Las tarjetas son <button> para que funcionen con teclado y lectores de
   pantalla; aquí les quitamos la apariencia nativa de botón. */
.bhs-card {
	appearance: none; -webkit-appearance: none;
	font: inherit; color: inherit; text-align: center;
	cursor: pointer; border: 2px solid transparent; border-radius: 8px;
	overflow: hidden; padding: 0 0 8px; background: #fafafa; width: 100%;
}
.bhs-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.bhs-card span { display: block; font-size: 0.85em; margin-top: 6px; padding: 0 6px; }
.bhs-card.is-selected { border-color: #222; }

/* Indicador de foco visible y consistente en todos los controles. */
.bhs-app :focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

.bhs-photo-preview img { max-width: 220px; height: auto; border-radius: 8px; margin-top: 10px; display: block; }
.bhs-help { font-size: 0.85em; color: #777; font-weight: normal; margin-top: 6px; }

.bhs-form-message { margin-top: 14px; font-weight: 600; }
.bhs-form-message:empty { margin-top: 0; }
.bhs-form-message.is-error { color: #b00020; }
.bhs-form-message.is-success { color: #1b7e34; }

.bhs-noscript { color: #b00020; font-weight: 600; text-align: center; padding: 20px 0; }

@media (max-width: 480px) {
	.bhs-nav { flex-wrap: wrap; }
	.bhs-prev, .bhs-next, .bhs-submit { flex: 1 1 auto; }
	.bhs-products-grid, .bhs-variations-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhs-app * { scroll-behavior: auto !important; }
}
