@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
}
/* ==========================================================================
   FLOBER 2.0 — main.css
   UNICO CSS global propio del proyecto.

   Estructura:   TOKENS  ->  BASE  ->  COMPONENTES

   Reglas:
   - Ningun componente define colores, tamanos ni espacios propios.
     Todo sale de los tokens. Si falta un valor, se agrega al bloque
     TOKENS, no suelto en el componente.
   - Prohibido !important para pisar reglas anteriores. Si una regla no
     funciona, se corrige esa regla.
   - No crear otro CSS global. Las excepciones condicionales aprobadas
     reutilizan estos mismos tokens.

   El porque de cada decision esta en docs/decisions/. Aca solo el codigo.
   ========================================================================== */


/* ==========================================================================
   TOKENS — FUENTE UNICA DE VERDAD
   ========================================================================== */

:root {
  /* Una marca, su variante oscura, cinco neutros y oferta. */
  --flober-primary: #277A72;
  --flober-brand: var(--flober-primary);
  --flober-brand-light: #E8F4F2;
  --flober-text: #202322;
  --flober-text-muted: #4F5754;
  --flober-background: #EEF2EF;
  --flober-surface: #FFFFFF;
  --flober-border: #E2E1DC;
  --flober-control-border: #737A77;
  --flober-swatch-border: var(--flober-control-border);
  --flober-sale: #A83C2C;
  --flober-badge-graphite: #3A403E;
  --flober-badge-ochre: #9A6412;
  --flober-badge-ochre-soft: #FBF1D9;
  --flober-badge-ochre-soft-text: #8A5A12;
  --flober-sand: #F3E9D2;
	--flober-notice-background: var(--flober-brand-light);
	--flober-notice-border: var(--flober-border);
	--flober-notice-icon: var(--flober-primary);
	--flober-stock-background: var(--flober-sand);
  --flober-rating: #E0A100;
  --flober-rating-size-mobile: var(--flober-type-subtitle);
  --flober-rating-size-desktop: var(--flober-type-subtitle);
  --flober-instagram: #C13584;
  --flober-tiktok: #010101;
  --flober-facebook: #1877F2;
  --flober-youtube: #FF0000;

  --flober-font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --flober-font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --flober-weight-normal: 400;
  --flober-weight-medium: 500;
  --flober-weight-semibold: 600;

  /* Cinco niveles fijos; los alias semanticos evitan tamanos paralelos. */
  --flober-type-display: 1.75rem;
  --flober-type-title: 1.25rem;
  --flober-type-subtitle: 1.0625rem;
  --flober-type-text: 1rem;
  --flober-type-small: 0.875rem;
  --flober-type-micro: 0.75rem;
  --flober-type-page-title: var(--flober-type-title);
  --flober-type-product-title: var(--flober-type-title);
  --flober-type-section: var(--flober-type-title);
  --flober-type-highlight-price: 1.375rem;
  --flober-type-single-price: var(--flober-type-highlight-price);
  --flober-type-price: var(--flober-type-subtitle);
  --flober-type-disclosure: var(--flober-type-subtitle);
  --flober-type-card-title: var(--flober-type-text);
  --flober-type-card: var(--flober-type-text);
  --flober-type-body: var(--flober-type-text);
  --flober-type-control: var(--flober-type-text);
  --flober-type-compact-control: var(--flober-type-small);
  --flober-type-primary-button: var(--flober-type-text);
  --flober-type-menu: var(--flober-type-text);
  --flober-type-note: var(--flober-type-small);
	--flober-type-tax-free: var(--flober-type-micro);
	--flober-tax-free: #B8BDBA;
  --flober-leading-tight: 1.2;
  --flober-leading-base: 1.6;

  /* Escala unica: 4, 8, 12, 16, 24, 32 y 48px. */
  --flober-space-1: 0.25rem;
  --flober-space-2: 0.5rem;
  --flober-space-3: 0.75rem;
  --flober-space-4: 1rem;
  --flober-space-6: 1.5rem;
  --flober-space-8: 2rem;
  --flober-space-12: 3rem;
  --flober-section-space-mobile: var(--flober-space-12);
  --flober-section-space-desktop: var(--flober-space-12);

  --flober-control-min: 44px;
  --flober-control: 44px;
  --flober-compact-control-height: 40px;
  --flober-border-width: 1px;
  --flober-disabled-opacity: 0.45;
  --flober-product-ratio: 1 / 1;
  --flober-swatch-size: 36px;
  --flober-chat-head-height: 4.5rem;
  --flober-benefit-icon-mobile: 3.25rem;
  --flober-benefit-icon-desktop: 3.75rem;
  --flober-step-icon-size: 4rem;
  --flober-step-glyph-size: 2.375rem;
  --flober-berta-toggle-mobile: 52px;
  --flober-berta-toggle-desktop: 52px;
  --flober-header-icon-size: 22px;
  --flober-header-logo-height-mobile: 40px;
  --flober-header-logo-height-desktop: 48px;
  --flober-round-action-size: 40px;
  --flober-round-action-icon-size: 18px;
  --flober-variation-preview-size: 88px;
  --flober-cart-count-size: 1.125rem;
  --flober-cart-count-text-size: var(--flober-type-micro);
  --flober-berta-title-size: var(--flober-type-subtitle);
  --flober-berta-message-size: var(--flober-type-text);
  --flober-berta-avatar-size: 2.875rem;
  --flober-berta-action-height: 2.75rem;
  --flober-berta-action-gap: var(--flober-space-2);
  --flober-berta-thumb-size: 3.5rem;

  --flober-radius-label: 6px;
  --flober-radius-control: 10px;
  --flober-radius-card: 14px;
  --flober-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--flober-text) 12%, transparent);
  --flober-overlay: color-mix(in srgb, var(--flober-text) 48%, transparent);
  --flober-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --flober-container: 1560px;
  --flober-gutter: var(--flober-space-4);
  --theme-content-vertical-spacing: var(--flober-space-12);
  --flober-card-padding-mobile: var(--flober-space-4);
  --flober-card-padding-desktop: calc(var(--flober-space-4) + var(--flober-space-1));
  --flober-card-gap: var(--flober-space-3);
  --flober-gutter-fluid: clamp(16px, 4vw, 64px);
  --flober-topbar-height: var(--flober-space-8);
  --flober-layer-header: 50;
  --flober-hero-height-mobile: max(62svh, 26rem);
  --flober-hero-height-min: 480px;
  --flober-hero-height-max: 720px;
  --flober-hero-copy-width: 38rem;
  --flober-hero-progress-width: 3.5rem;
  --flober-hero-card-width: 15rem;
  --flober-hero-card-image-mobile: 4.5rem;
  --flober-hero-card-image-desktop: 5.5rem;
  --flober-order-received-width: 42.5rem;
}


/* ==========================================================================
   BASE
   ========================================================================== */

/* Tipografia local. Blocksy usa estos mismos tokens y no carga Google Fonts. */
body,
button,
input,
select,
textarea,
h3,
h4,
h5,
h6 {
  font-family: var(--flober-font-text);
}

body {
  color: var(--flober-text);
  font-size: var(--flober-type-body);
  font-weight: var(--flober-weight-normal);
}

strong,
b { font-weight: var(--flober-weight-semibold); }

