/*
Theme Name: Piezarotaaspirador
Theme URI: https://caceresoutlet.shop
Description: Child Storefront — Piezarotaaspirador azul/rojo, buscador protagonista, hueco agentes IA.
Author: Caceres Outlet
Template: storefront
Version: 1.9.21
Text Domain: piezarotaaspirador
*/

:root {
  --pz-navy: #0b1f3a;
  --pz-blue: #0b4f8a;
  --pz-red: #c8102e;
  --pz-red-soft: #e83a4f;
  --pz-sand: #f2f5f9;
  --pz-ink: #142033;
  --pz-muted: #5a6a7a;
  --pz-card: #ffffff;
  --pz-cream: #f7f1e8;
  --pz-pattern: url("assets/piezarota-pattern.svg");
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--pz-ink);
  background:
    radial-gradient(ellipse at top left, rgba(11, 79, 138, 0.08), transparent 45%),
    radial-gradient(ellipse at top right, rgba(200, 16, 46, 0.07), transparent 40%),
    var(--pz-sand);
}

/* Header marca + patrón watermark Piezarota */
.site-header,
.col-full.site-header-container,
.storefront-primary-navigation {
  background-color: var(--pz-navy) !important;
  background-image:
    linear-gradient(180deg, rgba(11, 31, 58, 0.88) 0%, rgba(11, 31, 58, 0.94) 100%),
    var(--pz-pattern) !important;
  background-size: auto, 200px 200px !important;
  background-repeat: repeat !important;
  background-position: center top !important;
}

.site-header {
  border-bottom: 3px solid var(--pz-red);
  padding-bottom: 0.4rem;
  position: relative;
}

/* Franja buscador navy con marca visible y texto claro */
#piezarota-ai-search,
.piezarota-ai-search {
  clear: both !important;
  float: none !important;
  display: block;
  width: 100% !important;
  max-width: none;
  margin: 0.35rem 0 1rem;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, rgba(11, 79, 138, 0.55) 0%, rgba(11, 31, 58, 0.35) 55%, rgba(200, 16, 46, 0.18) 100%),
    var(--pz-pattern);
  background-size: auto, 180px 180px;
  background-repeat: repeat;
  border-radius: 12px;
  padding: 0.85rem 0.9rem 0.7rem !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-branding .site-title,
.site-branding .site-title a,
.site-header-cart .cart-contents {
  color: #fff !important;
}

.site-branding .site-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-branding .site-description {
  color: #a8b8cc !important;
  font-size: 0.92rem;
  max-width: 28rem;
}

/* Hover de nav: ver bloque «Nav principal» (píldoras blanco/rojo) */

/* ===== BUSCADOR PROTAGONISTA + HUECO IA ===== */
/* Storefront flota branding ~74% y search ~22% a la derecha: lo anulamos */
.woocommerce-active .site-header .site-branding {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
  clear: both;
}

.piezarota-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.piezarota-search-input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  font-size: 1.12rem !important;
  padding: 0.85rem 1rem !important;
  color: var(--pz-ink) !important;
  min-width: 0;
  box-shadow: none !important;
}

.piezarota-search-input::placeholder {
  color: #7a8a9a;
}

.piezarota-search-btn {
  background: var(--pz-red) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0 1.35rem !important;
  cursor: pointer;
  white-space: nowrap;
}

.piezarota-search-btn:hover {
  background: var(--pz-red-soft) !important;
}

.piezarota-search-hint {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: var(--pz-cream);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.piezarota-search-hint a {
  color: #ffd0d0;
  text-decoration: underline;
  font-weight: 600;
}

/* Sin lateral blog en tienda/carrito/cuenta */
.piezarota-no-sidebar #secondary,
.piezarota-no-sidebar .widget-area,
.woocommerce-cart #secondary,
.woocommerce-checkout #secondary,
.woocommerce-account #secondary {
  display: none !important;
}

.piezarota-no-sidebar #primary,
.woocommerce-cart #primary,
.woocommerce-checkout #primary,
.woocommerce-account #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
}

/* Guías útiles (home) */
.piezarota-guides {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.piezarota-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.piezarota-guides-grid a {
  display: block;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-left: 4px solid var(--pz-red);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  color: var(--pz-navy);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.piezarota-guides-grid a:hover {
  border-color: var(--pz-blue);
  transform: translateY(-1px);
}

.piezarota-guides-grid span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--pz-muted);
  line-height: 1.35;
}

.piezarota-ai-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #e8eef6;
  font-size: 0.92rem;
}

.piezarota-ai-search--page .piezarota-search-form {
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.12);
  border-color: #d0dae6;
}

/* Hero home */
.piezarota-hero {
  background:
    linear-gradient(125deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 79, 138, 0.86) 48%, rgba(200, 16, 46, 0.78) 100%),
    var(--pz-pattern);
  background-size: auto, 200px 200px;
  background-repeat: repeat;
  color: #fff;
  padding: 3.4rem 1.5rem 3.6rem;
  text-align: center;
  margin: 0 0 2rem;
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
}

.piezarota-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.piezarota-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  font-weight: 800;
  margin: 0 0 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.piezarota-hero .piezarota-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.piezarota-hero p {
  max-width: 34rem;
  margin: 0 auto 1.45rem;
  font-size: 1.12rem;
  line-height: 1.5;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Botones */
.button, button.button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button {
  background-color: var(--pz-red) !important;
  border-color: var(--pz-red) !important;
  color: #fff !important;
  border-radius: 5px;
}

.woocommerce a.button.alt, .woocommerce button.button.alt {
  background-color: var(--pz-blue) !important;
  border-color: var(--pz-blue) !important;
}

/* Hero CTAs: blanco fuerte (después de .button rojo, como el buscador) */
.piezarota-hero .button,
.piezarota-hero a.button {
  background: #fff !important;
  background-color: #fff !important;
  color: var(--pz-navy) !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  font-weight: 800;
  padding: 0.95em 1.85em;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.32);
  text-shadow: none;
}

.piezarota-hero .button:hover,
.piezarota-hero a.button:hover {
  background: #f7fafc !important;
  background-color: #f7fafc !important;
  color: var(--pz-navy) !important;
}

