/* =========================================================================
   WOOCOMMERCE — Área de socios, jornadas, carrito y pago
   Adapta WooCommerce a nuestro sistema de diseño (tokens de style.css).
   ========================================================================= */

/* Contenedor común de las vistas de Woo */
.prlb-seccion.woocommerce-page .entry-content,
.prlb-seccion.woocommerce .entry-content {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}
/* El título de la tienda ya lo muestra nuestro hero: evitamos duplicarlo. */
.woocommerce-products-header { display: none; }
/* Las migas de WooCommerce, discretas y sin tanto aire. */
.woocommerce .woocommerce-breadcrumb {
    margin: 0 0 var(--prlb-space-3);
    font-size: var(--prlb-fs-pequeno);
    color: var(--prlb-texto-secundario);
}
/* Barra de resultados + orden, en una línea limpia */
.woocommerce .woocommerce-result-count { color: var(--prlb-texto-secundario); font-size: var(--prlb-fs-pequeno); margin: 0; }
.woocommerce .woocommerce-ordering select {
    padding: 0.5rem 0.9rem;
    font: inherit;
    font-size: var(--prlb-fs-pequeno);
    color: var(--prlb-texto);
    background: var(--prlb-fondo);
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius);
}

/* --- Barra superior: filtros + orden en una línea ----------------------- */
.prlb-shop-barra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--prlb-space-2);
    margin: 0 0 var(--prlb-space-3);
    padding-bottom: var(--prlb-space-3);
    border-bottom: 1px solid var(--prlb-borde);
}
.prlb-shop-orden { flex: none; }
/* El desplegable de orden: grande y legible, no un select minúsculo */
.prlb-shop-orden .woocommerce-ordering { margin: 0 !important; }
.prlb-shop-orden select,
.woocommerce .prlb-shop-orden .orderby {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    padding: 0.6rem 2.8rem 0.6rem 1.1rem;
    font: inherit;
    font-size: var(--prlb-fs-base);
    font-weight: 600;
    color: var(--prlb-texto);
    background-color: var(--prlb-fondo);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius-pill);
    cursor: pointer;
    transition: border-color var(--prlb-transition), box-shadow var(--prlb-transition);
}
.prlb-shop-orden select:hover { border-color: var(--prlb-acento); }
.prlb-shop-orden select:focus-visible {
    outline: none;
    border-color: var(--prlb-acento);
    box-shadow: 0 0 0 3px rgba(224, 0, 16, 0.14);
}
@media (max-width: 640px) {
    .prlb-shop-barra { flex-direction: column; align-items: stretch; }
    .prlb-shop-orden select { width: 100%; }
}

/* --- Filtro por categorías (pastillas) ---------------------------------- */
.prlb-shop-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}
.prlb-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius-pill);
    font-size: var(--prlb-fs-pequeno);
    font-weight: 600;
    color: var(--prlb-texto-secundario);
    background: var(--prlb-fondo);
    text-decoration: none;
    transition: all var(--prlb-transition);
}
.prlb-chip span {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.05rem 0.4rem;
    border-radius: var(--prlb-radius-pill);
    background: var(--prlb-fondo-alt);
    color: var(--prlb-texto-secundario);
}
.prlb-chip:hover {
    color: var(--prlb-acento);
    border-color: var(--prlb-acento);
}
.prlb-chip.is-active {
    color: #fff;
    background: var(--prlb-acento);
    border-color: var(--prlb-acento);
}
.prlb-chip.is-active span { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* --- Botones ------------------------------------------------------------ */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background-color: var(--prlb-acento);
    border: 1px solid var(--prlb-acento);
    border-radius: var(--prlb-radius);
    text-shadow: none;
    box-shadow: none;
    transition: background-color var(--prlb-transition), transform var(--prlb-transition);
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    color: #fff;
    background-color: #b3000d;
    border-color: #b3000d;
    transform: translateY(-1px);
}