h1,
h2 {
  font-family: var(--flober-font-display);
  font-weight: var(--flober-weight-semibold);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--flober-type-page-title); }
h2 { font-size: var(--flober-type-section); }
h3,
h4,
h5,
h6 {
  font-size: var(--flober-type-card);
  font-weight: var(--flober-weight-semibold);
  letter-spacing: -0.01em;
}

label,
button,
input[type="button"],
input[type="submit"] {
  font-size: var(--flober-type-control);
  font-weight: var(--flober-weight-medium);
}

input:is([type="text"], [type="email"], [type="tel"], [type="search"], [type="number"], [type="password"], [type="url"]),
select,
textarea { border-color: var(--flober-control-border); }

.button { font-size: var(--flober-type-primary-button); font-weight: var(--flober-weight-medium); }

.single-product .product_title {
  font-family: var(--flober-font-display);
  font-size: var(--flober-type-product-title);
  font-weight: var(--flober-weight-semibold);
  letter-spacing: -0.01em;
}

/* Foco visible: borde, no sombra ni glow. */
:focus-visible {
  outline: 2px solid var(--flober-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}


/* ==========================================================================
   COMPONENTES
   ========================================================================== */

/* --- Desplegables ------------------------------------------------------- */
.flober-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--flober-space-4);
  min-height: var(--flober-control-min);
  padding: var(--flober-space-4) 0;
  font-size: var(--flober-type-disclosure);
  font-weight: var(--flober-weight-semibold);
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.flober-disclosure > summary::-webkit-details-marker { display: none; }

.flober-disclosure__icon {
  flex: 0 0 var(--flober-space-6);
  width: var(--flober-space-6);
  height: var(--flober-space-6);
  color: var(--flober-primary);
  stroke-width: 1.8;
  transition: transform 0.35s var(--flober-ease);
}

.flober-disclosure[open] > summary .flober-disclosure__icon { transform: rotate(180deg); }
.flober-disclosure > div { font-size: var(--flober-type-body); }

.woocommerce ul.products li.product {
  --flober-card-padding: var(--flober-card-padding-mobile);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: var(--flober-card-padding);
  border-radius: var(--flober-radius-card);
  background: var(--flober-surface);
  text-align: left;
}

:is(.flober-featured, .flober-product-recommendations, .flober-favorites-page) ul.products li.product {
  transition: transform 0.3s var(--flober-ease), box-shadow 0.3s var(--flober-ease);
}

:is(.flober-featured, .flober-product-recommendations, .flober-favorites-page) li.product figure { margin: 0; }

:is(.flober-featured, .flober-product-recommendations, .flober-favorites-page) li.product .ct-media-container {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--flober-product-ratio);
  background: var(--flober-background);
}

:is(.flober-featured, .flober-product-recommendations, .flober-favorites-page) li.product .ct-media-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--flober-ease);
}

.woocommerce ul.products li.product.flober-swatch-selected .ct-swap {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) {
  :is(.flober-featured, .flober-product-recommendations, .flober-favorites-page) ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--flober-shadow);
  }

  :is(.flober-featured, .flober-product-recommendations, .flober-favorites-page) li.product:hover .ct-media-container img {
    transform: scale(1.03);
  }
}

.woocommerce ul.products li.product .onsale,
.single-product .onsale {
  position: absolute;
  top: var(--flober-space-3);
  right: auto;
  left: var(--flober-space-3);
  z-index: 2;
  background: var(--flober-sale);
  color: var(--flober-surface);
}

.woocommerce ul.products li.product .onsale,
.single-product .onsale,
.flober-product-badge {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: var(--flober-space-1) var(--flober-space-2);
  border-radius: var(--flober-radius-label);
  font-size: var(--flober-type-small);
  font-weight: var(--flober-weight-semibold);
  line-height: 1.4;
  text-transform: none;
}

.flober-product-badges {
	position: absolute;
	z-index: 2;
	top: var(--flober-space-3);
	left: var(--flober-space-3);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--flober-space-1);
}

.flober-product-badges.has-sale {
	top: calc(var(--flober-space-3) + var(--flober-space-8));
}

.flober-product-badge {
	display: inline-flex;
	align-items: center;
}

/* Grafito, no verde: una insignia nunca se confunde con un botón. */
.flober-product-badge--graphite {
	background: var(--flober-badge-graphite);
	color: var(--flober-surface);
}

.flober-product-badge--green-soft {
	background: var(--flober-brand-light);
	color: var(--flober-primary);
}

.flober-product-badge--ochre {
	background: var(--flober-badge-ochre);
	color: var(--flober-surface);
}

.flober-product-badge--ochre-soft {
	background: var(--flober-badge-ochre-soft);
	color: var(--flober-badge-ochre-soft-text);
}

.flober-measure-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--flober-space-2);
  width: 100%;
  margin: 0;
}

.flober-measure-filters a:nth-child(-n + 3) { grid-column: span 2; }
.flober-measure-filters a:nth-child(n + 4) { grid-column: span 3; }

.flober-measure-filters a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--flober-compact-control-height);
  padding: var(--flober-space-1) var(--flober-space-3);
  border: var(--flober-border-width) solid var(--flober-control-border);
  border-radius: var(--flober-radius-control);
  color: var(--flober-text);
  font-size: var(--flober-type-compact-control);
  font-weight: var(--flober-weight-normal);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.flober-measure-filter__name,
.flober-measure-filter__note { display: block; }
.flober-measure-filter__note { color: inherit; font-size: inherit; font-weight: inherit; }

.flober-measure-filters a:hover,
.flober-measure-filters a[aria-current="page"] { border-color: var(--flober-primary); color: var(--flober-primary); }

.flober-measure-filters a:hover .flober-measure-filter__note,
.flober-measure-filters a[aria-current="page"] .flober-measure-filter__note { color: var(--flober-primary); }

.flober-catalog-price-note {
  margin: 0 0 var(--flober-space-6);
  color: var(--flober-text-muted);
  font-size: var(--flober-type-small);
  font-weight: var(--flober-weight-normal);
  text-align: center;
}

.flober-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--flober-space-3);
  width: 100%;
  margin: 0 0 var(--flober-space-4);
}

.flober-catalog-toolbar .flober-measure-filters { grid-column: 1 / -1; }
.flober-catalog-toolbar .woocommerce-result-count { grid-column: 1; margin: 0; }
.flober-catalog-toolbar .woocommerce-ordering { grid-column: 2; margin: 0; }
.flober-catalog-toolbar .woocommerce-ordering select {
  height: var(--flober-compact-control-height);
  min-height: var(--flober-compact-control-height);
  font-size: var(--flober-type-compact-control);
}

/* Menú "Ordenar" con el estilo de la web donde el navegador lo permite (Chrome, Edge, Android);
   los demás, como el iPhone, muestran su selector propio. */