.piezarota-hero a.button.alt {
  background: rgba(255, 255, 255, 0.14) !important;
  background-color: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  margin-left: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.piezarota-hero a.button.alt:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  background-color: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

.woocommerce ul.products li.product {
  background: var(--pz-card);
  border-radius: 10px;
  padding: 0.75rem !important;
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.06);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.woocommerce span.onsale { background: var(--pz-red); }

.stock.out-of-stock, .piezarota-solicitar {
  color: var(--pz-red);
  font-weight: 600;
}

.piezarota-disclaimer {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1.2rem 1.5rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  line-height: 1.45;
  color: #c5d0de;
}

.piezarota-disclaimer a { color: #ff8a8a; }
.site-info { display: none; }

.site-header {
  position: relative;
}

/* Selector idioma ES | EN (TranslatePress + tema) */
.piezarota-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.piezarota-lang-switch--header {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 40;
  color: #fff;
}
.piezarota-lang-switch--header a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.piezarota-lang-switch--header a.is-active,
.piezarota-lang-switch--header a:hover {
  color: #fff;
  text-decoration: underline;
}
.piezarota-lang-switch--footer {
  display: flex;
  margin-top: 0.85rem;
  color: #c5d0de;
}
.piezarota-lang-switch--footer a {
  color: #ff8a8a;
  text-decoration: none;
}
.piezarota-lang-switch--footer a.is-active {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .piezarota-lang-switch--header {
    top: 0.45rem;
    right: 0.6rem;
    font-size: 0.8rem;
  }
}

.piezarota-asistente-page {
  max-width: 40rem;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
}

.piezarota-asistente-stub {
  background: #f0f5fb;
  border-left: 4px solid var(--pz-blue);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.piezarota-asistente-links {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--pz-muted);
}

.piezarota-df-chat-wrap {
  margin: 1rem 0 1.5rem;
  min-height: 420px;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  overflow: hidden;
  background: #f7fafc;
}

df-messenger.piezarota-df-messenger {
  z-index: 99999;
  position: fixed;
  bottom: 18px;
  right: 18px;
  --df-messenger-font-color: #142033;
  --df-messenger-font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --df-messenger-chat-background: #f2f5f9;
  --df-messenger-message-user-background: #d6e6f5;
  --df-messenger-message-bot-background: #ffffff;
  --df-messenger-button-border-color: #0b1f3a;
  --df-messenger-button-background: #c8102e;
  --df-messenger-button-font-color: #ffffff;
  --df-messenger-send-icon: #0b4f8a;
  --df-messenger-chat-bubble-background: #c8102e;
  --df-messenger-chat-bubble-icon-color: #ffffff;
  --df-messenger-chat-window-height: 520px;
}

df-messenger.piezarota-df-messenger--page {
  position: relative;
  bottom: auto;
  right: auto;
  display: block;
  width: 100%;
  height: 480px;
  z-index: 1;
}

@media (max-width: 768px) {
  df-messenger.piezarota-df-messenger--page {
    height: 70vh;
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .piezarota-search-form { flex-direction: column; }
  .piezarota-search-btn { width: 100%; padding: 0.85rem !important; }
  .piezarota-hero a.button.alt { margin-left: 0; margin-top: 0.5rem; display: inline-block; }
}

/* ===== Hero / intro categorías ===== */
.piezarota-cat-hero {
  margin: 0 0 1.25rem;
}
.piezarota-cat-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 160px;
  max-height: 280px;
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.55), rgba(200, 16, 46, 0.28)),
    var(--pz-hero, var(--pz-pattern)) center / cover no-repeat,
    var(--pz-navy);
}
.piezarota-cat-hero-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: luminosity;
  opacity: 0.85;
}
.piezarota-cat-hero--parent .piezarota-cat-hero-media {
  min-height: 180px;
}
.piezarota-cat-intro {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--pz-muted, #5a6a7a);
}
@media (max-width: 768px) {
  .piezarota-cat-hero-media img { height: 150px; }
}

/* ===== Filtro modelo en categorías ===== */
.piezarota-cat-filter {
  position: relative;
  max-width: 640px;
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  background: #f4f7fb;
  border: 1px solid #d5deea;
  border-radius: 10px;
}
.piezarota-cat-filter-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pz-navy, #0b1f3a);
  margin: 0 0 0.4rem;
}
.piezarota-cat-filter-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.piezarota-cat-filter-input {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem !important;
  padding: 0.7rem 0.85rem !important;
  border: 2px solid #0b1f3a !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1a2332 !important;
}
.piezarota-cat-filter-input:focus {
  outline: 2px solid #c8102e;
  outline-offset: 1px;
}
.piezarota-cat-filter-clear {
  border: 0;
  border-radius: 8px;
  background: #0b1f3a;
  color: #fff;
  font-weight: 600;
  padding: 0 0.9rem;
  cursor: pointer;
}
.piezarota-cat-filter-clear:hover {
  background: #c8102e;
}
.piezarota-cat-filter-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  position: absolute;
  left: 1rem;
  right: 1rem;
  z-index: 40;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid #c5d0de;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.12);
}
.piezarota-cat-filter-item {
  display: block;
  padding: 0.65rem 0.85rem;
  color: #0b1f3a;
  text-decoration: none;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.95rem;
  line-height: 1.35;
}
.piezarota-cat-filter-item:last-child {
  border-bottom: 0;
}
.piezarota-cat-filter-item:hover,
.piezarota-cat-filter-item:focus {
  background: #eef4fb;
  color: #c8102e;
}
.piezarota-cat-filter-status {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: #44566e;
  min-height: 1.2em;
}

/* ===== Lead / Solicitar recambio ===== */
.piezarota-lead {
  max-width: 560px;
  margin: 1.25rem 0 1.5rem;
  padding: 1.1rem 1.15rem;
  background: #fff8f8;
  border: 1px solid #f0c4c9;
  border-radius: 10px;
}
.piezarota-lead-msg {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #0b1f3a;
}
.piezarota-lead-form label {
  display: block;
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: #0b1f3a;
  font-size: 0.95rem;
}
.piezarota-lead-form label span {
  font-weight: 400;
  color: #667788;
  font-size: 0.85rem;
}
.piezarota-lead-form input[type="text"],
.piezarota-lead-form input[type="email"],
.piezarota-lead-form input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  border: 2px solid #0b1f3a;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}
.piezarota-lead-form button[type="submit"],
.piezarota-solicitar-recambio-btn {
  margin-top: 0.35rem;
  background: #c8102e !important;
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
}
.piezarota-lead-form button[type="submit"]:disabled,
.piezarota-solicitar-recambio-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.piezarota-solicitar-recambio-btn:hover {
  background: #a00d25 !important;
  color: #fff !important;
}
.piezarota-lead-status {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: #0b4f8a;
  min-height: 1.2em;
}
.piezarota-lead.is-sent .piezarota-lead-form {
  opacity: 0.85;
}
.piezarota-cat-filter-cta {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #d7dde5;
}
.piezarota-cat-filter-cta-msg {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #0b1f3a;
}
.piezarota-cat-filter-go {
  background: #0b4f8a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.piezarota-cat-filter-go:hover {
  background: #0b1f3a;
}
.piezarota-cat-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
}
.piezarota-cat-filter-row .piezarota-cat-filter-input {
  flex: 1 1 180px;
}

/* Google login */
.piezarota-google-login {
  margin-top: 1rem;
  text-align: center;
}
.piezarota-google-btn {
  display: inline-block !important;
  background: #fff !important;
  color: #0b1f3a !important;
  border: 2px solid #0b1f3a !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 0.65rem 1.1rem !important;
}
.piezarota-google-btn:hover {
  background: #0b1f3a !important;
  color: #fff !important;
}

@media (max-width: 600px) {
  .piezarota-cat-filter {
    padding: 0.75rem;
  }
  .piezarota-cat-filter-input {
    font-size: 1rem !important;
  }
}

/* ===== Categorías: padres (cuadraditos) + hijas (grid fotos) ===== */
.piezarota-home-cats,
.piezarota-shop-cats,
.piezarota-home-featured {
  max-width: 1180px;
  margin: 0 auto 1.75rem;
  padding: 0 1rem;
}

/* Home: categorías y destacados a ancho completo del contenido */
.piezarota-home-cats--wide,
.piezarota-home-featured--wide {
  max-width: none !important;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.piezarota-home-cats--wide .piezarota-cats {
  border-radius: 16px;
  padding: 1.15rem 1rem 1.35rem;
}

.home .site-main > .piezarota-home-cats--wide:first-child {
  margin-top: 0.35rem;
}

.piezarota-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pz-navy);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

.piezarota-section-lead {
  margin: 0 0 0.85rem;
  color: var(--pz-muted);
  font-size: 0.95rem;
}

.piezarota-cats {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(11, 31, 58, 0.07);
  padding: 1.1rem 1.1rem 1.25rem;
}