/* --- Campos ------------------------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty {
    padding: 0.7rem 0.9rem;
    font: inherit;
    color: var(--prlb-texto);
    background: var(--prlb-fondo);
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius);
    box-shadow: none;
    transition: border-color var(--prlb-transition), box-shadow var(--prlb-transition);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--prlb-acento);
    box-shadow: 0 0 0 3px rgba(224, 0, 16, 0.14);
}
.woocommerce form .form-row label { font-size: var(--prlb-fs-pequeno); font-weight: 600; }

/* --- Avisos ------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top: 0;
    border-radius: var(--prlb-radius);
    background: var(--prlb-fondo-alt);
    color: var(--prlb-texto);
    border: 1px solid var(--prlb-borde);
    padding: 0.9rem 1.1rem 0.9rem 1.1rem;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }
.woocommerce-message { background: #e9f7ef; border-color: #b7e4c7; color: #1b6b3a; }
.woocommerce-error { background: #fdecec; border-color: #f5c2c2; color: #a3000c; }

/* =========================================================================
   ÁREA DE SOCIOS (my account)
   ========================================================================= */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}
/* WooCommerce añade un clearfix (::before/::after con display:table) que en
   una rejilla se convierte en DOS items más y descoloca las columnas
   (la navegación se iba a la celda 2 y el contenido a la fila siguiente). */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
    display: none;
}
@media (max-width: 820px) {
    .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}
/* Cuando no hay sesión (formulario de acceso) va a una sola columna */
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 460px; margin-inline: auto; }

/* --- Navegación lateral en tarjeta --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: auto;
    float: none;
    background: var(--prlb-fondo);
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius-lg);
    box-shadow: var(--prlb-shadow);
    padding: 0.6rem;
    position: sticky;
    top: calc(var(--prlb-header-h) + 1rem);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: var(--prlb-radius);
    color: var(--prlb-texto);
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--prlb-transition), color var(--prlb-transition);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: var(--prlb-fondo-alt);
    color: var(--prlb-acento);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--prlb-acento);
    color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content {
    width: auto;
    float: none;
}

/* --- Acreditación de congreso (detalle del pedido) --- */
.prlb-acred-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--prlb-space-3);
    margin: var(--prlb-space-3) 0;
    padding: var(--prlb-space-3);
    border-radius: var(--prlb-radius-lg);
    background: rgba(224, 0, 16, 0.05);
    border: 1px solid rgba(224, 0, 16, 0.2);
}
.prlb-acred-cta strong { display: block; font-size: var(--prlb-fs-grande); }
.prlb-acred-cta p { margin: 0.2rem 0 0; color: var(--prlb-texto-secundario); font-size: var(--prlb-fs-pequeno); }
.prlb-acred-cta .prlb-btn { flex: none; }

/* --- Estado de la cuota (panel propio) --- */
.prlb-socio-estado {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--prlb-space-3);
    padding: clamp(1.25rem, 3vw, 1.9rem);
    border-radius: var(--prlb-radius-lg);
    color: #fff;
    background: linear-gradient(135deg, var(--prlb-escudo, #2a1418), #1a1a1c);
    box-shadow: var(--prlb-shadow-lg);
    margin-bottom: var(--prlb-space-4);
}
.prlb-socio-estado h2 { color: #fff; margin: 0.4rem 0 0.3rem; font-size: var(--prlb-fs-h3); }
.prlb-socio-estado p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.prlb-socio-estado__aside { text-align: right; display: grid; gap: 0.6rem; justify-items: end; }
.prlb-socio-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: var(--prlb-radius-pill);
    font-size: var(--prlb-fs-pequeno);
    font-weight: 600;
    color: #7ee2a8;
    background: rgba(126, 226, 168, 0.14);
}
.prlb-socio-badge--no { color: #ffb3b8; background: rgba(255, 179, 184, 0.14); }
.prlb-socio-precio { font-size: 1.6rem; font-weight: 700; color: #fff; }
.prlb-socio-precio span { font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.prlb-socio-estado .prlb-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.10);
}
.prlb-socio-estado .prlb-btn--ghost:hover { background-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* --- Accesos directos --- */
.prlb-socio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--prlb-space-3);
}
.prlb-socio-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: var(--prlb-space-3);
    background: var(--prlb-fondo);
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius-lg);
    box-shadow: var(--prlb-shadow);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--prlb-transition), transform var(--prlb-transition);
}
.prlb-socio-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--prlb-acento), #ff7a82);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.prlb-socio-card:hover::before { transform: scaleX(1); }
.prlb-socio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(224, 0, 16, 0.14);
    color: inherit;
}
.prlb-socio-card h3 { margin: 0; font-size: var(--prlb-fs-grande); }
.prlb-socio-card p { margin: 0; color: var(--prlb-texto-secundario); font-size: var(--prlb-fs-pequeno); flex: 1; }
.prlb-socio-card__go {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: var(--prlb-space-2);
    font-size: var(--prlb-fs-pequeno);
    font-weight: 600;
    color: var(--prlb-acento);
    transition: gap var(--prlb-transition);
}
.prlb-socio-card__go svg { width: 16px; height: 16px; }
.prlb-socio-card:hover .prlb-socio-card__go { gap: 0.6rem; }