@supports (appearance: base-select) {
  .woocommerce-ordering select,
  .woocommerce-ordering select::picker(select) { appearance: base-select; }

  .woocommerce-ordering select {
    display: flex;
    align-items: center;
    gap: var(--flober-space-3);
    padding: 0 var(--flober-space-3) 0 var(--flober-space-4);
    border: var(--flober-border-width) solid var(--flober-control-border);
    border-radius: var(--flober-radius-control);
    background: var(--flober-surface);
    color: var(--flober-text);
    cursor: pointer;
  }

  .woocommerce-ordering select:hover,
  .woocommerce-ordering select:open { border-color: var(--flober-primary); }
  .woocommerce-ordering select::picker-icon { margin-inline-start: auto; color: var(--flober-primary); transition: rotate 0.2s; }
  .woocommerce-ordering select:open::picker-icon { rotate: 180deg; }

  .woocommerce-ordering select::picker(select) {
    margin-block: var(--flober-space-1);
    padding: var(--flober-space-1);
    border: var(--flober-border-width) solid var(--flober-border);
    border-radius: var(--flober-radius-card);
    background: var(--flober-surface);
    box-shadow: var(--flober-shadow);
  }

  .woocommerce-ordering option {
    display: flex;
    align-items: center;
    gap: var(--flober-space-3);
    min-height: var(--flober-control-min);
    padding: 0 var(--flober-space-3);
    border-radius: var(--flober-radius-control);
    color: var(--flober-text);
    font-size: var(--flober-type-compact-control);
    cursor: pointer;
  }

  .woocommerce-ordering option:hover,
  .woocommerce-ordering option:focus-visible { outline: none; background: var(--flober-brand-light); color: var(--flober-primary); }
  .woocommerce-ordering option:checked { color: var(--flober-primary); font-weight: var(--flober-weight-semibold); }
  .woocommerce-ordering option::checkmark { order: 1; margin-inline-start: auto; color: var(--flober-primary); }
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: block;
  margin: var(--flober-card-padding) var(--flober-card-padding) var(--flober-card-gap);
  padding: 0;
  color: var(--flober-text);
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-card-title);
  font-weight: var(--flober-weight-medium);
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

.flober-product-card-title__kicker {
	display: block;
	min-height: 1.35em;
	margin-bottom: var(--flober-space-1);
	color: var(--flober-primary);
	font-size: var(--flober-type-small);
	font-weight: var(--flober-weight-medium);
	line-height: 1.35;
}

.flober-product-card-title__name {
	display: -webkit-box;
	min-height: 2.7em;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--flober-space-1) var(--flober-space-2);
  margin: 0 var(--flober-card-padding) var(--flober-card-gap);
  color: var(--flober-text);
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-price);
  font-weight: var(--flober-weight-semibold);
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
}

.woocommerce ul.products li.product .flober-commercial-price {
	display: grid;
	width: 100%;
	gap: var(--flober-space-1);
}

.woocommerce ul.products li.product .flober-list-price {
	color: var(--flober-text-muted);
	font-size: var(--flober-type-small);
	font-weight: var(--flober-weight-normal);
}

.woocommerce ul.products li.product .flober-cash-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--flober-space-1);
	color: var(--flober-primary);
}

.woocommerce ul.products li.product .flober-cash-price { font-size: var(--flober-type-price); font-weight: var(--flober-weight-semibold); }
.woocommerce ul.products li.product .flober-cash-label { font-size: var(--flober-type-small); font-weight: var(--flober-weight-semibold); }
.woocommerce ul.products li.product .flober-commercial-price.is-sale .flober-cash-row { color: var(--flober-sale); }

.woocommerce .cart_totals .flober-cart-total-note td {
	padding-top: 0;
	color: var(--flober-text-muted);
	font-size: var(--flober-type-small);
	font-weight: var(--flober-weight-normal);
	text-align: left;
}

.woocommerce .woocommerce-shipping-totals > th {
	text-align: left;
	vertical-align: top;
}

.woocommerce :is(#shipping_method, .woocommerce-shipping-methods) {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.woocommerce :is(#shipping_method, .woocommerce-shipping-methods) li {
	display: flex;
	align-items: flex-start;
	gap: var(--flober-space-2);
}

.woocommerce :is(#shipping_method, .woocommerce-shipping-methods) + .woocommerce-shipping-destination {
	margin-top: var(--flober-space-3);
}

.woocommerce-checkout #payment .wc_payment_method {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: var(--flober-space-2);
	align-items: start;
}

.woocommerce-checkout #payment .wc_payment_method > input { grid-column: 1; }
.woocommerce-checkout #payment .wc_payment_method > label { grid-column: 2; }

.woocommerce-checkout #payment .wc_payment_method > .payment_box {
	grid-column: 2;
	margin: var(--flober-space-1) 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--flober-text-muted);
	font-size: var(--flober-type-small);
}

.woocommerce-checkout #payment .wc_payment_method > .payment_box::before { content: none; }
.woocommerce-checkout #payment .wc_payment_method > .payment_box > :first-child { margin-top: 0; }
.woocommerce-checkout #payment .wc_payment_method > .payment_box > :last-child { margin-bottom: 0; }


.woocommerce ul.products li.product .flober-swatches-block {
  margin: 0 var(--flober-card-padding) var(--flober-card-gap);
}

.woocommerce ul.products li.product .ct-woo-card-actions,
.woocommerce ul.products li.product > .button { margin: auto var(--flober-card-padding) 0; }

.woocommerce ul.products li.product .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--flober-control-min);
  margin: 0;
  padding: 0 var(--flober-space-4);
  border: 0;
  border-radius: var(--flober-radius-control);
  background: var(--flober-primary);
  color: var(--flober-surface);
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-primary-button);
  font-weight: var(--flober-weight-medium);
  letter-spacing: normal;
  text-transform: none;
}

.woocommerce ul.products li.product .button:hover { background: var(--flober-primary); color: var(--flober-surface); }

/* Páginas de texto (Cómo comprar, Envíos, Venta mayorista, políticas…): renglones y formularios de lectura cómoda,
   no de 1.400 px. Quedan afuera la portada, las páginas de WooCommerce y Favoritos (grilla de productos). */
body.page:not(.home):not(.woocommerce-page):not(:has(.flober-favorites-page)) article.page .entry-content { --wp--style--global--content-size: 46rem; }
body.page:not(.home):not(.woocommerce-page):not(:has(.flober-favorites-page)) .hero-section .entry-header { max-width: 46rem; margin-inline: auto; }

/* Páginas de ayuda (Cómo comprar, Envíos, Venta mayorista, ¿Quiénes somos?): bloques del editor con estas clases.
   Pasos numerados, tarjetas, un aviso y botones, en blanco sobre el fondo de la web, como las tarjetas de la tienda. */