.piezarota-parents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 1100px) {
  .piezarota-home-cats--wide .piezarota-parents {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.piezarota-parent {
  appearance: none;
  border: 2px solid #d5dee8;
  background: #f7fafc;
  color: var(--pz-navy);
  border-radius: 14px;
  cursor: pointer;
  padding: 1.05rem 0.55rem 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}

.piezarota-parent:hover,
.piezarota-parent:focus {
  background: #eef4fb;
  border-color: #a8bdd4;
  outline: none;
}

.piezarota-parent.is-active {
  background: var(--pz-navy);
  border-color: var(--pz-navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.24);
}

.piezarota-parent-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-bottom: 0.55rem;
}

.piezarota-parent-media .piezarota-cat-thumb,
.piezarota-parent-media .piezarota-family-icon svg {
  width: 112px !important;
  height: 112px !important;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.piezarota-parent.is-active .piezarota-family-icon svg rect {
  fill: #c8102e;
}

.piezarota-parent-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  letter-spacing: 0.01em;
}

.piezarota-parent-n {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.25rem;
  font-weight: 600;
}

.piezarota-cats-prompt {
  margin: 0 0 0.35rem;
  text-align: center;
  color: var(--pz-muted);
  font-size: 0.9rem;
}

.piezarota-cats-panel {
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e4ebf3;
}

.piezarota-cats-panel-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pz-navy);
  margin: 0 0 0.55rem;
}

.piezarota-cats-grid {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.55rem;
}

.piezarota-home-cats--wide .piezarota-cats-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.piezarota-cats-grid::before,
.piezarota-cats-grid::after {
  display: none !important;
  content: none !important;
}

.piezarota-cat-item {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  list-style: none !important;
}

.piezarota-cat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  color: var(--pz-ink) !important;
  padding: 0.4rem 0.25rem 0.45rem;
  border-radius: 8px;
  border: 1px solid transparent;
  min-height: 100%;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.piezarota-cat-link:hover,
.piezarota-cat-link:focus {
  background: #f0f5fb;
  border-color: #cfdceb;
}

.piezarota-cat-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.3rem;
}

.piezarota-cat-thumb {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #e8eef5;
}

.piezarota-cat-placeholder {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.piezarota-cat-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.piezarota-cat-n {
  font-size: 0.65rem;
  color: var(--pz-muted);
  margin-top: 0.12rem;
}

.piezarota-cats-more {
  display: block;
  margin: 0.65rem auto 0;
  appearance: none;
  background: transparent;
  border: 1px dashed #b8c5d6;
  color: var(--pz-blue);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}

.piezarota-cats-more:hover {
  border-color: var(--pz-blue);
  background: #f3f8fd;
}

/* Ocultar listado nativo Woo de categorías enormes en shop/home */
.woocommerce .products .product-category,
ul.products li.product-category {
  max-width: 16.66%;
}

.piezarota-home-featured ul.products {
  margin-top: 0.5rem;
}

.piezarota-home-featured ul.products li.product {
  margin-bottom: 0.75rem !important;
}

.piezarota-hero {
  padding: 2.2rem 1.25rem 2.3rem;
  margin-bottom: 1rem;
}

@media (max-width: 980px) {
  .piezarota-parents {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .piezarota-cats-grid,
  .piezarota-home-cats--wide .piezarota-cats-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .piezarota-parent-media,
  .piezarota-parent-media .piezarota-cat-thumb,
  .piezarota-parent-media .piezarota-family-icon svg {
    width: 88px !important;
    height: 88px !important;
  }
  .piezarota-parent {
    padding: 0.85rem 0.4rem 0.75rem;
  }
}

/* Botón Solicitar (sin stock) */
.piezarota-solicitar-wrap {
  margin: 1rem 0 0.35rem;
}
.piezarota-solicitar-wrap .piezarota-solicitar-btn,
a.button.piezarota-solicitar-btn {
  background: var(--pz-navy) !important;
  border-color: var(--pz-navy) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.piezarota-solicitar-wrap .piezarota-solicitar-btn:hover,
a.button.piezarota-solicitar-btn:hover {
  background: var(--pz-red) !important;
  border-color: var(--pz-red) !important;
}
.piezarota-solicitar-hint {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--pz-muted);
}
.single-product .stock.out-of-stock {
  color: var(--pz-navy);
  font-weight: 600;
}

@media (max-width: 640px) {
  .piezarota-parents,
  .piezarota-cats-grid,
  .piezarota-home-cats--wide .piezarota-cats-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
  .piezarota-parent-media,
  .piezarota-parent-media .piezarota-cat-thumb,
  .piezarota-parent-media .piezarota-family-icon svg {
    width: 72px !important;
    height: 72px !important;
  }
  .piezarota-cat-media,
  .piezarota-cat-thumb {
    width: 48px !important;
    height: 48px !important;
  }
  .piezarota-parent {
    padding: 0.7rem 0.3rem 0.65rem;
  }
  .piezarota-parent-name {
    font-size: 0.8rem;
  }
}

/* ===== Popup bienvenida asistente IA ===== */
html.piezarota-welcome-open {
  overflow: hidden;
}

.piezarota-welcome {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 31, 58, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.piezarota-welcome.is-visible {
  opacity: 1;
}

.piezarota-welcome-card {
  position: relative;
  width: min(420px, 100%);
  background:
    linear-gradient(165deg, #ffffff 0%, #f4f7fb 55%, #ffe8eb 140%);
  color: var(--pz-ink);
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.28);
  padding: 1.5rem 1.4rem 1.35rem;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
}

.piezarota-welcome.is-visible .piezarota-welcome-card {
  transform: translateY(0) scale(1);
}

.piezarota-welcome-x {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--pz-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}

.piezarota-welcome-brand {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pz-red);
}

.piezarota-welcome-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  color: var(--pz-navy);
  line-height: 1.2;
}

.piezarota-welcome-lead {
  margin: 0 0 0.75rem;
  color: var(--pz-muted);
  font-size: 0.98rem;
}

.piezarota-welcome-list {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
  color: var(--pz-ink);
  font-size: 0.95rem;
}

.piezarota-welcome-list li {
  margin: 0.25rem 0;
}

.piezarota-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.piezarota-welcome-btn {
  appearance: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.78rem 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.piezarota-welcome-btn:hover {
  transform: translateY(-1px);
}

.piezarota-welcome-btn--primary {
  background: var(--pz-red);
  color: #fff;
  border-color: var(--pz-red);
}

.piezarota-welcome-btn--ghost {
  background: #fff;
  color: var(--pz-navy);
  border-color: rgba(11, 31, 58, 0.25);
}

/* ===== Chat proxy (burbuja + panel) ===== */
.pz-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99990;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.pz-chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--pz-red);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.05rem;
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.35);
  cursor: pointer;
}

.pz-chat-fab-ico {
  font-size: 1.1rem;
}

.pz-chat-panel {
  display: none;
  flex-direction: column;
  width: min(380px, calc(100vw - 28px));
  height: min(520px, calc(100vh - 110px));
  margin-bottom: 0.7rem;
  background: #f2f5f9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d7e0ea;
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.28);
}

.pz-chat.is-open .pz-chat-panel {
  display: flex;
}

.pz-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--pz-navy);
  color: #fff;
  padding: 0.85rem 0.95rem;
}

.pz-chat-head strong {
  display: block;
  font-size: 1rem;
}

.pz-chat-sub {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.pz-chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}