.prlb-cuota-vacia { text-align: center; padding: var(--prlb-space-4); }

/* =========================================================================
   TIENDA / CONGRESOS
   ========================================================================= */

/* --- Banda de ventajas bajo el hero --- */
.prlb-shop-ventajas {
    padding: var(--prlb-space-3) 0 var(--prlb-space-4);
    border-bottom: 1px solid var(--prlb-borde);
    margin-bottom: var(--prlb-space-4);
}
.prlb-shop-ventajas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--prlb-space-3);
}
.prlb-shop-ventaja { display: flex; align-items: flex-start; gap: 0.9rem; }
.prlb-shop-ventaja__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(224, 0, 16, 0.22);
    box-shadow: 0 0 0 5px rgba(224, 0, 16, 0.05);
    color: var(--prlb-acento);
}
.prlb-shop-ventaja__icon svg { width: 21px; height: 21px; }
.prlb-shop-ventaja h3 { margin: 0 0 0.15rem; font-size: var(--prlb-fs-base); }
.prlb-shop-ventaja p { margin: 0; font-size: var(--prlb-fs-pequeno); color: var(--prlb-texto-secundario); line-height: 1.5; }

/* --- Rejilla: tarjetas más anchas y con aire (ganamos a columns-4) --- */
.woocommerce ul.products.columns-4,
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--prlb-space-2);
    margin: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; } /* clearfix que rompe la rejilla */
.woocommerce ul.products li.product {
    width: auto !important;   /* WooCommerce fija anchos en % para su float */
    float: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--prlb-fondo);
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius-lg);
    box-shadow: var(--prlb-shadow);
    padding: var(--prlb-space-2);
    transition: box-shadow var(--prlb-transition), transform var(--prlb-transition);
}
.woocommerce ul.products li.product::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--prlb-acento), #ff7a82);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.woocommerce ul.products li.product:hover::before { transform: scaleX(1); }
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(224, 0, 16, 0.14);
}

/* --- Contenido de la tarjeta --- */
.prlb-prod-cat {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--prlb-radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--prlb-acento);
    background: rgba(224, 0, 16, 0.08);
}
.prlb-prod-desc {
    margin: 0.3rem 0 0 !important;
    font-size: var(--prlb-fs-pequeno);
    color: var(--prlb-texto-secundario);
    line-height: 1.45;
}
/* Fila compacta de datos: precio de socio + plazas, en una línea */
.prlb-prod-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.7rem;
    margin: 0.5rem 0 0 !important;
    font-size: 0.75rem;
    font-weight: 600;
}
/* Cada dato en una pieza: si no caben juntos, salta el bloque entero
   a la línea siguiente en vez de partirse por la mitad. */
.prlb-prod-socio,
.prlb-prod-plazas { white-space: nowrap; }
.prlb-prod-socio { color: var(--prlb-texto-secundario); }
/* WooCommerce fuerza `.woocommerce ul.products li.product strong{display:block}`
   y partía el dato en dos líneas ("Socios" arriba y el importe debajo).
   Hay que igualar su especificidad para devolverlo a en línea. */