.entry-content .flober-info-lead { font-size: var(--flober-type-subtitle); color: var(--flober-text-muted); }
.entry-content .flober-info-steps { display: grid; gap: var(--flober-space-3); margin-inline: 0; padding: 0; list-style: none; counter-reset: flober-info-step; }
.entry-content .flober-info-steps > li {
  position: relative;
  margin: 0;
  padding: var(--flober-space-4) var(--flober-space-4) var(--flober-space-4) calc(2 * var(--flober-space-4) + var(--flober-space-8));
  border: var(--flober-border-width) solid var(--flober-border);
  border-radius: var(--flober-radius-card);
  background: var(--flober-surface);
  counter-increment: flober-info-step;
}
.entry-content .flober-info-steps > li::before {
  content: counter(flober-info-step);
  position: absolute;
  top: var(--flober-space-4);
  left: var(--flober-space-4);
  display: grid;
  place-items: center;
  width: var(--flober-space-8);
  height: var(--flober-space-8);
  border-radius: 50%;
  background: var(--flober-brand-light);
  color: var(--flober-primary);
  font-weight: var(--flober-weight-semibold);
  line-height: 1;
}
.entry-content .flober-info-steps strong { display: block; margin-bottom: var(--flober-space-1); line-height: var(--flober-space-8); }
.entry-content .flober-info-cards { display: grid; gap: var(--flober-space-3); }
@media (min-width: 600px) {
  .entry-content .flober-info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-content .flober-info-cards:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.entry-content .flober-info-cards > *,
.entry-content .flober-info-card > * { margin: 0; }
.entry-content .flober-info-card { padding: var(--flober-space-4); border: var(--flober-border-width) solid var(--flober-border); border-radius: var(--flober-radius-card); background: var(--flober-surface); }
.entry-content .flober-info-card > * + * { margin-top: var(--flober-space-2); }
.entry-content .flober-info-card h3 { font-size: var(--flober-type-subtitle); line-height: var(--flober-leading-tight); }
.entry-content .flober-info-card p { color: var(--flober-text-muted); font-size: var(--flober-type-small); }
.entry-content .flober-info-card a { color: var(--flober-primary); font-weight: var(--flober-weight-medium); }
.entry-content .flober-info-note { padding: var(--flober-space-4); border-radius: var(--flober-radius-card); background: var(--flober-brand-light); }
.entry-content .flober-info-actions .wp-block-button__link { display: inline-flex; align-items: center; min-height: var(--flober-control-min); border-radius: var(--flober-radius-control); }
.entry-content .flober-info-actions .is-style-outline > .wp-block-button__link { border: var(--flober-border-width) solid var(--flober-primary); background: var(--flober-surface); color: var(--flober-primary); }
.entry-content .flober-info-actions .is-style-outline > .wp-block-button__link:hover { background: var(--flober-primary); color: var(--flober-surface); }

/* Página 404 propia (404.php): mensaje corto, buscador de productos y salida a la tienda. */
.flober-404 { width: min(100% - 2 * var(--flober-gutter-fluid), 36rem); margin: 0 auto; padding-block: var(--flober-space-12); text-align: center; }
.flober-404 h1 { margin: 0; line-height: var(--flober-leading-tight); }
.flober-404 > p { margin: var(--flober-space-3) 0 0; color: var(--flober-text-muted); }
.flober-404 .woocommerce-product-search { display: flex; gap: var(--flober-space-2); margin-top: var(--flober-space-6); }
.flober-404 .woocommerce-product-search .search-field { flex: 1; min-width: 0; min-height: var(--flober-control-min); border-radius: var(--flober-radius-control); }
.flober-404 :is(.woocommerce-product-search button, .flober-404__actions .button) { min-height: var(--flober-control-min); border-radius: var(--flober-radius-control); }
.flober-404 .flober-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--flober-space-3); margin-top: var(--flober-space-6); }
.flober-404 .flober-404__secondary {
  --theme-button-text-initial-color: var(--flober-primary);
  --theme-button-text-hover-color: var(--flober-surface);
  --theme-button-background-initial-color: var(--flober-surface);
  --theme-button-background-hover-color: var(--flober-primary);
  border: var(--flober-border-width) solid var(--flober-primary);
}
.flober-404 .flober-404__help { margin-top: var(--flober-space-6); font-size: var(--flober-type-small); }
.flober-404__help a { color: var(--flober-primary); font-weight: var(--flober-weight-medium); }

/* Catálogo (tienda, categorías y búsqueda): la foto toca el texto con el aire de la tarjeta, sin los 25 px que suma Blocksy. */
:is(.woocommerce-archive, .search-results) ul.products li.product figure { margin-bottom: 0; }

/* Celular con dos tarjetas por fila (~165 px): título y botón en letra chica (14), precio en 16 y márgenes un paso
   más chicos, para que entren el título en 3 líneas, el precio sin cortarse y "Ver producto" en una línea.
   Solo tokens aprobados (los 12 px siguen reservados). Los carruseles del inicio no cambian. */
@media (max-width: 599.98px) {
	:is(.woocommerce-archive, .search-results) ul.products { --grid-columns-gap: var(--flober-space-3); }

	:is(.woocommerce-archive, .search-results, .flober-favorites-page) ul.products li.product {
		--flober-card-padding: var(--flober-space-3);
		--flober-card-gap: var(--flober-space-2);
	}

	:is(.woocommerce-archive, .search-results, .flober-favorites-page) ul.products li.product .woocommerce-loop-product__title { font-size: var(--flober-type-small); }
	:is(.woocommerce-archive, .search-results) .flober-product-card-title__name { min-height: 4.05em; -webkit-line-clamp: 3; }
	:is(.woocommerce-archive, .search-results, .flober-favorites-page) ul.products li.product .flober-cash-price { font-size: var(--flober-type-text); white-space: nowrap; }
	:is(.woocommerce-archive, .search-results, .flober-favorites-page) ul.products li.product .button {
		min-height: var(--flober-compact-control-height);
		padding-inline: var(--flober-space-2);
		font-size: var(--flober-type-small);
		white-space: nowrap;
	}
}

@media (min-width: 768px) {
	:root {
		--flober-type-display: 2.5rem;
		--flober-type-title: 1.5rem;
		--flober-type-subtitle: 1.125rem;
		--flober-type-highlight-price: 1.625rem;
		--flober-control-min: 40px;
		--flober-control: 40px;
		--flober-compact-control-height: 36px;
		--flober-swatch-size: 32px;
	}
	.flober-measure-filters {
		display: flex;
		flex-wrap: wrap;
		gap: calc(var(--flober-space-2) + (var(--flober-space-1) / 2));
	}

  .woocommerce ul.products li.product {
    --flober-card-padding: var(--flober-card-padding-desktop);
  }
}

/* WooCommerce conserva este control como disparador tecnico del carrito. */
.woocommerce-cart-form .flober-cart-update-trigger {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Control de cantidad propio sobre el input nativo de WooCommerce. */
.quantity.flober-quantity-controls {
  display: inline-grid;
  grid-template-columns:
    var(--flober-control-min)
    minmax(var(--flober-control), auto)
    var(--flober-control-min);
  align-items: stretch;
  width: auto;
  min-width: 0;
}

.quantity.flober-quantity-controls .flober-quantity-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--flober-control-min);
  min-width: var(--flober-control-min);
  min-height: var(--flober-control-min);
  margin: 0;
  padding: 0;
  border: var(--flober-border-width) solid var(--flober-control-border);
  border-radius: 0;
  color: var(--flober-text);
  background: var(--flober-surface);
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-card);
  font-weight: var(--flober-weight-medium);
  line-height: var(--flober-leading-tight);
  cursor: pointer;
}

.quantity.flober-quantity-controls .flober-quantity-decrease {
  border-radius: var(--flober-radius-control) 0 0 var(--flober-radius-control);
}

.quantity.flober-quantity-controls .flober-quantity-increase {
  border-radius: 0 var(--flober-radius-control) var(--flober-radius-control) 0;
}

.quantity.flober-quantity-controls input.qty {
  box-sizing: border-box;
  width: var(--flober-control);
  min-width: var(--flober-control);
  min-height: var(--flober-control-min);
  margin: 0;
  padding: 0 var(--flober-space-2);
  border-inline: 0;
  border-radius: 0;
  color: var(--flober-text);
  background: var(--flober-surface);
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-body);
  line-height: var(--flober-leading-tight);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.quantity.flober-quantity-controls input.qty:disabled,