.pz-chat-log {
  flex: 1;
  overflow: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pz-chat-msg {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.pz-chat-msg--bot {
  align-self: flex-start;
  background: #fff;
  color: var(--pz-ink);
  border: 1px solid #e2e8f0;
}

.pz-chat-msg--user {
  align-self: flex-end;
  background: #d6e6f5;
  color: var(--pz-ink);
}

.pz-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pz-chat-chip {
  border: 1px solid var(--pz-navy);
  background: #fff;
  color: var(--pz-navy);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.pz-chat-chip:hover {
  background: var(--pz-navy);
  color: #fff;
}

.pz-chat-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-self: stretch;
}

.pz-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--pz-navy);
  color: #fff !important;
}

.pz-chat-btn--wa {
  background: #128c7e;
}

.pz-chat-btn--wa:hover,
.pz-chat-btn:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.pz-chat-lead {
  align-self: stretch;
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  padding: 0.75rem;
}

.pz-chat-lead-title {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: var(--pz-navy);
  font-size: 0.95rem;
}

.pz-chat-lead-hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--pz-muted);
}

.pz-chat-lead-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pz-ink);
  margin-bottom: 0.45rem;
}

.pz-chat-lead-form input,
.pz-chat-lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  border: 1px solid #c9d4e0;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  font-family: inherit;
  box-sizing: border-box;
}

.pz-chat-lead-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--pz-red);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  margin-top: 0.15rem;
}

.pz-chat-lead-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pz-chat-lead-status {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--pz-navy);
  font-weight: 600;
}

.pz-chat-lead.is-sent {
  border-color: #128c7e;
  background: #f0faf8;
}

.pz-chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  background: #fff;
  border-top: 1px solid #d7e0ea;
}

.pz-chat-input {
  flex: 1;
  border: 1px solid #c9d4e0;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
}

.pz-chat-send {
  border: 0;
  border-radius: 999px;
  background: var(--pz-red);
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.pz-chat-mic {
  border: 1px solid #c9d4e0;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--pz-navy, #0b1f3a);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  min-width: 2.5rem;
}

.pz-chat-mic.is-listening {
  background: #ffe8ec;
  border-color: var(--pz-red, #c8102e);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.25);
  animation: pz-mic-pulse 1.1s ease-in-out infinite;
}

@keyframes pz-mic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Página /asistente/: chat embebido */
.pz-chat--page {
  position: static;
  right: auto;
  bottom: auto;
  width: 100%;
  z-index: 1;
}

.pz-chat--page .pz-chat-panel {
  display: flex !important;
  width: 100%;
  height: 480px;
  margin: 0;
  box-shadow: none;
}

.pz-chat--page .pz-chat-fab {
  display: none !important;
}

#piezarota-df-chat-host {
  margin: 1rem 0 1.5rem;
  min-height: 420px;
}

@media (max-width: 768px) {
  .pz-chat--page .pz-chat-panel {
    height: 70vh;
    min-height: 360px;
  }
  .piezarota-welcome-card h2 {
    font-size: 1.25rem;
  }
}

/* ===== ANUNCIOS: navy + patrón, CTAs, miniaturas REF ===== */
body.piezarota-anuncios {
  background-color: var(--pz-navy) !important;
  background-image:
    linear-gradient(165deg, rgba(11, 31, 58, 0.94) 0%, rgba(11, 79, 138, 0.62) 42%, rgba(11, 31, 58, 0.96) 100%),
    var(--pz-pattern) !important;
  background-size: auto, 200px 200px !important;
  background-attachment: fixed, fixed !important;
  background-repeat: no-repeat, repeat !important;
}

body.piezarota-anuncios .site-content,
body.piezarota-anuncios #content,
body.piezarota-anuncios .content-area,
body.piezarota-anuncios .site-main {
  background: transparent !important;
}

body.piezarota-anuncios #secondary {
  display: none !important;
}

body.piezarota-anuncios #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
  max-width: 920px;
}

body.piezarota-anuncios .page-header .page-title,
body.piezarota-anuncios .entry-header .gamma.entry-title,
body.piezarota-anuncios h1.page-title {
  color: #fff !important;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

body.piezarota-anuncios .page-header {
  margin-bottom: 1.35rem;
}

body.piezarota-anuncios article.pz-anuncio-card,
body.piezarota-anuncios article.hentry.category-anuncios {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  padding: 1.45rem 1.4rem 1.2rem;
  margin: 0 0 1.6rem;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body.piezarota-anuncios .entry-title,
body.piezarota-anuncios .entry-title a {
  font-size: clamp(1.32rem, 2.5vw, 1.72rem) !important;
  font-weight: 800 !important;
  color: var(--pz-navy) !important;
  line-height: 1.28 !important;
  text-decoration: none !important;
}

body.piezarota-anuncios .entry-content {
  font-size: 1.1rem;
  line-height: 1.58;
  color: var(--pz-ink);
}

body.piezarota-anuncios .entry-content p,
body.piezarota-anuncios .entry-content li {
  font-size: 1.08rem;
  line-height: 1.55;
}

body.piezarota-anuncios .entry-content strong {
  color: var(--pz-navy);
}

body.piezarota-anuncios .posted-on,
body.piezarota-anuncios .post-author,
body.piezarota-anuncios .post-comments,
body.piezarota-anuncios .entry-taxonomy {
  font-size: 0.9rem;
  color: var(--pz-muted);
}

.pz-anuncio-ctas {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: stretch;
  margin: 1.35rem 0 0.85rem !important;
}

.pz-anuncio-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem !important;
  border-radius: 11px !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.25);
  border: 2px solid transparent !important;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  min-height: 3rem;
}

.pz-anuncio-cta--shop {
  background: var(--pz-red) !important;
  color: #fff !important;
  border-color: #9a0c22 !important;
}

.pz-anuncio-cta--chat {
  background: var(--pz-blue) !important;
  color: #fff !important;
  border-color: #083a66 !important;
}

.pz-anuncio-cta--search {
  background: var(--pz-navy) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.pz-anuncio-cta:hover,
.pz-anuncio-cta:focus {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.32);
}

.pz-anuncio-refs {
  list-style: none !important;
  margin: 1rem 0 1.35rem !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.75rem;
}

.pz-anuncio-ref {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pz-anuncio-ref-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: var(--pz-ink) !important;
  background: #f3f7fb;
  border: 1px solid #d5dfeb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pz-anuncio-ref-link:hover,
.pz-anuncio-ref-link:focus {
  transform: translateY(-2px);
  border-color: var(--pz-blue);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.18);
}

.pz-anuncio-ref-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: #e7eef6;
  overflow: hidden;
}

.pz-anuncio-ref-thumb img,
.pz-anuncio-ref-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

.pz-anuncio-ref-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 118px;
  background:
    linear-gradient(135deg, rgba(11, 79, 138, 0.35), rgba(200, 16, 46, 0.22)),
    var(--pz-pattern);
  background-color: var(--pz-navy);
  background-size: auto, 110px 110px;
  background-repeat: repeat;
}

.pz-anuncio-ref-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.55rem 0.65rem;
}

.pz-anuncio-ref-sku {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--pz-navy);
}

.pz-anuncio-ref-name {
  font-size: 0.78rem;
  color: var(--pz-muted);
  line-height: 1.25;
}

body.piezarota-anuncios .pagination .page-numbers,
body.piezarota-anuncios .nav-links a,
body.piezarota-anuncios .woocommerce-pagination a {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(11, 31, 58, 0.45) !important;
}