.woocommerce ul.products li.product .prlb-prod-socio strong,
.prlb-prod-socio strong {
    display: inline;
    color: var(--prlb-acento);
    margin-left: 0.15rem;
}
.prlb-prod-socio .amount { font-size: inherit; white-space: nowrap; }
.prlb-prod-socio--ok { color: #1b6b3a; }
.prlb-prod-plazas { color: var(--prlb-texto-secundario); }
.prlb-prod-plazas::before { content: "● "; color: #1b9e52; }
.prlb-prod-plazas--pocas { color: #a35200; }
.prlb-prod-plazas--pocas::before { color: #e08900; }
.prlb-prod-plazas--agotado { color: #a3000c; }
.prlb-prod-plazas--agotado::before { color: #a3000c; }

/* El precio, protagonista */
.woocommerce ul.products li.product .price {
    margin: 0.6rem 0 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--prlb-texto) !important;
}
/* Empuja el botón al fondo para que todas las tarjetas lo alineen */
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--prlb-fs-base);
    font-weight: 700;
    line-height: 1.3;
    padding: 0.3rem 0 0 !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--prlb-texto); font-weight: 700; }

/* --- Botón de la tarjeta: grande, a todo el ancho y accesible --- */
.woocommerce ul.products li.product .button {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: var(--prlb-space-2);
    padding: 0.7rem 1rem;
    min-height: 44px;              /* objetivo táctil accesible */
    font-size: var(--prlb-fs-base);
}
.woocommerce ul.products li.product .button.added::after { margin-left: 0.4rem; }
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce ul.products li.product .button:focus-visible {
    outline: 3px solid var(--prlb-texto);
    outline-offset: 2px;
}
/* "Ver carrito" tras añadir: secundario, para no competir */
.woocommerce ul.products li.product .added_to_cart {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
    font-size: var(--prlb-fs-pequeno);
    font-weight: 600;
    color: var(--prlb-acento);
}

/* --- Banda final para no socios --- */
.prlb-shop-cta {
    margin-top: var(--prlb-space-5);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: var(--prlb-radius-lg);
    color: #fff;
    background: linear-gradient(135deg, var(--prlb-escudo, #2a1418), #1a1a1c);
    box-shadow: var(--prlb-shadow-lg);
}
.prlb-shop-cta__inner {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: var(--prlb-space-4);
    align-items: center;
}
@media (max-width: 820px) { .prlb-shop-cta__inner { grid-template-columns: 1fr; } }
.prlb-shop-cta .prlb-eyebrow { color: #ff7a82; }
.prlb-shop-cta h2 { color: #fff; margin: 0 0 var(--prlb-space-2); font-size: var(--prlb-fs-h3); }
.prlb-shop-cta p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.prlb-shop-cta strong { color: #fff; }
.prlb-shop-cta__aside { text-align: center; }
.prlb-shop-cta__aside .prlb-btn { width: 100%; justify-content: center; }
.prlb-shop-cta__hint { margin: var(--prlb-space-2) 0 0 !important; font-size: var(--prlb-fs-pequeno); }
.prlb-shop-cta__hint a { color: #fff; text-decoration: underline; }
/* Marco de imagen uniforme: todas las tarjetas miden igual y la imagen se ve
   ENTERA (los carteles son verticales y un recorte cuadrado los destrozaba). */
.woocommerce ul.products li.product img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--prlb-fondo-alt);
    border-radius: var(--prlb-radius);
    margin-bottom: var(--prlb-space-2);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--prlb-fs-grande);
    font-weight: 700;
    padding: 0.4rem 0;
}
/* La ficha del producto sí muestra la imagen a su tamaño natural. */
.woocommerce div.product div.images img {
    aspect-ratio: auto;
    object-fit: contain;
    background: var(--prlb-fondo-alt);
    border-radius: var(--prlb-radius-lg);
}
.woocommerce ul.products li.product .price { color: var(--prlb-texto); font-weight: 600; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--prlb-texto); font-weight: 700; }

/* Aviso de precio de socio en la ficha */
.prlb-precio-socio {
    padding: 0.8rem 1rem;
    border-radius: var(--prlb-radius);
    background: rgba(224, 0, 16, 0.06);
    border: 1px solid rgba(224, 0, 16, 0.18);
    font-size: var(--prlb-fs-pequeno);
    color: var(--prlb-texto);
}
.prlb-precio-socio--activo {
    background: #e9f7ef;
    border-color: #b7e4c7;
    color: #1b6b3a;
    font-weight: 600;
}

/* Pestañas de la ficha de producto */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin-bottom: var(--prlb-space-3);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--prlb-borde); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 1.2rem 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.6rem 0;
    font-weight: 600;
    color: var(--prlb-texto-secundario);
    border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--prlb-acento);
    border-bottom-color: var(--prlb-acento);
}

/* =========================================================================
   CARRITO Y PAGO — BLOQUES (WooCommerce Blocks)
   Las páginas de Carrito y Finalizar inscripción usan los bloques nuevos
   (React), con clases .wc-block-* distintas del marcado clásico. Necesitan
   sus propias reglas para heredar nuestro diseño.
   ========================================================================= */
.wc-block-components-button:not(.is-link) {
    padding: 0.8rem 1.65rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background-color: var(--prlb-acento);
    border: 1px solid var(--prlb-acento);
    border-radius: var(--prlb-radius);
    box-shadow: none;
    transition: background-color var(--prlb-transition), transform var(--prlb-transition);
}
.wc-block-components-button:not(.is-link):hover {
    color: #fff;
    background-color: #b3000d;
    border-color: #b3000d;
    transform: translateY(-1px);
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: inherit; }
.wc-block-components-button.is-link { color: var(--prlb-acento); }

/* Campos de los bloques */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-textarea {
    padding: 0.8rem 1rem;
    font: inherit;
    color: var(--prlb-texto);
    background: var(--prlb-fondo);
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius);
}
.wc-block-components-text-input.is-active input:focus,
.wc-block-components-text-input input:focus {
    outline: none;
    border-color: var(--prlb-acento);
    box-shadow: 0 0 0 3px rgba(224, 0, 16, 0.14);
}