.quantity.flober-quantity-controls input.qty[readonly] {
  color: var(--flober-text-muted);
  background: var(--flober-background);
  opacity: 1;
}

.quantity.flober-quantity-controls .flober-quantity-control:hover:not(:disabled) {
  color: var(--flober-surface);
  background: var(--flober-primary);
  border-color: var(--flober-primary);
}

.quantity.flober-quantity-controls .flober-quantity-control:disabled {
  opacity: var(--flober-disabled-opacity);
  cursor: not-allowed;
}

/* --- Header nativo de Blocksy -------------------------------------------
   Se fija el header completo 32px por encima del viewport: la barra superior
   sale de vista y quedan fijas las filas de navegacion.                    */

#header.ct-header {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--flober-topbar-height));
  z-index: var(--flober-layer-header);
}

#header .menu > li > .ct-menu-link,
#offcanvas .mobile-menu a {
  font-size: var(--flober-type-menu);
  font-weight: var(--flober-weight-medium);
}

#header [data-row="top"] .ct-header-text a {
  text-decoration: underline;
  text-underline-offset: var(--flober-space-1);
}

#header .flober-account-link {
  display: inline-flex;
  align-items: center;
  gap: var(--flober-space-2);
  min-height: var(--flober-control-min);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--flober-text);
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-menu);
  font-weight: var(--flober-weight-medium);
  text-decoration: none;
}

#header .flober-account-link:hover,
#header .flober-account-link:focus-visible { color: var(--flober-brand); }
#header .ct-icon-container svg,
#header .flober-account-link svg { width: var(--flober-header-icon-size); height: var(--flober-header-icon-size); }
#header .site-logo-container img { width: auto; max-height: var(--flober-header-logo-height-mobile); }
#header [data-device="desktop"] .flober-mobile-account,
#header [data-device="desktop"] .flober-mobile-favorites { display: none; }
#header .flober-menu-outlet > .ct-menu-link { color: var(--flober-sale); }

/* Changuito nativo de Blocksy: contador visible y panel alineado al sistema. */
#header .ct-header-cart,
#header .ct-cart-item,
#header .ct-cart-item .ct-icon-container { overflow: visible; }

#header .ct-dynamic-count-cart {
  display: grid;
  z-index: 2;
  top: calc(-1 * var(--flober-space-1));
  right: calc(-1 * var(--flober-space-1));
  place-items: center;
  box-sizing: border-box;
  min-width: var(--flober-cart-count-size);
  height: var(--flober-cart-count-size);
  padding: 0 var(--flober-space-1);
  border: calc(2 * var(--flober-border-width)) solid var(--flober-surface);
  border-radius: var(--flober-cart-count-size);
  background: var(--flober-brand);
  color: var(--flober-surface);
  font-size: var(--flober-cart-count-text-size);
  font-weight: var(--flober-weight-medium);
  line-height: 1;
}

#header .ct-dynamic-count-cart[data-count="0"] { display: none; }

[data-header*="type-1"] .ct-cart-content,
[data-header*="type-1"] #woo-cart-panel .ct-panel-inner {
  border: var(--flober-border-width) solid var(--flober-border);
  background: var(--flober-surface);
  color: var(--flober-text);
  box-shadow: var(--flober-shadow);
}

[data-header*="type-1"] .ct-cart-content,
[data-header*="type-1"] .ct-cart-content .total,
[data-header*="type-1"] #woo-cart-panel { --theme-text-color: var(--flober-text); }

[data-header*="type-1"] .woocommerce-mini-cart-item,
[data-header*="type-1"] .woocommerce-mini-cart-item a,
[data-header*="type-1"] .woocommerce-mini-cart-item .quantity,
[data-header*="type-1"] .woocommerce-mini-cart__total { color: var(--flober-text); text-transform: none; }

[data-header*="type-1"] .woocommerce-mini-cart-item .remove {
  display: inline-grid;
  place-items: center;
  min-width: var(--flober-control-min);
  min-height: var(--flober-control-min);
  color: var(--flober-text-muted);
}

[data-header*="type-1"] .woocommerce-mini-cart-item .product-title { font-size: var(--flober-type-small); line-height: 1.4; }
[data-header*="type-1"] .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr; gap: var(--flober-space-2); }

/* "Ver Changuito" (desplegable y ficha): borde verde, se llena al pasar el mouse.
   Los colores van por las variables de Blocksy para que su :hover no deje el texto blanco sobre blanco. */
[data-header*="type-1"] .woocommerce-mini-cart__buttons .button,
.single-product .ct-cart-actions .added_to_cart {
  --theme-button-text-initial-color: var(--flober-primary);
  --theme-button-text-hover-color: var(--flober-surface);
  --theme-button-background-initial-color: var(--flober-surface);
  --theme-button-background-hover-color: var(--flober-primary);
  border: var(--flober-border-width) solid var(--flober-primary);
}
[data-header*="type-1"] .woocommerce-mini-cart__buttons .button {
  min-height: var(--flober-control-min);
  border-radius: var(--flober-radius-control);
  font-size: var(--flober-type-small);
  text-transform: none;
  white-space: nowrap;
}
[data-header*="type-1"] .woocommerce-mini-cart__buttons .checkout {
  --theme-button-text-initial-color: var(--flober-surface);
  --theme-button-background-initial-color: var(--flober-primary);
}

.flober-announcements {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: inherit;
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-small);
  font-weight: var(--flober-weight-medium);
  line-height: var(--flober-leading-tight);
  text-transform: none;
}

.flober-announcement__item {
  grid-area: 1 / 1;
  max-width: 100%;
  color: inherit;
  text-align: center;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flober-announcements--1 .flober-announcement__item {
  visibility: visible;
  opacity: 1;
}

.flober-announcements--2 .flober-announcement__item {
  animation-name: flober-announcement-two;
  animation-duration: 10s;
  animation-timing-function: var(--flober-ease);
  animation-iteration-count: infinite;
  animation-fill-mode: none;
}

.flober-announcements--3 .flober-announcement__item {
  animation-name: flober-announcement-three;
  animation-duration: 15s;
  animation-timing-function: var(--flober-ease);
  animation-iteration-count: infinite;
  animation-fill-mode: none;
}

.flober-announcement__item:nth-child(2) { animation-delay: 5s; }
.flober-announcement__item:nth-child(3) { animation-delay: 10s; }

.flober-announcements:hover .flober-announcement__item,
.flober-announcements:focus-within .flober-announcement__item {
  animation-play-state: paused;
}

.flober-announcement__mobile { display: none; }

@keyframes flober-announcement-two {
  0%, 45% { visibility: visible; opacity: 1; }
  50%, 100% { visibility: hidden; opacity: 0; }
}

@keyframes flober-announcement-three {
  0%, 30% { visibility: visible; opacity: 1; }
  33.333%, 100% { visibility: hidden; opacity: 0; }
}

@media (max-width: 689px) {
  :root { --theme-content-vertical-spacing: var(--flober-space-8); }
  .flober-announcement__desktop { display: none; }
  .flober-announcement__mobile { display: inline; }
}

/* Catálogo nativo compacto: Blocksy conserva estructura y grilla. */
#main > .ct-container,
.hero-section > .ct-container {
  width: min(calc(100% - (2 * var(--flober-gutter-fluid))), var(--flober-container));
  max-width: none;
}

body.woocommerce:is(.archive, .search-results) .hero-section {
  min-height: 0;
  margin-bottom: 0;
  padding: var(--flober-space-8) 0 var(--flober-space-2);
}

body.woocommerce:is(.archive, .search-results) .hero-section .entry-header {
  width: min(calc(100% - (2 * var(--flober-gutter-fluid))), var(--flober-container));
  max-width: none;
  min-height: 0;
  align-items: center;
  margin: 0 auto;
  padding-block: 0;
  text-align: center;
}

body.woocommerce.search-results .hero-section .entry-header { width: 100%; }

body.woocommerce:is(.archive, .search-results) #main > .ct-container {
  padding-top: 0;
}