body.piezarota-anuncios .pagination .page-numbers.current {
  background: var(--pz-red) !important;
  border-color: var(--pz-red) !important;
}

@media (max-width: 640px) {
  body.piezarota-anuncios article.pz-anuncio-card,
  body.piezarota-anuncios article.hentry.category-anuncios {
    padding: 1.1rem 0.95rem 1rem;
    border-radius: 14px;
  }

  .pz-anuncio-cta {
    width: 100%;
    font-size: 1.02rem !important;
  }

  .pz-anuncio-refs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Compartir + WhatsApp ===== */
.pz-anuncio-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 0.25rem;
  align-items: stretch;
}

.pz-share-btn,
.pz-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  min-height: 2.6rem;
}

.pz-share-btn--wa-contact,
.pz-wa-btn {
  background: #128c7e !important;
  color: #fff !important;
  border-color: #0b5c52 !important;
}

.pz-share-btn--wa {
  background: #25d366 !important;
  color: #0b1f3a !important;
  border-color: #1da851 !important;
}

.pz-share-btn--fb {
  background: #1877f2 !important;
  color: #fff !important;
  border-color: #0f5ecc !important;
}

.pz-share-btn--copy {
  background: #fff !important;
  color: var(--pz-navy) !important;
  border-color: #c5d0de !important;
}

.pz-share-btn--copy.is-copied {
  background: var(--pz-navy) !important;
  color: #fff !important;
}

.pz-wa-fab {
  position: fixed;
  right: 1rem;
  bottom: 5.4rem;
  z-index: 99980;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #0b1f3a !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border: 2px solid #128c7e;
}

.pz-wa-fab:hover,
.pz-wa-fab:focus {
  filter: brightness(1.06);
  color: #0b1f3a !important;
}

.pz-wa-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #0b1f3a;
  color: #25d366;
  font-size: 0.68rem;
  font-weight: 900;
}

@media (max-width: 640px) {
  .pz-wa-fab-text { display: none; }
  .pz-wa-fab {
    right: 0.75rem;
    bottom: 5.1rem;
    padding: 0.85rem;
  }
  .pz-share-btn { flex: 1 1 calc(50% - 0.4rem); }
}

/* Login social */
.piezarota-social-login {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1rem 0 0.35rem;
}

.piezarota-social-login-label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--pz-muted);
  font-weight: 600;
}

.piezarota-google-btn,
.piezarota-facebook-btn,
.piezarota-google-login .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
}

.piezarota-google-btn {
  background: #fff !important;
  color: var(--pz-navy) !important;
  border: 2px solid var(--pz-navy) !important;
}

.piezarota-facebook-btn {
  background: #1877f2 !important;
  color: #fff !important;
  border: 2px solid #0f5ecc !important;
}

/* Accesos rápidos bajo el buscador (Mi cuenta, Anuncios…) */
.piezarota-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0.65rem 0 0.35rem;
}

.piezarota-qa {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  text-decoration: none !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.62rem 1.05rem !important;
  min-height: 2.85rem;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--pz-navy) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  line-height: 1.15 !important;
}

.piezarota-qa-title {
  font-size: clamp(0.95rem, 2.3vw, 1.1rem);
}

.piezarota-qa-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.88;
  max-width: 14rem;
}

.piezarota-qa:hover,
.piezarota-qa:focus {
  background: var(--pz-red) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  text-decoration: none !important;
}

.piezarota-qa--hot {
  background: var(--pz-red) !important;
  color: #ffffff !important;
  border-color: #ffd4da !important;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35);
}

.piezarota-qa--hot:hover,
.piezarota-qa--hot:focus {
  background: #ffffff !important;
  color: var(--pz-navy) !important;
  border-color: #ffffff !important;
}

@media (max-width: 768px) {
  .piezarota-qa {
    padding: 0.55rem 0.85rem !important;
    min-height: 2.55rem;
  }
  .piezarota-qa-sub {
    font-size: 0.68rem;
    max-width: 11rem;
  }
}

/* Nav principal oculto: una sola fila (quick-actions bajo el buscador) */
body.piezarota-hide-primary-nav .storefront-primary-navigation,
.storefront-primary-navigation {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.piezarota-qa--devol {
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.42) !important;
}

/* Destacar Mi cuenta / Anuncios en menú WP */
.main-navigation ul.menu > li.pz-nav-hot > a,
.main-navigation ul.nav-menu > li.pz-nav-hot > a {
  background: var(--pz-red) !important;
  color: #ffffff !important;
  border-color: #ffd4da !important;
}

.main-navigation ul.menu,
.main-navigation ul.nav-menu {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  align-items: center;
  justify-content: flex-start;
}

.main-navigation ul.menu > li,
.main-navigation ul.nav-menu > li {
  margin: 0 !important;
  float: none !important;
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800 !important;
  font-size: clamp(0.98rem, 2.4vw, 1.12rem) !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.72rem 1.15rem !important;
  min-height: 2.85rem;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--pz-navy) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  line-height: 1.15 !important;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.menu > li > a:focus,
.main-navigation ul.nav-menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:focus,
.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul.nav-menu > li.current-menu-item > a,
.main-navigation ul.menu > li.current_page_item > a,
.main-navigation ul.nav-menu > li.current_page_item > a {
  background: var(--pz-red) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  text-decoration: none !important;
}

/* Handheld / menú móvil Storefront */
.storefront-handheld-footer-bar ul li a,
.main-navigation.toggled .menu > li > a {
  font-weight: 800 !important;
}

@media (max-width: 768px) {
  .main-navigation ul.menu > li > a,
  .main-navigation ul.nav-menu > li > a {
    font-size: 0.88rem !important;
    padding: 0.58rem 0.82rem !important;
    min-height: 2.45rem;
  }
}

/* Pie: píldoras legales / devoluciones bien visibles */
.piezarota-legal-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  align-items: center;
  justify-content: flex-start;
  margin: 0.85rem 0 0.65rem !important;
}

.piezarota-legal-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800 !important;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem) !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 0.7rem 1.15rem !important;
  min-height: 2.7rem;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--pz-navy) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  line-height: 1.15 !important;
}

.piezarota-legal-pill:hover,
.piezarota-legal-pill:focus {
  background: var(--pz-red) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  text-decoration: none !important;
}

.piezarota-legal-pill--hot {
  background: var(--pz-red) !important;
  color: #ffffff !important;
  border-color: #ffd4da !important;
}

.piezarota-legal-pill--hot:hover,
.piezarota-legal-pill--hot:focus {
  background: #ffffff !important;
  color: var(--pz-navy) !important;
  border-color: #ffffff !important;
}

.pz-share-party-wrap {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

/* ===== Super-evento: Comparte con amigos ===== */
.pz-share-party {
  margin: 0 0 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--pz-red);
  box-shadow:
    0 12px 36px rgba(11, 31, 58, 0.28),
    0 0 0 4px rgba(200, 16, 46, 0.12);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(200, 16, 46, 0.45), transparent 38%),
    linear-gradient(135deg, #0b1f3a 0%, #12345c 48%, #0b4f8a 100%);
  color: #fff;
}