/* =========================================================================
   CARRITO VACÍO — estado limpio + sugerencias (rediseño completo)
   ========================================================================= */
/* Ocultamos cualquier resto del bloque nativo (carita triste, etc.). */
.wp-block-woocommerce-empty-cart-block > .wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block .with-empty-cart-icon { display: none !important; }

/* --- Estado vacío: centrado, con aire, sin dramatismo --- */
.prlb-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}
.prlb-empty__icon {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: var(--prlb-space-3);
    border-radius: 50%;
    color: var(--prlb-acento);
    background: rgba(224, 0, 16, 0.07);
    border: 1px solid rgba(224, 0, 16, 0.15);
}
.prlb-empty__icon svg { width: 34px; height: 34px; }
.prlb-empty__title {
    margin: 0 0 var(--prlb-space-2);
    font-size: var(--prlb-fs-h2);
    color: var(--prlb-texto);
}
.prlb-empty__text {
    max-width: 42ch;
    margin: 0 auto var(--prlb-space-4);
    color: var(--prlb-texto-secundario);
    line-height: 1.6;
}
.prlb-empty__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--prlb-space-2);
}
.prlb-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    color: #fff;
    background: var(--prlb-acento);
    border-radius: var(--prlb-radius-pill);
    text-decoration: none;
    transition: background-color var(--prlb-transition), transform var(--prlb-transition);
}
.prlb-empty__btn:hover { color: #fff; background: #b3000d; transform: translateY(-1px); }
.prlb-empty__link { font-size: var(--prlb-fs-pequeno); font-weight: 600; color: var(--prlb-acento); }
.prlb-empty__link:hover { color: #b3000d; }

/* --- Sugerencias: fila uniforme, tarjetas iguales --- */
.prlb-sug {
    margin-top: var(--prlb-space-4);
    padding-top: var(--prlb-space-4);
    border-top: 1px solid var(--prlb-borde);
}
.prlb-sug__titulo {
    text-align: center;
    margin: 0 0 var(--prlb-space-3);
    font-size: var(--prlb-fs-h3);
    color: var(--prlb-texto);
}
.prlb-sug__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: var(--prlb-space-3);
    justify-content: center;
}
.prlb-sug__card {
    display: flex;
    flex-direction: column;
    background: var(--prlb-fondo);
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius-lg);
    box-shadow: var(--prlb-shadow);
    overflow: hidden;
    transition: box-shadow var(--prlb-transition), transform var(--prlb-transition);
}
.prlb-sug__card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(224, 0, 16, 0.12); }
.prlb-sug__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--prlb-fondo-alt);
    overflow: hidden;
}
.prlb-sug__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.prlb-sug__body { display: flex; flex-direction: column; gap: 0.25rem; padding: var(--prlb-space-2); }
.prlb-sug__nombre { margin: 0; font-size: var(--prlb-fs-base); font-weight: 700; line-height: 1.3; }
.prlb-sug__nombre a { color: var(--prlb-texto); }
.prlb-sug__nombre a:hover { color: var(--prlb-acento); }
.prlb-sug__precio { margin: 0.2rem 0 0; font-size: 1.1rem; font-weight: 700; color: var(--prlb-texto); }
.prlb-sug__precio .amount { color: var(--prlb-texto); }
.prlb-sug__socio { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--prlb-texto-secundario); }
.prlb-sug__socio strong { color: var(--prlb-acento); }
/* `.prlb-sug .prlb-sug__btn` (0,2,0) para ganar al `a.button` (0,1,1) de
   GeneratePress, que pintaba el botón en gris. */