@media (max-width: 767px) {
  body.woocommerce:is(.archive, .search-results) .hero-section {
    padding-top: var(--flober-space-6);
  }
}

.woocommerce .woo-listing-top { display: block; margin: 0; }
.woocommerce .woocommerce-result-count {
  font-size: var(--flober-type-small);
  letter-spacing: normal;
  line-height: var(--flober-leading-base);
  text-transform: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .flober-catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .flober-catalog-toolbar .flober-measure-filters { grid-column: 1; }
  .flober-catalog-toolbar .woocommerce-result-count { grid-column: 2; }
  .flober-catalog-toolbar .woocommerce-ordering { grid-column: 3; }
}

.ct-breadcrumbs {
  font-size: var(--flober-type-small);
  line-height: var(--flober-leading-base);
}

@media (prefers-reduced-motion: reduce) {
  .flober-announcement__item { animation: none; }
  .flober-announcement__item:first-child { visibility: visible; opacity: 1; }
  .flober-announcement__item:not(:first-child) { display: none; }
}

@media (min-width: 1024px) {
  #header .site-logo-container img { max-height: var(--flober-header-logo-height-desktop); }
  #header [data-row="middle"] > .ct-container {
    width: min(100% - 2 * var(--flober-gutter-fluid), var(--flober-container));
    max-width: none;
  }

  #header [data-row="middle"] [data-column="end"] {
    min-width: 0;
  }

  #header [data-row="middle"] .menu {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

@media (min-width: 1000px) and (max-width: 1023px) {
  #header [data-device="desktop"] { display: none; }
  #header [data-device="mobile"] { display: block; }
  #offcanvas [data-device="mobile"] { display: block; }
}

/* --- Primitivas compartidas por Home, ficha y BERTA --------------------- */
.flober-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flober-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--flober-focal-x, 50%) var(--flober-focal-y, 50%);
}

.flober-container {
  width: min(100% - 2 * var(--flober-gutter-fluid), var(--flober-container));
  margin-inline: auto;
}

/* Botones y enlaces */
.flober-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--flober-space-3);
  min-height: var(--flober-control);
  padding: 0 var(--flober-space-6);
  border: 0;
  border-radius: var(--flober-radius-control);
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-primary-button);
  font-weight: var(--flober-weight-medium);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--flober-ease), transform 0.2s var(--flober-ease);
}

.flober-home .flober-btn--light { background: var(--flober-surface); color: var(--flober-primary); }
.flober-home .flober-btn--light:hover { background: var(--flober-background); color: var(--flober-primary); }

@media (hover: hover) {
  .flober-btn:hover { transform: translateY(-2px); }
}

.flober-link,
.flober-home .flober-link,
.flober-link-btn {
  color: var(--flober-primary);
  font-weight: var(--flober-weight-medium);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.flober-link:hover,
.flober-home .flober-link:hover,
.flober-link-btn:hover { color: var(--flober-primary); }

.flober-link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--flober-space-2);
  min-height: var(--flober-control-min);
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--flober-font-text);
  font-size: var(--flober-type-body);
  cursor: pointer;
}

.flober-link-btn .flober-icon { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.25s var(--flober-ease); }

@media (hover: hover) {
  .flober-link-btn:hover .flober-icon { transform: translateX(3px); }
}

/* --- Footer nativo de Blocksy --- */
[data-footer*="type-1"] .ct-footer > [data-row] > .ct-container {
  width: min(100% - 2 * var(--flober-gutter-fluid), var(--flober-container));
}

[data-footer*="type-1"] .ct-footer .widget-title {
  margin-bottom: var(--flober-space-4);
  color: var(--flober-text);
  text-transform: none;
}

[data-footer*="type-1"] .ct-footer .widget-menu,
.flober-footer-facts {
  display: grid;
  gap: var(--flober-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-footer*="type-1"] .ct-footer .widget-menu a,
[data-footer*="type-1"] #footer-menu a {
  display: inline-flex;
  align-items: center;
  padding-block: var(--flober-space-1);
  text-decoration: none;
}

[data-footer*="type-1"] .ct-footer .widget-menu a {
  font-size: var(--flober-type-body);
  text-transform: none;
  color: var(--flober-text);
}

[data-footer*="type-1"] #footer-menu a {
  font-size: var(--flober-type-small);
  text-transform: none;
  color: var(--flober-text-muted);
}

.flober-footer-facts li { padding-block: var(--flober-space-1); }

[data-footer*="type-1"] .ct-footer .widget-menu a:hover,
[data-footer*="type-1"] #footer-menu a:hover {
  color: var(--flober-primary);
}

.flober-footer-facts strong { font-weight: var(--flober-weight-medium); }

[data-footer*="type-1"] .ct-footer-socials [data-color="official"] .ct-icon-container {
  --theme-icon-color: var(--flober-brand);
}

@media (min-width: 690px) {
  [data-footer*="type-1"] [data-column="copyright"] {
    padding-inline-end: calc(var(--flober-space-12) + var(--flober-space-6));
  }
}

@media (min-width: 380px) and (max-width: 689.98px) {
  [data-footer*="type-1"] .ct-footer [data-row="middle"] > .ct-container {
    --grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-footer*="type-1"] .ct-footer [data-column="widget-area-1"],
  [data-footer*="type-1"] .ct-footer [data-column="widget-area-4"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 689.98px) {
  [data-footer*="type-1"] .ct-footer .widget-menu a,
  [data-footer*="type-1"] #footer-menu a {
    min-height: var(--flober-control-min);
  }

  [data-footer*="type-1"] .ct-footer-socials a {
    min-width: var(--flober-control-min);
    min-height: var(--flober-control-min);
    justify-content: center;
  }
}

/* --- BERTA --- */
/* --flober-consent-offset: alto del aviso de cookies abierto abajo (lo mide berta.js). */
.flober-hub {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + max(env(safe-area-inset-bottom, 0px), var(--flober-consent-offset, 0px)));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--flober-space-3);
  font-family: var(--flober-font-text);
}

.flober-hub__toggle {
  display: grid;
  place-items: center;
  width: var(--flober-berta-toggle-mobile);
  height: var(--flober-berta-toggle-mobile);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--flober-brand);
  color: var(--flober-surface);
  box-shadow: var(--flober-shadow);
  cursor: pointer;
  transition: transform 0.25s var(--flober-ease);
}