.pz-share-party-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding: 1.15rem 1.25rem 1.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.pz-share-party-toggle::after {
  content: "▼";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.pz-share-party.is-open .pz-share-party-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.pz-share-party-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd6dc;
  background: rgba(200, 16, 46, 0.92);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.pz-share-party-title {
  display: block;
  font-size: clamp(1.45rem, 4.2vw, 2.05rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  padding-right: 2rem;
}

.pz-share-party-sub {
  display: block;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
  padding-right: 2rem;
}

.pz-share-party-panel {
  display: none;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1.15rem 1.15rem;
  align-items: stretch;
}

.pz-share-party.is-open .pz-share-party-panel {
  display: flex;
}

.pz-share-party .pz-share-btn {
  flex: 1 1 8.5rem;
  min-height: 3rem;
  font-size: 1rem;
  border-width: 2px;
}

.pz-share-btn--x {
  background: #0b1f3a !important;
  color: #fff !important;
  border-color: #ffffff !important;
}

.pz-share-btn--mail {
  background: #fff !important;
  color: var(--pz-navy) !important;
  border-color: #c5d0de !important;
}

.pz-share-btn--native {
  background: var(--pz-red) !important;
  color: #fff !important;
  border-color: #ffffff !important;
}

.pz-share-btn--native[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .pz-share-party-toggle {
    padding: 1rem 1rem 1.05rem;
  }
  .pz-share-party .pz-share-btn {
    flex: 1 1 calc(50% - 0.55rem);
  }
}

/* ——— Aviso cookies RGPD ——— */
.piezarota-cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100050;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.92), rgba(11, 31, 58, 0.98));
  color: #f4f7fb;
  box-shadow: 0 -8px 28px rgba(11, 31, 58, 0.35);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.piezarota-cc.is-visible {
  transform: translateY(0);
}

.piezarota-cc-inner {
  max-width: 980px;
  margin: 0 auto;
}

.piezarota-cc-brand {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.piezarota-cc h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #fff;
}

.piezarota-cc-body {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(244, 247, 251, 0.92);
  max-width: 62ch;
}

.piezarota-cc-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.piezarota-cc-link:hover,
.piezarota-cc-link:focus {
  color: #ffd4da;
}

.piezarota-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}

.piezarota-cc-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.05rem;
  line-height: 1.2;
}

.piezarota-cc-btn--primary {
  background: var(--pz-red);
  color: #fff;
}

.piezarota-cc-btn--primary:hover {
  background: var(--pz-red-soft);
}

.piezarota-cc-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.piezarota-cc-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.piezarota-cc-btn--link {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.piezarota-cc-panel {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.piezarota-cc-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.piezarota-cc-check input {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--pz-red);
}

.piezarota-cc-check small {
  color: rgba(244, 247, 251, 0.7);
  font-size: 0.8rem;
}

.piezarota-cc-manage {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 600px) {
  .piezarota-cc-btn {
    width: 100%;
  }
  .piezarota-cc-btn--link {
    width: auto;
  }
}

/* —— Reservar asistencia / Google Calendar + Meet —— */
.piezarota-booking {
  max-width: 920px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.1rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}
.piezarota-booking h2 {
  margin: 0 0 0.5rem;
  color: var(--pz-navy);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.piezarota-booking-lead {
  color: var(--pz-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.piezarota-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
a.button.piezarota-booking-cta,
.piezarota-hero a.button.piezarota-booking-cta,
.woocommerce a.button.piezarota-booking-cta {
  background: var(--pz-red) !important;
  border-color: var(--pz-red) !important;
  color: #fff !important;
  font-weight: 700;
}
a.button.piezarota-booking-cta:hover,
.piezarota-hero a.button.piezarota-booking-cta:hover {
  background: #a80d25 !important;
  border-color: #a80d25 !important;
  color: #fff !important;
}
.piezarota-hero a.button.piezarota-booking-cta {
  margin-left: 0.45rem;
}
.piezarota-booking-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 640px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: var(--pz-sand);
}
.piezarota-booking-frame {
  width: 100%;
  min-height: 640px;
  height: 70vh;
  border: 0;
  display: block;
  background: #fff;
}
.piezarota-booking-note,
.piezarota-booking-fallback p {
  color: var(--pz-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.piezarota-booking-fallback {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(11, 79, 138, 0.06), rgba(200, 16, 46, 0.05));
  border-radius: 10px;
}
@media (max-width: 600px) {
  .piezarota-hero a.button.piezarota-booking-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    display: inline-block;
  }
  .piezarota-booking-frame-wrap,
  .piezarota-booking-frame {
    min-height: 520px;
  }
}

/* ===== Devoluciones 2 caminos + plazos ===== */
.piezarota-plazos {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #fff8e8 0%, #f2f5f9 100%);
  border-left: 4px solid var(--pz-red, #c8102e);
  border-radius: 0 10px 10px 0;
  color: var(--pz-ink, #142033);
}
.piezarota-plazos-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pz-navy, #0b1f3a);
}
.piezarota-plazos ul {
  margin: 0 0 0.65rem;
  padding-left: 1.2rem;
}
.piezarota-plazos-iron {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.piezarota-plazos-pos {
  margin: 0.4rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}
.piezarota-plazos-contact {
  margin: 0;
  font-size: 0.9rem;
}
.piezarota-plazos-check {
  margin: 1rem 0 !important;
  padding: 0.75rem 1rem;
  background: #fff8e8;
  border: 1px solid #e8d9a8;
  border-radius: 8px;
}

.piezarota-dev {
  max-width: 720px;
  margin: 0 auto 2rem;
}
.piezarota-dev-lead,
.piezarota-dev-regla {
  line-height: 1.5;
}
.piezarota-dev-regla {
  padding: 0.75rem 1rem;
  background: #f7f1e8;
  border-radius: 8px;
  margin: 1rem 0 1.25rem;
}
.piezarota-dev-caminos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .piezarota-dev-caminos { grid-template-columns: 1fr; }
}
.piezarota-dev-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  padding: 1rem 1.1rem;
  border: 2px solid #c5d0dc;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pz-navy, #0b1f3a);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.piezarota-dev-tab span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pz-muted, #5a6a7a);
}
.piezarota-dev-tab.is-active,
.piezarota-dev-tab[aria-selected="true"] {
  border-color: var(--pz-blue, #0b4f8a);
  box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.15);
}
.piezarota-dev-panel {
  margin-top: 0.5rem;
  padding: 1rem 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
}
.piezarota-dev-politica {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.45;
}
.piezarota-dev-dir {
  padding: 0.6rem 0.8rem;
  background: var(--pz-sand, #f2f5f9);
  border-radius: 8px;
  font-size: 0.95rem;
}
.piezarota-dev-form label {
  display: block;
  margin: 0.65rem 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.piezarota-dev-form input[type="text"],
.piezarota-dev-form input[type="email"],
.piezarota-dev-form input[type="tel"],
.piezarota-dev-form select,
.piezarota-dev-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  font-weight: 400;
  box-sizing: border-box;
}
.piezarota-dev-check {
  display: flex !important;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500 !important;
}
.piezarota-dev-check input {
  margin-top: 0.25rem;
}
.piezarota-dev-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--pz-muted, #5a6a7a);
}
.piezarota-dev-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  opacity: 0 !important;
}
.piezarota-dev-submit {
  margin-top: 0.75rem !important;
}
.piezarota-dev-status {
  min-height: 1.4em;
  margin: 0.5rem 0;
  font-weight: 600;
}
.piezarota-dev-form.is-sent .piezarota-dev-submit {
  display: none;
}
.piezarota-dev-wa-alt {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.piezarota-dev-urgente-wrap {
  margin: 0.75rem 0 1.1rem;
}
a.button.piezarota-dev-urgente,
.woocommerce a.button.piezarota-dev-urgente {
  background: var(--pz-red, #c8102e) !important;
  border-color: var(--pz-red, #c8102e) !important;
  color: #fff !important;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.35rem;
}
a.button.piezarota-dev-urgente:hover {
  background: #a00d25 !important;
  border-color: #a00d25 !important;
  color: #fff !important;
}
.piezarota-dev-contacto {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--pz-muted, #5a6a7a);
}
.piezarota-envios-danado {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 2px solid var(--pz-red, #c8102e);
  border-radius: 12px;
  background: #fff5f5;
}
.piezarota-envios-danado h3 {
  margin-top: 0;
  color: var(--pz-red, #c8102e);
}

/* ===== 1.9.18 — grid denso + filtros sticky + search sin cats ===== */
/* Ancestros con overflow rompen position:sticky */
body.piezarota-has-filters,
body.piezarota-has-filters #page,
body.piezarota-has-filters #content,
body.piezarota-has-filters .site,
body.piezarota-has-filters .site-content,
body.piezarota-has-filters .content-area,
body.piezarota-has-filters .site-main,
body.piezarota-has-filters .col-full {
  overflow: visible !important;
}

/* Búsqueda: nunca el grid grande de categorías arriba */
body.search .piezarota-shop-cats,
body.search-results .piezarota-shop-cats,
body.search .piezarota-home-cats.piezarota-shop-cats {
  display: none !important;
}

.piezarota-shop-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 1.1rem 1.25rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto 1.5rem;
  padding: 0 0.75rem;
  box-sizing: border-box;
  overflow: visible;
}

.piezarota-shop-main {
  min-width: 0;
}

.piezarota-filters {
  position: sticky;
  top: 1rem;
  align-self: start;
  z-index: 30;
  background: #fff;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(11, 31, 58, 0.06);
  padding: 0.85rem 0.75rem 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.piezarota-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.piezarota-filters-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pz-navy);
  letter-spacing: 0.02em;
}

.piezarota-filters-toggle {
  display: none;
  appearance: none;
  border: 1px solid #c5d0de;
  background: var(--pz-sand);
  color: var(--pz-navy);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.piezarota-filters-all {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pz-blue);
  text-decoration: none;
  margin-bottom: 0.55rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
}

.piezarota-filters-all:hover,
.piezarota-filters-all.is-active {
  background: #eef4fb;
  color: var(--pz-navy);
}

.piezarota-filters-tree,
.piezarota-filters-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.piezarota-filters-item {
  margin: 0 0 0.15rem;
}

.piezarota-filters-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.piezarota-filters-row > a {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--pz-ink);
  font-size: 0.86rem;
  font-weight: 650;
  padding: 0.32rem 0.35rem;
  border-radius: 6px;
  line-height: 1.25;
}

.piezarota-filters-row > a:hover,
.piezarota-filters-item.is-current > .piezarota-filters-row > a,
.piezarota-filters-children li.is-current > a {
  background: #eef4fb;
  color: var(--pz-navy);
}

.piezarota-filters-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pz-muted);
  white-space: nowrap;
}

.piezarota-filters-caret {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
}

.piezarota-filters-caret::before {
  content: "";
  position: absolute;
  inset: 7px 6px 7px 8px;
  border-left: 5px solid var(--pz-muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}

.piezarota-filters-item.is-open > .piezarota-filters-row > .piezarota-filters-caret::before {
  transform: rotate(90deg);
}

.piezarota-filters-caret--empty {
  visibility: hidden;
  pointer-events: none;
}

.piezarota-filters-children {
  padding: 0.1rem 0 0.25rem 1.35rem;
}

.piezarota-filters-children a {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--pz-ink);
  font-size: 0.8rem;
  padding: 0.28rem 0.35rem;
  border-radius: 5px;
}

.piezarota-filters-subtitle {
  margin: 0.85rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pz-muted);
}

.piezarota-filters-hint {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  color: var(--pz-muted);
}

.piezarota-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.piezarota-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #c5d0de;
  background: #f7fafc;
  color: var(--pz-navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.piezarota-chip:hover,
.piezarota-chip.is-active {
  background: var(--pz-navy);
  border-color: var(--pz-navy);
  color: #fff;
}

.piezarota-chip--attr {
  font-weight: 600;
}

/* Grid denso listados */
.piezarota-shop-dense ul.products,
.piezarota-home-featured--dense ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both;
}

.piezarota-shop-dense ul.products::before,
.piezarota-shop-dense ul.products::after,
.piezarota-home-featured--dense ul.products::before,
.piezarota-home-featured--dense ul.products::after {
  display: none !important;
  content: none !important;
}

.piezarota-shop-dense ul.products li.product,
.piezarota-home-featured--dense ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  padding: 0.45rem !important;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(11, 31, 58, 0.07);
  display: flex;
  flex-direction: column;
}