.prlb-sug .prlb-sug__btn,
.prlb-sug a.prlb-sug__btn {
    margin-top: var(--prlb-space-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--prlb-acento);
    border: 1px solid var(--prlb-acento);
    border-radius: var(--prlb-radius);
    text-decoration: none;
    transition: background-color var(--prlb-transition), transform var(--prlb-transition);
}
.prlb-sug .prlb-sug__btn:hover,
.prlb-sug a.prlb-sug__btn:hover { background: #b3000d; border-color: #b3000d; transform: translateY(-1px); }
/* "Ver carrito" que WooCommerce añade tras el botón AJAX */
.prlb-sug__card .added_to_cart {
    display: block;
    margin: 0.5rem var(--prlb-space-2) var(--prlb-space-2);
    text-align: center;
    font-size: var(--prlb-fs-pequeno);
    font-weight: 600;
    color: var(--prlb-acento);
}

/* Totales y filas */
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-weight: 700;
    color: var(--prlb-texto);
}
.wc-block-cart-items__row .wc-block-components-product-name {
    font-weight: 600;
    color: var(--prlb-texto);
}
.wc-block-cart-items__row .wc-block-components-product-name:hover { color: var(--prlb-acento); }
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar .wc-block-components-sidebar {
    background: var(--prlb-fondo-alt);
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius-lg);
    padding: var(--prlb-space-3);
}
.wc-block-components-title,
.wc-block-cart__totals-title {
    font-size: var(--prlb-fs-pequeno);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--prlb-texto-secundario);
}
/* Selector de cantidad */
.wc-block-components-quantity-selector {
    border-radius: var(--prlb-radius);
    border-color: var(--prlb-borde);
}
.wc-block-components-quantity-selector__button { color: var(--prlb-texto); }
.wc-block-components-quantity-selector__button:hover { color: var(--prlb-acento); }

/* =========================================================================
   CARRITO Y PAGO — MARCADO CLÁSICO (por si se usan los shortcodes)
   ========================================================================= */
.woocommerce table.shop_table {
    border: 1px solid var(--prlb-borde);
    border-radius: var(--prlb-radius-lg);
    border-collapse: separate;
    overflow: hidden;
}
.woocommerce table.shop_table th { font-size: var(--prlb-fs-pequeno); text-transform: uppercase; letter-spacing: 0.04em; }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 { font-size: var(--prlb-fs-h3); }
.woocommerce-checkout #payment {
    background: var(--prlb-fondo-alt);
    border-radius: var(--prlb-radius-lg);
}
.woocommerce-checkout #payment div.payment_box { background: var(--prlb-fondo); border-radius: var(--prlb-radius); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