.flober-hub__toggle .flober-icon { width: 24px; height: 24px; transition: transform 0.3s var(--flober-ease); }
.flober-hub__close,
.flober-hub__toggle[aria-expanded="true"] .flober-hub__open { display: none; }
.flober-hub__toggle[aria-expanded="true"] .flober-hub__close { display: block; }

@media (hover: hover) {
  .flober-hub__toggle:hover { background: var(--flober-primary); transform: translateY(-2px); }
  .flober-hub__toggle:hover .flober-hub__open { transform: rotate(-8deg); }
}

.flober-hub__hello {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  align-items: flex-start;
  gap: var(--flober-space-1);
  width: max-content;
  max-width: min(250px, calc(100vw - 28px));
  padding: var(--flober-space-3) var(--flober-space-2) var(--flober-space-3) var(--flober-space-4);
  border-radius: var(--flober-radius-card);
  background: var(--flober-surface);
  box-shadow: var(--flober-shadow);
  animation: flober-pop 0.25s var(--flober-ease);
}

.flober-hub__hello[hidden] { display: none; }
.flober-hub__hello::after { content: ""; position: absolute; right: var(--flober-space-4); bottom: calc(-1 * var(--flober-space-1)); width: var(--flober-space-3); height: var(--flober-space-3); border-radius: 0 0 var(--flober-radius-card) 0; background: var(--flober-surface); transform: rotate(45deg); }
.flober-hub__hello-msg { padding: 0; border: 0; background: none; color: var(--flober-text); font-family: inherit; font-size: var(--flober-type-small); font-weight: var(--flober-weight-medium); line-height: 1.4; text-align: left; cursor: pointer; }
.flober-hub__hello-x { display: grid; place-items: center; width: 28px; height: 28px; flex: none; margin-top: calc(-1 * var(--flober-space-2)); padding: 0; border: 0; border-radius: 50%; background: none; color: var(--flober-text-muted); cursor: pointer; }
.flober-hub__hello-x:hover { background: var(--flober-background); color: var(--flober-text); }
.flober-hub__hello-x .flober-icon { width: 15px; height: 15px; stroke-width: 2; }

@keyframes flober-pop { from { opacity: 0; transform: translateY(6px) scale(0.97); } }

.flober-chat {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 24px));
  height: auto;
  max-height: min(70svh, calc(100svh - 96px));
  overflow: hidden;
  border-radius: var(--flober-radius-card);
  background: var(--flober-surface);
  color: var(--flober-text);
  box-shadow: var(--flober-shadow);
  transform-origin: bottom right;
  animation: flober-pop 0.22s var(--flober-ease);
}

.flober-chat[hidden] { display: none; }
.flober-chat:focus { outline: none; }
.flober-chat__head { display: flex; min-height: var(--flober-chat-head-height); align-items: center; gap: var(--flober-space-3); padding: var(--flober-space-3) var(--flober-space-4); background: var(--flober-primary); color: var(--flober-surface); }
.flober-chat__av { display: grid; place-items: center; width: var(--flober-berta-avatar-size); height: var(--flober-berta-avatar-size); flex: none; }
.flober-chat__av .flober-berta-avatar { width: 100%; height: 100%; }
.flober-berta-avatar { display: block; flex: none; }
.flober-chat__identity { display: grid; gap: var(--flober-space-1); }
.flober-chat__name { margin: 0; font-size: var(--flober-type-body); font-weight: var(--flober-weight-medium); line-height: 1.2; letter-spacing: normal; }
.flober-chat__sub { margin: 0; color: color-mix(in srgb, var(--flober-surface) 72%, transparent); font-size: var(--flober-type-small); line-height: 1.3; }
.flober-chat__sub span { display: inline-block; width: var(--flober-space-2); height: var(--flober-space-2); margin-right: var(--flober-space-2); border: var(--flober-border-width) solid var(--flober-surface); border-radius: 50%; background: color-mix(in srgb, var(--flober-brand) 58%, var(--flober-surface)); }
.flober-chat__x { display: grid; place-items: center; width: var(--flober-control-min); height: var(--flober-control-min); margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--flober-surface); cursor: pointer; }
.flober-chat__x:hover { background: color-mix(in srgb, var(--flober-surface) 12%, transparent); }
.flober-chat__x .flober-icon { width: 20px; height: 20px; }
.flober-chat__log { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: var(--flober-space-3); padding: calc(var(--flober-space-4) + var(--flober-space-1)) var(--flober-space-4) var(--flober-space-2); overflow-y: auto; overscroll-behavior: contain; }

.flober-msg-row { display: flex; max-width: 92%; align-items: flex-end; gap: var(--flober-space-2); }
.flober-msg-row--in { align-self: flex-start; }
.flober-msg-row .flober-msg { max-width: calc(100% - 36px); }

.flober-msg { max-width: 84%; padding: var(--flober-space-3) var(--flober-space-4); border-radius: var(--flober-radius-card); font-size: var(--flober-type-body); line-height: 1.45; white-space: pre-line; }
.flober-msg p { margin: 0; }
.flober-msg--in { align-self: flex-start; background: var(--flober-background); }
.flober-msg--out { align-self: flex-end; width: fit-content; max-width: 80%; overflow-wrap: anywhere; background: var(--flober-primary); color: var(--flober-surface); }

.flober-msg__wa {
  display: inline-flex;
  align-items: center;
  gap: var(--flober-space-2);
  margin-top: var(--flober-space-2);
  padding: var(--flober-space-2) var(--flober-space-3);
  border-radius: var(--flober-radius-control);
  background: var(--flober-primary);
  color: var(--flober-surface);
  font-size: var(--flober-type-small);
  font-weight: var(--flober-weight-medium);
  text-decoration: none;
}