.piezarota-shop-dense ul.products li.product img,
.piezarota-home-featured--dense ul.products li.product img {
  margin-bottom: 0.35rem !important;
}

.piezarota-shop-dense ul.products li.product .woocommerce-loop-product__title,
.piezarota-home-featured--dense ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.78rem !important;
  line-height: 1.25;
  margin: 0 0 0.25rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2em;
}

.piezarota-shop-dense ul.products li.product .price,
.piezarota-home-featured--dense ul.products li.product .price {
  font-size: 0.92rem !important;
  font-weight: 800;
  color: var(--pz-navy);
  margin: 0.15rem 0 0.35rem !important;
}

.piezarota-price-consult {
  color: var(--pz-blue);
  font-weight: 700;
  font-size: 0.88rem;
}

.piezarota-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.piezarota-card-ref {
  font-weight: 800;
  color: var(--pz-red);
  letter-spacing: 0.02em;
}

.piezarota-card-brand {
  font-weight: 650;
  color: var(--pz-muted);
}

.piezarota-card-excerpt {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--pz-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.piezarota-shop-dense ul.products li.product .button,
.piezarota-home-featured--dense ul.products li.product .button,
.piezarota-btn-comprar,
.piezarota-btn-solicitar {
  margin-top: auto !important;
  width: 100%;
  text-align: center;
  font-size: 0.78rem !important;
  padding: 0.45rem 0.4rem !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}

.piezarota-btn-comprar {
  background: var(--pz-red) !important;
  border-color: var(--pz-red) !important;
}

.piezarota-btn-solicitar {
  background: var(--pz-navy) !important;
  border-color: var(--pz-navy) !important;
}

@media (min-width: 1280px) {
  .piezarota-shop-dense ul.products,
  .piezarota-home-featured--dense ul.products {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .piezarota-shop-dense ul.products,
  .piezarota-home-featured--dense ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .piezarota-shop-layout {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
  .piezarota-filters {
    position: sticky;
    top: 0.5rem;
    z-index: 35;
    max-height: min(42vh, 320px);
  }
  .piezarota-filters-toggle {
    display: inline-flex;
  }
  .piezarota-shop-dense ul.products,
  .piezarota-home-featured--dense ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem !important;
  }
}

@media (max-width: 560px) {
  .piezarota-shop-dense ul.products,
  .piezarota-home-featured--dense ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Banner home (marca, no vacío) */
.piezarota-home-banner {
  max-width: none;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
}

.piezarota-home-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 0;
  min-height: 220px;
  background:
    linear-gradient(118deg, rgba(11, 31, 58, 0.96) 0%, rgba(11, 79, 138, 0.9) 52%, rgba(200, 16, 46, 0.82) 100%),
    var(--pz-pattern);
  background-size: auto, 180px 180px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  color: #fff;
}

.piezarota-home-banner-copy {
  padding: 1.75rem 1.5rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.piezarota-home-banner-copy h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.piezarota-home-banner-copy p {
  margin: 0 0 1rem;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.piezarota-home-banner-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.piezarota-home-banner .button,
.piezarota-home-banner a.button {
  background: #fff !important;
  color: var(--pz-navy) !important;
  border: 2px solid #fff !important;
  font-weight: 800;
  border-radius: 10px;
  padding: 0.75em 1.35em;
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.28);
}

.piezarota-home-banner a.button.alt {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border-color: #fff !important;
}

.piezarota-home-banner-visual {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(11, 31, 58, 0.2), rgba(200, 16, 46, 0.25));
}

.piezarota-home-banner-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.piezarota-home-banner-plate {
  position: relative;
  z-index: 1;
  width: min(78%, 260px);
  aspect-ratio: 1;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    var(--pz-pattern);
  background-size: auto, 90px 90px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.piezarota-home-banner-plate-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.piezarota-home-featured--dense {
  margin-bottom: 1.5rem;
}

@media (max-width: 760px) {
  .piezarota-home-banner-inner {
    grid-template-columns: 1fr;
  }
  .piezarota-home-banner-visual {
    min-height: 140px;
    order: -1;
  }
  .piezarota-home-banner-plate {
    width: 120px;
    margin: 0.75rem 0;
  }
}

/* Cat filter (busca modelo) más compacto dentro del main */
.piezarota-shop-main .piezarota-cat-filter {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

/* =====================================================================
   1.9.19 — Home móvil: producto primero, botones secundarios,
   sin solapes de idioma/WhatsApp. Mobile-first, marca navy/rojo.
   ===================================================================== */

/* Frase de qué vende, justo bajo la marca */
.piezarota-search-tagline {
  margin: 0 0 0.6rem;
  color: #eaf1fb;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.piezarota-search-tagline strong { color: #fff; }

/* El buscador sigue siendo protagonista, pero más compacto */
@media (max-width: 768px) {
  #piezarota-ai-search,
  .piezarota-ai-search {
    padding: 0.7rem 0.75rem 0.55rem !important;
    margin: 0.25rem 0 0.75rem;
  }
  .piezarota-search-tagline {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
}

/* ---- Accesos rápidos = SECUNDARIOS: fila fina que se desliza ---- */
@media (max-width: 768px) {
  .piezarota-quick-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    margin: 0.55rem 0 0.15rem;
    padding-bottom: 0.15rem;
  }
  .piezarota-quick-actions::-webkit-scrollbar { display: none; }

  .piezarota-qa,
  .piezarota-qa--hot,
  .piezarota-qa--devol {
    flex: 0 0 auto;
    min-height: 0 !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: none !important;
    font-size: 0.82rem !important;
    text-transform: none;
    white-space: nowrap;
  }
  /* En móvil los atajos no llevan subtítulo: ocupan menos */
  .piezarota-qa-sub { display: none !important; }
  .piezarota-qa-title { font-size: 0.82rem !important; }

  /* Solo "Mi cuenta" y "Anuncios" mantienen el rojo de marca */
  .piezarota-qa--hot {
    background: var(--pz-red) !important;
    border-color: #ffd4da !important;
  }
}

/* La franja de enlaces (Ver categorías, Asistente…) más discreta */
@media (max-width: 768px) {
  .piezarota-search-hint {
    margin: 0.5rem 0 0 !important;
    font-size: 0.8rem;
  }
}

/* ---- Categorías con foto ARRIBA del todo, dentro del primer vistazo ---- */
.home .site-main > .piezarota-home-cats--wide:first-child {
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .home .piezarota-home-cats--wide .piezarota-cats {
    padding: 0.85rem 0.75rem 1rem;
  }
  .home .piezarota-home-cats--wide > .piezarota-section-title {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
  }
  /* Ahorramos altura: el lead largo no hace falta en móvil */
  .home .piezarota-home-cats--wide > .piezarota-section-lead {
    display: none;
  }
  .home .piezarota-parents {
    margin-bottom: 0.5rem;
  }
}

/* ---- Sin solapes: ocultar selector idioma FLOTANTE de plugins ----
   Ya tenemos ES | EN en la cabecera; el flotante tapaba la barra
   inferior, el buscador y el botón de WhatsApp.
   OJO: TranslatePress 3.2.x usa .trp-floating-switcher (NO el viejo
   #trp-floater-language-switcher). Se cubren ambos + GTranslate/Weglot/WPML. */
#trp-floater-language-switcher,
.trp-floater-language-switcher,
.trp-language-switcher-container.trp-floater-language-current-language,
.trp_floater_language_switcher,
.trp-floater,
.trp-floating-switcher,
.trp-language-switcher.trp-floating-switcher,
.trp-language-switcher.trp-switcher-position-bottom,
.trp-language-switcher.trp-switcher-position-top,
#gt_float_wrapper,
.gtranslate_wrapper,
.weglot-container.wg-default,
.wpml-floating-language-switcher {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---- WhatsApp: por encima de la barra inferior, sin tapar nada ---- */
.pz-wa-fab { z-index: 99970; }
@media (max-width: 640px) {
  .pz-wa-fab {
    right: 0.8rem;
    bottom: 4.6rem;
    padding: 0.7rem;
  }
}

/* ---- Barra inferior Storefront: una sola, limpia, siempre encima ---- */
.storefront-handheld-footer-bar {
  z-index: 99960 !important;
  box-shadow: 0 -6px 18px rgba(11, 31, 58, 0.14);
  border-top: 2px solid var(--pz-red);
}

/* Título de marca con más carácter (sin slop) */
.site-branding .site-title {
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* =====================================================================
   1.9.21 — Burbujas flotantes a MEDIA ALTURA (sin solape) + cookies OK
   WhatsApp (verde) arriba y Asistente (rojo) debajo, apiladas en el
   lateral derecho, centradas verticalmente y SIEMPRE con hueco claro.
   Antes estaban pegadas abajo a la derecha y se pisaban.
   ===================================================================== */

/* WhatsApp: su borde INFERIOR queda 12px por encima del centro. */
.pz-wa-fab {
  top: 50% !important;
  bottom: auto !important;
  right: 14px !important;
  transform: translateY(-100%);
  margin-top: -12px;
  z-index: 99975 !important;
}

/* Asistente: su borde SUPERIOR queda 12px por debajo del centro
   (hueco total ~24px, imposible que se solapen). */
.pz-chat:not(.pz-chat--page) {
  top: 50% !important;
  bottom: auto !important;
  right: 12px !important;
  margin-top: 12px;
}

/* El panel del chat se abre SIEMPRE desde la esquina inferior:
   cómodo y sin recortes en móvil, aunque la burbuja esté a media altura. */
.pz-chat:not(.pz-chat--page).is-open .pz-chat-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: auto;
  margin: 0;
  z-index: 100010;
}

@media (max-width: 640px) {
  .pz-wa-fab {
    right: 12px !important;
    bottom: auto !important;
    margin-top: -14px;
  }
  .pz-chat:not(.pz-chat--page) {
    right: 12px !important;
    bottom: auto !important;
    margin-top: 10px;
  }
}

/* Aviso de cookies (Complianz o el propio) SIEMPRE por encima de las
   burbujas y clicable en móvil: nada de quedar tapado por z-index. */
#cmplz-cookiebanner-container,
.cmplz-cookiebanner,
#cmplz-manage-consent,
.cc-window,
.piezarota-cc {
  z-index: 2147483000 !important;
}

