.be-portal,
.be-auth,
body.be-compte .woocommerce {
    --be-vermell: #ed0010;
    --be-enllac: #bc000d;
    --be-tinta: #202124;
    --be-gris: #66676b;
    --be-linia: #e3e3e5;
    --be-suau: #f6f6f7;
    color: var(--be-tinta);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    min-width: 0;
}
.be-portal *, .be-auth * { box-sizing: border-box; }
.be-portal a, .be-auth a { color: var(--be-enllac); text-underline-offset: 4px; }
.be-portal [hidden], .be-auth [hidden] { display: none !important; }
.be-portal h1, .be-auth h1 { margin: 6px 0 12px; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: 0; color: var(--be-tinta); }
.be-portal h2, .be-auth h2 { margin: 0 0 12px; font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--be-tinta); }
.be-sobretitol { display: block; color: var(--be-enllac); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.be-cap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--be-linia); }
.be-cap h1 { margin-bottom: 0; }
.be-portal a.be-boto, .be-portal button.be-boto {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px; border: 1px solid var(--be-vermell);
    border-radius: 4px; background: var(--be-vermell); color: #fff;
    font: inherit; font-weight: 700; font-size: 15px; line-height: 1.4;
    text-align: center; text-decoration: none; cursor: pointer;
    transition: background .15s, box-shadow .15s; white-space: normal;
}
.be-portal a.be-boto:visited { color: #fff; }
.be-portal a.be-boto:hover, .be-portal a.be-boto:focus-visible, .be-portal a.be-boto:active,
.be-portal button.be-boto:hover, .be-portal button.be-boto:focus-visible, .be-portal button.be-boto:active { background: #b9000c; color: #fff; border-color: #b9000c; text-decoration: none; }
.be-boto:disabled { cursor: wait; opacity: .7; }
.be-portal a.be-boto-secundari, .be-portal button.be-boto-secundari { background: #fff; color: #bc000d; border-color: #bc000d; }
.be-portal a.be-boto-secundari:hover, .be-portal button.be-boto-secundari:hover { color: #fff; background: #b9000c; }
.be-enllac { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.be-enllac:hover { text-decoration: underline; }
.be-tornar { margin-bottom: 24px; }
.be-portal :focus-visible, .be-auth :focus-visible, body.be-compte .woocommerce-MyAccount-navigation a:focus-visible { outline: 3px solid #365f96; outline-offset: 3px; }
.be-maquines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.be-maquina { min-width: 0; border: 1px solid var(--be-linia); border-radius: 6px; overflow: hidden; background: #fff; }
.be-maquina-imatge { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #fafafa; padding: 24px; }
.be-maquina-imatge img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.be-model-text { font-size: 25px; font-weight: 700; color: #737479; text-align: center; overflow-wrap: anywhere; }
.be-maquina-contingut { padding: 24px; }
.be-maquina h2 { font-size: 22px; margin: 12px 0 18px; overflow-wrap: anywhere; }
.be-etiqueta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #2b6658; }
.be-etiqueta::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34816b; }
.be-maquina dl { margin: 0 0 22px; }
.be-maquina dt { margin-top: 12px; font-size: 12px; color: var(--be-gris); }
.be-maquina dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.be-buit { display: flex; align-items: center; gap: 36px; padding: 36px 0 48px; }
.be-buit-imatge { width: 210px; max-width: 36%; height: 190px; object-fit: contain; }
.be-buit p { color: var(--be-gris); margin: 0 0 24px; }
.be-buit h2 { font-size: 26px; }
.be-veure-totes { margin-top: 22px; }
.be-accessos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--be-linia); margin-top: 36px; }
.be-accessos a { display: flex; align-items: center; gap: 12px; padding: 22px 16px; color: var(--be-tinta); font-size: 14px; text-decoration: none; }
.be-accessos a > i:last-child { margin-left: auto; color: var(--be-vermell); }
.be-accessos a:hover { background: var(--be-suau); }
.be-registre { max-width: 1000px; margin: 32px auto 64px; }
.be-bloc { border: 0; border-bottom: 1px solid var(--be-linia); padding: 0 0 32px; margin: 0 0 32px; min-width: 0; }
.be-bloc legend { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 700; padding: 0; margin-bottom: 24px; float: none; width: 100%; line-height: 1.4; }
.be-bloc legend > span { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--be-vermell); min-width: 28px; padding-bottom: 3px; color: var(--be-vermell); }
.be-bloc legend small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--be-gris); }
.be-camps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 24px; }
.be-camp { min-width: 0; }
.be-camp-ample { grid-column: 1/-1; }
.be-camp label { display: block; color: var(--be-tinta); font-size: 14px; font-weight: 600; margin: 0 0 7px; }
.be-camp label > span[aria-hidden] { color: var(--be-vermell); }
.be-opcional { color: var(--be-gris); font-weight: 400; font-size: 12px; }
.be-camp input, .be-camp select, .be-camp textarea {
    display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px;
    border: 1px solid #bfc0c4; border-radius: 4px; padding: 11px 13px;
    background: #fff; color: var(--be-tinta); font: inherit; font-size: 16px; line-height: 1.5;
}
.be-camp select { padding-right: 32px; text-overflow: ellipsis; }
.be-camp input:focus, .be-camp select:focus { border-color: #65666b; }
.be-camp input[readonly] { background: var(--be-suau); color: #56575b; }
.be-camp input[aria-invalid=true] { border-color: var(--be-vermell); }
.be-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; margin: 4px 0; }
.be-check input[type=checkbox], .be-interes input[type=checkbox] { flex: 0 0 20px; appearance: auto; width: 20px; height: 20px; min-width: 20px; padding: 0; margin: 3px 0 0; accent-color: var(--be-vermell); }
.be-interessos { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 28px; }
.be-interes { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-size: 15px; cursor: pointer; }
.be-interes input { margin-top: 0 !important; }
.be-comunicacions { display: flex; align-items: flex-start; gap: 22px; background: var(--be-suau); border-left: 3px solid var(--be-vermell); padding: 28px; margin: 32px 0 24px; }
.be-comunicacions-icona { color: var(--be-vermell); font-size: 27px; padding-top: 3px; }
.be-comunicacions h2 { font-size: 22px; margin-bottom: 6px; }
.be-comunicacions p { margin: 0 0 16px; color: #56575b; }
.be-comunicacions .be-nota { margin: 10px 0 0 32px; font-size: 12px; }
.be-nota { color: var(--be-gris); font-size: 13px; }
.be-privacitat { color: var(--be-gris); font-size: 12px; line-height: 1.7; margin: 24px 0; }
.be-privacitat p { margin: 0; }
.be-privacitat a { color: inherit; text-decoration: underline; }
.be-form-peu { display: flex; justify-content: flex-end; align-items: center; gap: 24px; border-top: 1px solid var(--be-linia); padding-top: 24px; }
.be-avis { display: flex; align-items: center; gap: 10px; background: #f0f3f6; border-left: 3px solid #3f627d; padding: 18px 20px; margin: 0 0 24px; font-size: 15px; }
.be-avis-exit { border-color: #2d7561; background: #eef6f2; color: #245345; }
.be-errors { display: block; color: #8b162b; border-color: var(--be-vermell); background: #fff2f3; }
.be-errors ul { margin: 8px 0 0; padding-left: 20px; }
.be-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.be-eliminar { border-top: 1px solid var(--be-linia); margin-top: 40px; padding-top: 20px; font-size: 14px; }
.be-eliminar summary { color: var(--be-gris); cursor: pointer; }
.be-eliminar p { margin-top: 20px; }
.be-paginacio { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 30px; }
.be-paginacio > * { min-width: 36px; min-height: 36px; padding: 4px 10px; text-align: center; }
.be-paginacio .current { background: var(--be-vermell); color: #fff; border-radius: 4px; }
.be-entrada { max-width: 1160px; padding: 52px 24px 60px; margin: 0 auto; }
.be-entrada-cap { max-width: 760px; margin: 0 auto; text-align: center; }
.be-entrada-cap h1 { font-size: 36px; }
.be-entrada-cap > p { color: #505155; margin: 18px auto 26px; font-size: 18px; }
.be-accions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.be-entrada .be-accions { justify-content: center; }
.be-avantatges { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; border-top: 1px solid var(--be-linia); padding-top: 36px; margin-top: 42px; }
.be-avantatges > div > i { color: #bc000d; font-size: 25px; margin-bottom: 18px; }
.be-avantatges h2 { font-size: 20px; }
.be-avantatges p { color: #505155; font-size: 15px; margin: 0; }
.be-entrada-peu { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--be-linia); font-size: 14px; color: #505155; text-align: center; }
.be-presentacio { display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 42px 32px; }
.be-presentacio-text { flex: 1; max-width: 780px; min-width: 0; }
.be-presentacio h2 { margin: 8px 0 16px; font-size: 28px; }
.be-presentacio p { color: #505155; margin: 0 0 24px; }
.be-presentacio-imatge { width: 240px; max-width: 28%; height: 200px; object-fit: contain; flex-shrink: 0; }
.be-postcompra { border-top: 1px solid var(--be-linia); padding: 28px 0; margin-top: 30px; }
.be-postcompra p { color: #505155; }
body.be-registre-pagina .elementor-widget-theme-post-title,
body.be-compte:not(.logged-in) .elementor-widget-theme-post-title { display: none; }
body.be-compte.logged-in .woocommerce { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 40px; padding: 16px 0 56px; }
body.be-compte.logged-in .woocommerce > .woocommerce-notices-wrapper { grid-column: 1/-1; }
body.be-compte.logged-in .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
body.be-compte .woocommerce::before, body.be-compte .woocommerce::after { display: none; }
body.be-compte .woocommerce-MyAccount-navigation, body.be-compte .woocommerce-MyAccount-content { width: auto; float: none; min-width: 0; }
body.be-compte .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--be-linia); }
body.be-compte .woocommerce-MyAccount-navigation li { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--be-linia); }
body.be-compte .woocommerce-MyAccount-navigation a { display: block; padding: 15px 16px; color: #4b4c51; font-size: 15px; text-decoration: none; border-left: 3px solid transparent; overflow-wrap: anywhere; }
body.be-compte .woocommerce-MyAccount-navigation li.is-active a { color: var(--be-enllac); font-weight: 700; background: #f8f1f2; border-left-color: var(--be-vermell); }
body.be-compte .woocommerce-MyAccount-navigation a:hover { background: #f4f4f5; }
body.be-compte .woocommerce-MyAccount-content .woocommerce-orders-table { font-size: 14px; }
body.be-compte .woocommerce-MyAccount-content input.input-text { min-height: 46px; border: 1px solid #bfc0c4; border-radius: 4px; padding: 10px 12px; font-size: 16px; }
body.be-compte .woocommerce-MyAccount-content button.button,
body.be-compte .woocommerce-MyAccount-content a.button { background: var(--be-vermell); color: #fff; padding: 14px 20px; border-radius: 4px; }
.be-auth { max-width: 520px; margin: 40px auto 72px; padding: 0; }
.be-auth-cap { text-align: center; padding: 0 0 26px; }
.be-auth-cap p { margin: 0; color: var(--be-gris); font-size: 16px; }
.be-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--be-linia); margin-bottom: 0; }
body.be-compte .be-auth-tabs button { min-height: 54px; padding: 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: #fff; color: #505155; font: inherit; font-weight: 600; cursor: pointer; }
body.be-compte .be-auth-tabs button:hover, body.be-compte .be-auth-tabs button:focus-visible { color: #bc000d; background: #f6f6f7; }
body.be-compte .be-auth-tabs button[aria-selected=true] { color: #bc000d; border-bottom-color: var(--be-vermell); }
.be-auth #customer_login, .be-auth #customer_login > div { width: 100%; float: none; }
.be-auth #customer_login::before, .be-auth #customer_login::after { display: none; }
.be-auth.is-ready #customer_login > div > h2 { display: none; }
body.be-compte .be-auth form.login, body.be-compte .be-auth form.register { border: 1px solid var(--be-linia); border-top: 0; border-radius: 0 0 6px 6px; padding: 30px; margin: 0; background: #fff; }
.be-auth form > p { margin: 0 0 20px; }
.be-auth form label { font-size: 14px; font-weight: 600; color: var(--be-tinta); line-height: 1.5; margin-bottom: 8px; }
.be-auth form input.input-text { width: 100%; border: 1px solid #bfc0c4; border-radius: 4px; padding: 12px 14px; min-height: 48px; font-size: 16px; }
.be-auth .password-input { width: 100%; }
.be-auth form label.woocommerce-form-login__rememberme { font-size: 14px; font-weight: 400; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.be-auth input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--be-vermell); }
body.be-compte .be-auth button.woocommerce-button,
body.be-compte .be-auth button.woocommerce-Button { width: 100%; float: none; margin: 0; min-height: 48px; padding: 12px 20px; border-radius: 4px; background: var(--be-vermell); color: #fff; font-size: 16px; line-height: 1.4; }
.be-auth .woocommerce-LostPassword { text-align: center; font-size: 14px; margin-bottom: 0; }
.be-auth .woocommerce-privacy-policy-text { font-size: 12px; color: var(--be-gris); line-height: 1.6; }
.be-auth form.register > p:not(.form-row) { font-size: 14px; color: var(--be-gris); }
.be-auth-ajuda { text-align: center; font-size: 14px; margin: 22px 0 0; color: #505155; }
.be-auth-ajuda a { font-weight: 600; }
/* Els estats es delimiten al portal per no canviar la botiga ni els seus botons. */
body.be-compte .woocommerce a.button,
body.be-compte .woocommerce button.button,
body.be-compte .woocommerce button.woocommerce-Button { background: #ed0010; color: #fff; border: 1px solid #ed0010; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; min-height: 48px; padding: 12px 20px; text-decoration: none; border-radius: 4px; white-space: normal; }
body.be-compte .woocommerce a.button:visited { color: #fff; }
body.be-compte .woocommerce a.button:hover,
body.be-compte .woocommerce a.button:focus-visible,
body.be-compte .woocommerce button.button:hover,
body.be-compte .woocommerce button.button:focus-visible,
body.be-compte .woocommerce button.woocommerce-Button:hover,
body.be-compte .woocommerce button.woocommerce-Button:focus-visible { color: #fff; background: #b9000c; border-color: #b9000c; text-decoration: none; }
body.be-compte .woocommerce .show-password-input { background: transparent; color: #202124; border: 0; box-shadow: none; padding: 0; min-height: 32px; min-width: 32px; }
body.be-compte .woocommerce input[type=password] { padding-right: 44px; }
body.be-compte .woocommerce :focus-visible { outline: 3px solid #365f96; outline-offset: 3px; }
body.be-compte .woocommerce a:not(.button):not(.be-boto):hover { color: #a9000c; }
body.be-compte .woocommerce form.lost_reset_password { max-width: 560px; margin: 28px auto 48px; }
body.be-compte .woocommerce form.lost_reset_password .form-row { float: none; width: 100%; }
body.be-compte .woocommerce form.lost_reset_password input.input-text { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #bfc0c4; border-radius: 4px; font-size: 16px; }
body.be-compte .woocommerce form.lost_reset_password button { width: 100%; }
body.be-compte .woocommerce .woocommerce-error, body.be-compte .woocommerce .woocommerce-info, body.be-compte .woocommerce .woocommerce-message { font-size: 15px; overflow-wrap: anywhere; }
/* Evitem el desbordament dels controls existents dins les pàgines revisades. */
body.home .elementor-element-d83a3a2 .premium-button-text-icon-wrapper { max-width: 100%; white-space: normal; }
body.home .elementor-element-d83a3a2 .premium-modal-trigger-btn { white-space: normal; }
:is(body.home, body.be-compte, body.be-registre-pagina) .elementor-location-footer .elementor-icon-list-items.elementor-inline-items { margin-inline: 0; }
@media (min-width: 1400px) { .be-maquines { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1024px) {
    body.be-compte.logged-in .woocommerce { grid-template-columns: 180px minmax(0,1fr); gap: 24px; }
    .be-cap { align-items: flex-start; }
    .be-accessos { grid-template-columns: 1fr; }
    .be-accessos a { border-bottom: 1px solid var(--be-linia); padding: 16px 0; }
    .be-maquina-contingut { padding: 18px; }
    .be-maquina-imatge { padding: 18px; }
}
@media (max-width: 767px) {
    body.be-compte.logged-in .woocommerce { display: block; padding: 0 0 40px; }
    body.be-compte .woocommerce-MyAccount-navigation { margin-bottom: 28px; }
    body.be-compte .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; border-top: 0; border-bottom: 1px solid var(--be-linia); gap: 0 12px; }
    body.be-compte .woocommerce-MyAccount-navigation li { border: 0; }
    body.be-compte .woocommerce-MyAccount-navigation a { padding: 10px 2px; font-size: 13px; border-left: 0; border-bottom: 2px solid transparent; }
    body.be-compte .woocommerce-MyAccount-navigation li.is-active a { border-bottom-color: var(--be-vermell); background: transparent; }
    .be-portal h1, .be-auth h1 { font-size: 28px; }
    .be-cap { margin-bottom: 24px; gap: 18px; padding-bottom: 20px; }
    .be-cap > .be-boto { width: 100%; }
    .be-camps { grid-template-columns: 1fr; gap: 18px; }
    .be-bloc legend { font-size: 21px; gap: 10px; }
    .be-comunicacions { padding: 22px 18px; gap: 14px; }
    .be-comunicacions-icona { font-size: 22px; }
    .be-comunicacions h2 { font-size: 21px; }
    .be-form-peu { gap: 18px; }
    .be-form-peu > .be-boto { flex: 1; }
    .be-registre { margin: 24px 0 40px; }
    .be-buit { flex-direction: column; align-items: flex-start; gap: 22px; padding: 12px 0 30px; }
    .be-buit-imatge { max-width: 100%; width: 200px; height: 150px; align-self: center; }
    .be-buit h2 { font-size: 24px; }
    .be-auth { margin: 24px auto 40px; }
    body.be-compte .be-auth form.login, body.be-compte .be-auth form.register { padding: 24px 20px; }
    .be-entrada { padding: 32px 12px 40px; }
    .be-entrada-cap h1 { font-size: 28px; }
    .be-entrada-cap > p { font-size: 16px; }
    .be-avantatges { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; padding-top: 28px; }
    .be-avantatges > div > i { margin-bottom: 10px; }
    .be-accions { gap: 18px; }
    .be-presentacio { padding: 30px 20px; gap: 18px; align-items: flex-start; }
    .be-presentacio h2 { font-size: 24px; }
    .be-presentacio-imatge { width: 140px; height: 150px; max-width: 26%; }
}
@media (max-width: 520px) {
    .be-maquines { grid-template-columns: 1fr; }
    .be-maquina-imatge { aspect-ratio: 16/10; }
    .be-comunicacions-icona { display: none; }
    .be-bloc legend small { font-size: 11px; }
    .be-presentacio { flex-direction: column-reverse; }
    .be-presentacio-imatge { width: 160px; max-width: 100%; height: 120px; align-self: center; }
    .be-accions { flex-direction: column; align-items: stretch; text-align: center; }
    .be-accions .be-enllac { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .be-portal *, .be-auth * { transition: none !important; scroll-behavior: auto !important; } }