.flober-msg__wa:hover { color: var(--flober-surface); }
.flober-msg__action { display: inline-flex; min-height: var(--flober-control-min); align-items: center; margin-top: var(--flober-space-2); padding: var(--flober-space-2) var(--flober-space-3); border-radius: var(--flober-radius-control); background: var(--flober-primary); color: var(--flober-surface); font-weight: var(--flober-weight-medium); text-decoration: none; }
.flober-msg__action:hover { color: var(--flober-surface); }
.flober-msg__products { display: grid; gap: var(--flober-space-2); margin-top: var(--flober-space-3); }
.flober-msg__product { display: grid; grid-template-columns: var(--flober-berta-thumb-size) minmax(0, 1fr); gap: var(--flober-space-3); align-items: center; padding: var(--flober-space-2); border: var(--flober-border-width) solid var(--flober-border); border-radius: var(--flober-radius-card); background: var(--flober-surface); color: var(--flober-text); text-decoration: none; }
.flober-msg__product:hover { border-color: var(--flober-primary); color: var(--flober-text); }
.flober-msg__product img { width: var(--flober-berta-thumb-size); height: var(--flober-berta-thumb-size); border-radius: var(--flober-radius-card); object-fit: cover; }
.flober-msg__product-details { display: grid; min-width: 0; gap: var(--flober-space-1); }
.flober-msg__product-name { display: -webkit-box; overflow: hidden; font-weight: var(--flober-weight-medium); line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.flober-msg__product-price { color: var(--flober-text); font-weight: var(--flober-weight-semibold); }
.flober-msg__product-price del { color: var(--flober-text-muted); font-weight: var(--flober-weight-normal); }
.flober-msg__product-price ins { text-decoration: none; }
/* Precio de tarjeta dentro del chat: el mismo en todas las páginas. */
.flober-msg__product-price .flober-commercial-price { display: grid; }
.flober-msg__product-price .flober-list-price { color: var(--flober-text-muted); font-size: var(--flober-type-small); font-weight: var(--flober-weight-normal); }
.flober-msg__product-price .flober-cash-row { color: var(--flober-primary); }
.flober-msg__product-price .is-sale .flober-cash-row { color: var(--flober-sale); }
.flober-msg__product-price .flober-cash-label { font-size: var(--flober-type-small); }
.flober-msg__all-results { display: inline-flex; min-height: var(--flober-control-min); align-items: center; margin-top: var(--flober-space-2); color: var(--flober-primary); font-weight: var(--flober-weight-medium); text-decoration: underline; text-underline-offset: 3px; }
.flober-msg__categories { display: grid; gap: var(--flober-space-2); margin-top: var(--flober-space-3); }
.flober-msg__category { display: flex; min-height: var(--flober-berta-action-height); align-items: center; padding: 0 var(--flober-space-4); border: var(--flober-border-width) solid var(--flober-border); border-radius: var(--flober-radius-control); background: var(--flober-surface); color: var(--flober-primary); font-size: var(--flober-type-small); font-weight: var(--flober-weight-medium); text-decoration: none; }
.flober-msg__category:hover { border-color: var(--flober-primary); color: var(--flober-primary); }
.flober-msg__wa .flober-icon { width: var(--flober-space-4); height: var(--flober-space-4); }
.flober-typing { display: inline-flex; gap: var(--flober-space-1); padding: var(--flober-space-3) var(--flober-space-3); }
.flober-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--flober-text-muted); opacity: 0.5; animation: flober-blink 1s infinite; }
.flober-typing i:nth-child(2) { animation-delay: 0.15s; }
.flober-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes flober-blink { 50% { opacity: 1; } }

.flober-chat__quick { display: grid; flex: none; gap: var(--flober-space-2); padding-top: var(--flober-space-2); }
.flober-chat__quick-label { margin: 0; color: var(--flober-text-muted); font-size: var(--flober-type-note); line-height: 1.4; }
.flober-chat__topics { display: grid; gap: var(--flober-berta-action-gap); }

.flober-chat__quick button {
  display: grid;
  flex: none;
  grid-template-columns: var(--flober-space-6) minmax(0, 1fr) var(--flober-space-6);
  align-items: center;
  gap: var(--flober-space-3);
  width: 100%;
  min-height: var(--flober-berta-action-height);
  padding: 0 var(--flober-space-4);
  border: var(--flober-border-width) solid var(--flober-border);
  border-radius: var(--flober-radius-control);
  background: var(--flober-surface);
  color: var(--flober-primary);
  font-family: inherit;
  font-size: var(--flober-type-control);
  font-weight: var(--flober-weight-medium);
  text-align: left;
  cursor: pointer;
}
.flober-chat__quick button:hover { border-color: var(--flober-primary); }
.flober-chat__topic-icon,
.flober-chat__topic-arrow { display: grid; place-items: center; }
.flober-chat__topic-icon .flober-icon { width: var(--flober-space-6); height: var(--flober-space-6); }
.flober-chat__topic-arrow { color: var(--flober-text-muted); }
.flober-chat__topic-arrow .flober-icon { width: var(--flober-space-4); height: var(--flober-space-4); }

.flober-chat__human {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--flober-space-2);
  margin: 0;
  padding: var(--flober-space-3) var(--flober-space-4) 0;
  border-top: var(--flober-border-width) solid var(--flober-border);
  color: var(--flober-text-muted);
  font-size: var(--flober-type-small);
  line-height: 1.4;
}
.flober-chat__human .flober-icon { width: var(--flober-space-4); height: var(--flober-space-4); color: var(--flober-primary); }
.flober-chat__human a { color: var(--flober-text-muted); font-weight: var(--flober-weight-medium); text-decoration: underline; text-underline-offset: 3px; }
.flober-chat__human a:hover { color: var(--flober-primary); }

.flober-chat__form { display: flex; flex: none; align-items: center; gap: var(--flober-space-2); margin: var(--flober-space-3) var(--flober-space-4) var(--flober-space-4); padding: var(--flober-space-1) var(--flober-space-1) var(--flober-space-1) var(--flober-space-4); border: var(--flober-border-width) solid var(--flober-border); border-radius: calc(var(--flober-control-min) / 2); }
.flober-chat__form input { flex: 1; min-width: 0; min-height: var(--flober-control-min); margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--flober-text); font-family: inherit; font-size: var(--flober-type-body); }
.flober-chat__form input:focus { outline: none; box-shadow: none; }
.flober-chat__form:focus-within { border-color: var(--flober-primary); }
.flober-chat__send { display: grid; place-items: center; width: var(--flober-control-min); height: var(--flober-control-min); flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--flober-primary); color: var(--flober-surface); cursor: pointer; }
.flober-chat__send:hover { background: var(--flober-brand); }
.flober-chat__send .flober-icon { width: 20px; height: 20px; }

/* Enlace secundario al pie del chat: no compite con las respuestas. */
.flober-chat__faq {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--flober-space-1);
  min-height: 32px;
  margin: var(--flober-space-2) 0 var(--flober-space-1);
  color: var(--flober-text-muted);
  font-size: var(--flober-type-small);
  font-weight: var(--flober-weight-medium);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.flober-chat__faq:hover { color: var(--flober-primary); }
.flober-chat__faq .flober-icon { width: 14px; height: 14px; stroke-width: 2; }

@media (min-width: 768px) {
  .flober-chat { width: 380px; height: min(540px, 80svh); max-height: min(540px, 80svh); }
  .flober-chat__log { gap: var(--flober-space-2); padding-top: var(--flober-space-3); }
  .flober-msg { padding-block: var(--flober-space-2); }
  .flober-chat__quick { padding-top: var(--flober-space-1); }
}

@media (max-width: 767px) {
  body.flober-berta-open { overflow: hidden; }
  .flober-hub.is-open { inset: 0; align-items: stretch; gap: 0; }
  .flober-hub.is-open .flober-hub__toggle { display: none; }
  .flober-chat { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; animation: none; }
  .flober-chat__head { min-height: calc(var(--flober-chat-head-height) + env(safe-area-inset-top, 0px)); padding-top: calc(var(--flober-space-3) + env(safe-area-inset-top, 0px)); }
  .flober-chat__name { font-size: var(--flober-berta-title-size); }
  .flober-chat__sub { font-size: var(--flober-type-note); }
  .flober-chat__log { padding-inline: var(--flober-space-4); }
  .flober-msg { font-size: var(--flober-berta-message-size); }
  .flober-chat__quick button { min-height: 3.25rem; font-size: var(--flober-berta-message-size); }
  .flober-chat__form { margin-bottom: calc(var(--flober-space-4) + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 960px) {
  .flober-hub { right: 24px; bottom: calc(24px + var(--flober-consent-offset, 0px)); }
  .flober-hub__toggle { width: var(--flober-berta-toggle-desktop); height: var(--flober-berta-toggle-desktop); }
}
