/* Bendito Tupper · Empresas — usa la tipografía del tema (Poppins) y la paleta de la tienda. */
.bt-empresas {
	--bt-gold: #af8c00;
	--bt-price: #bd8f08;
	--bt-beige: #f3e9da;
	--bt-cream: #faf6ee;
	--bt-ink: #292929;
	--bt-text: #5d5a55;
	--bt-line: #ece4d5;
	--bt-error: #9b2c2c;
}
.bt-wrap, .bt-drawer, .bt-veil, .bt-co-company, .bt-co-address, .bt-co-comments, .bt-delivery-box { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.bt-wrap { max-width: 1240px; margin: 0 auto; color: var(--bt-text); }
/* Ventanas emergentes de marketing de Elementor: no se muestran en Empresas. */
body.bt-empresas .elementor-location-popup, body.bt-empresas .dialog-lightbox-widget, body.bt-empresas .jws-form-login-popup { display: none !important; }
.bt-wrap *, .bt-drawer * { box-sizing: border-box; }

/* Cabecera del área */
.bt-bar { display: flex; gap: 16px; align-items: center; justify-content: flex-end; padding: 10px 0; font-size: 14px; flex-wrap: wrap; }
.bt-bar__company { margin-right: auto; font-weight: 600; color: var(--bt-ink); }
.bt-cart-toggle { background: var(--bt-gold); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.bt-count { background: #fff; color: var(--bt-gold); border-radius: 99px; padding: 0 7px; margin-left: 4px; font-size: 12px; }
.bt-logout { color: var(--bt-gold); font-weight: 600; text-decoration: none; }

/* Introducción */
.bt-hero { background: var(--bt-beige); border-radius: 14px; padding: clamp(20px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.bt-chip { display: inline-block; background: #fff; color: var(--bt-gold); font-weight: 600; font-size: 12px; padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; }
.bt-title { color: var(--bt-gold) !important; font-size: clamp(26px, 3.4vw, 40px) !important; line-height: 1.15 !important; margin: 0 0 12px !important; font-weight: 700; text-wrap: balance; }
.bt-hero p { margin: 0; }
.bt-sched { background: #fff; border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; font-size: 14px; }
.bt-sched strong { color: var(--bt-ink); }
.bt-sched p { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 0; }
.bt-sched b { color: var(--bt-ink); }
.bt-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--bt-gold); }
.bt-dot--b { background: #d6c79a; } .bt-dot--c { background: #9c9179; }
.bt-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }
.bt-info div { background: var(--bt-cream); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.bt-info b { display: block; color: var(--bt-ink); margin-bottom: 2px; }
.bt-info a, .bt-small a { color: var(--bt-gold); font-weight: 700; }
.bt-filter { background: var(--bt-beige); text-align: center; letter-spacing: .05em; font-size: 12px; color: #333; padding: 10px; margin: 8px 0 0; }

/* Catálogo (misma estructura que las tarjetas de /shop/) */
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; padding: 26px 0 32px; }
.bt-card { text-align: center; position: relative; }
.bt-card__img { position: relative; }
.bt-card__img img, .bt-img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 1; object-fit: contain; }
.bt-card h3 { color: var(--bt-ink); font-size: 18px; line-height: 1.25; margin: 12px 0 6px; font-weight: 700; }
.bt-card p { font-size: 13px; margin: 0 0 10px; }
.bt-buy { display: inline-flex; gap: 10px; align-items: center; }
.bt-add { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--bt-beige); color: var(--bt-gold); font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.bt-add:hover, .bt-add:focus-visible { background: var(--bt-gold); color: #fff; }
.bt-add.is-added { background: var(--bt-gold); color: #fff; }
.bt-price { color: var(--bt-price); font-weight: 700; }
.bt-badge { position: absolute; top: 0; left: 0; font-size: 11px; font-weight: 700; color: #fff; padding: 3px 8px; border-radius: 5px; }
.bt-badge--out { background: #e04848; }
.bt-card--out { opacity: .6; }
.bt-empty, .bt-unavailable { background: var(--bt-cream); padding: 20px; border-radius: 12px; text-align: center; }
.bt-foot { text-align: center; font-style: italic; background: var(--bt-beige); padding: 12px; border-radius: 10px; }

/* Vista bloqueada: muestra difuminada + ventana del código */
.bt-stage { position: relative; }
.bt-blur { filter: blur(8px); transform: scale(1.01); pointer-events: none; user-select: none; }
.bt-card--skel .bt-plate { width: 84%; aspect-ratio: 1; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle, #e4dccb 0 47%, #f3f1ec 48% 60%, #fff 61%); }
.bt-skel { height: 12px; border-radius: 6px; background: #e9e1d1; margin: 8px auto; width: 70%; }
.bt-skel--s { width: 40%; }
.bt-veil { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px; background: rgba(41, 41, 41, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bt-login { background: #fff; border-radius: 16px; padding: 28px; width: min(400px, 100%); display: grid; gap: 10px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); }
.bt-login h2 { color: var(--bt-gold); margin: 0; font-size: 22px; }
.bt-login p { margin: 0; font-size: 14px; }
.bt-login label { font-weight: 600; color: var(--bt-ink); font-size: 13px; }
.bt-login button, .bt-btn { font-family: inherit; }
.bt-login input { border: 1px solid #ddd5c4; border-radius: 8px; padding: 12px; font-size: 17px; letter-spacing: .1em; text-align: center; text-transform: uppercase; font-family: ui-monospace, Menlo, Consolas, monospace; width: 100%; }
.bt-login input:focus-visible { outline: 2px solid var(--bt-gold); outline-offset: 1px; }
.bt-btn { display: block; width: 100%; background: var(--bt-gold); color: #fff !important; text-align: center; padding: 12px; border-radius: 8px; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.bt-btn[disabled] { opacity: .6; cursor: progress; }
.bt-error { color: var(--bt-error); background: #fbeaea; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.bt-expired { background: #fff6e5; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.bt-small { font-size: 12px !important; }

/* Transición al entrar */
.bt-reveal.is-revealing { animation: bt-unblur .35s ease-out both; }
@keyframes bt-unblur { from { filter: blur(8px); opacity: .7; } to { filter: blur(0); opacity: 1; } }
.bt-veil.is-leaving { animation: bt-fade .3s ease-out both; }
@keyframes bt-fade { to { opacity: 0; visibility: hidden; } }

/* Carrito lateral */
.bt-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #fff; z-index: 99995; box-shadow: -10px 0 30px -12px rgba(0, 0, 0, .35); padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 18px 18px; overflow-y: auto; display: grid; align-content: start; gap: 10px; font-size: 14px; transform: translateX(0); transition: transform .25s ease; }
.bt-drawer[hidden] { display: none !important; }
.bt-drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 99994; }
.bt-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.bt-drawer__head strong { color: var(--bt-ink); font-size: 17px; }
.bt-drawer__close { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--bt-ink); line-height: 1; }
.bt-lines { list-style: none; margin: 0; padding: 0; }
.bt-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--bt-line); }
.bt-qty { display: inline-flex; align-items: center; gap: 6px; }
.bt-qty button { width: 26px; height: 26px; border-radius: 7px; border: 0; background: var(--bt-beige); color: var(--bt-gold); font-weight: 700; cursor: pointer; }
.bt-line { display: flex; justify-content: space-between; margin: 4px 0; }
.bt-line--total { font-weight: 700; color: var(--bt-ink); font-size: 16px; }
.bt-link { background: none; border: 0; color: var(--bt-gold); font-weight: 600; cursor: pointer; font: inherit; }
.bt-drawer__empty { color: var(--bt-text); }

/* Entrega prevista (carrito, checkout, confirmación) */
.bt-delivery-box { background: var(--bt-beige); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; display: grid; gap: 4px; }
.bt-delivery-box small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-gold); font-weight: 700; }
.bt-delivery-box strong { color: var(--bt-ink); font-size: 16px; line-height: 1.35; }
.bt-delivery-note { font-size: 12px; }
.bt-special-pending { display: block; font-size: 13px; background: #fff6e5; border: 1px solid #f0d9a8; color: #7a5410; border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.bt-special-pending[hidden] { display: none; }
.bt-delivery-box--mini strong { font-size: 14px; }

/* Checkout */
.bt-co-company { display: flex; justify-content: space-between; gap: 10px; background: var(--bt-cream); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.bt-co-company strong { color: var(--bt-ink); }
.bt-co-company a { color: var(--bt-gold); font-weight: 600; }
.bt-co-address h3 { font-size: 16px; margin: 16px 0 6px; }
.bt-co-ro { background: var(--bt-cream); border: 1px dashed #ddd5c4; border-radius: 8px; padding: 10px 12px; }
.bt-co-ro small { color: #8c877d; }
.bt-co-comments textarea { min-height: 96px; }
.bt-help { display: block; color: #8c877d; font-size: 12px; margin-top: 6px; }
.bt-counter { display: block; text-align: right; font-size: 11px; color: #8c877d; }
.bt-thankyou { margin: 16px 0; }
.bt-thankyou .button { margin-top: 10px; justify-self: start; }

@media (max-width: 900px) {
	.bt-hero { grid-template-columns: minmax(0, 1fr); }
	.bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
	.bt-card h3 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.bt-reveal.is-revealing, .bt-veil.is-leaving { animation: none; }
	.bt-drawer { transition: none; }
}

/* Ajustes sobre las plantillas de checkout del tema */
body.bt-empresas .woocommerce { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
body.bt-empresas .woocommerce-billing-fields > h3 { display: none; }
body.bt-empresas .woocommerce-billing-fields__field-wrapper { display: block; }
.bt-co-address, .bt-co-comments { clear: both; width: 100%; float: none; }
.bt-co-comments textarea { width: 100%; }
body.admin-bar .bt-drawer { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bt-drawer { top: 46px; } }
body.bt-empresas form.checkout > .row > div:first-child > h4:first-child { display: none; }
/* Checkout en dos columnas iguales (en móvil, una debajo de otra). */
@media (min-width: 992px) {
	body.bt-empresas form.checkout > .row { display: flex; flex-wrap: nowrap; align-items: flex-start; }
	body.bt-empresas form.checkout > .row > div { flex: 0 0 50%; max-width: 50%; width: 50%; }
}

/* --- Ajustes de revisión (19/10) --- */
/* En Empresas no se muestra la navegación de la tienda: solo el logo. */
body.bt-empresas #masthead .elementor-widget-jws_menu_nav,
body.bt-empresas #masthead .elementor-widget-jws_account,
body.bt-empresas #masthead .elementor-widget-jws_mini_cart,
body.bt-empresas #masthead .elementor-widget-Offcanvas,
body.bt-empresas .jws-toolbar-wap,
body.bt-empresas .jws-title-bar-wrap { display: none !important; }

/* Márgenes laterales en móvil y menos espacio arriba */
.bt-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-top: 16px; }
body.bt-empresas .woocommerce { padding-top: 24px; }
.bt-bar { flex-wrap: nowrap; padding-top: 0; }
.bt-bar__company { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-cart-toggle, .bt-logout { flex: none; }

/* Título de la ventana del código */
.bt-login h2 { line-height: 1.2 !important; font-size: 22px !important; margin: 0 0 4px !important; text-wrap: balance; }

@media (max-width: 600px) {
	.bt-hero { padding: 20px 18px; gap: 18px; }
	.bt-title { font-size: 26px !important; }
	.bt-sched { padding: 14px; font-size: 13px; }
	.bt-login { padding: 22px 20px; }
	.bt-bar { gap: 10px; font-size: 13px; }
}

/* Pie: el del tema se oculta en Empresas (enlaza a la tienda) */
body.bt-empresas #colophon, body.bt-empresas .site-footer { display: none !important; }
.bt-minifoot { font-family: 'Poppins', system-ui, sans-serif; background: var(--bt-beige); padding: 18px max(16px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12px; color: #6f6a60; }
.bt-minifoot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 6px; }
.bt-minifoot a { color: #6f6a60; text-decoration: none; }
.bt-minifoot a:hover, .bt-minifoot a:focus-visible { color: var(--bt-gold); text-decoration: underline; }
.bt-minifoot p { margin: 0; }

/* Lema de cierre */
.bt-claim { margin: 48px 0 56px; padding: clamp(28px, 5vw, 48px) 24px; background: var(--bt-gold); border-radius: 18px; text-align: center; color: #fff; }
.bt-claim__text { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 12px; text-wrap: balance; letter-spacing: -.01em; }
.bt-claim__sub { margin: 0; font-size: 14px; color: #fbf3dc; }
.bt-claim__sub a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bt-foot { display: none; }
/* Menú lateral de móvil del tema (fuera de pantalla): tampoco en Empresas */
body.bt-empresas .jws-offcanvas-parent-wrapper, body.bt-empresas .jws-offcanvas { display: none !important; }

/* Textos legales en ventana */
.bt-minifoot p a { color: inherit; }
.bt-legal { width: min(760px, calc(100vw - 32px)); max-height: min(80vh, 900px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); font-family: 'Poppins', system-ui, sans-serif; color: #5d5a55; }
.bt-legal::backdrop { background: rgba(41,41,41,.45); backdrop-filter: blur(4px); }
.bt-legal__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; padding: 16px 20px; border-bottom: 1px solid var(--bt-line, #ece4d5); }
.bt-legal__head h2 { margin: 0 !important; font-size: 20px !important; line-height: 1.2 !important; color: #af8c00; }
.bt-legal__close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #292929; }
.bt-legal__body { padding: 16px 20px 24px; overflow-y: auto; max-height: calc(min(80vh, 900px) - 64px); font-size: 14px; line-height: 1.6; }
.bt-legal__body h1, .bt-legal__body h2, .bt-legal__body h3, .bt-legal__body h4 { color: #292929; font-size: 16px !important; line-height: 1.3 !important; margin: 18px 0 6px !important; }
.bt-legal__body table { width: 100%; border-collapse: collapse; font-size: 12px; display: block; overflow-x: auto; }
.bt-legal__body td, .bt-legal__body th { border: 1px solid #ece4d5; padding: 6px; }

/* Cabecera: solo el logo, centrado */
body.bt-empresas #masthead .elementor-column:not(:has(.elementor-widget-jws_logo)) { display: none !important; }
body.bt-empresas #masthead .elementor-column:has(.elementor-widget-jws_logo) { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; }
body.bt-empresas #masthead .elementor-column:has(.elementor-widget-jws_logo) > .elementor-widget-wrap,
body.bt-empresas #masthead .elementor-column:has(.elementor-widget-jws_logo) .elementor-widget-wrap { justify-content: center !important; }
body.bt-empresas #masthead .elementor-widget-jws_logo { margin-left: auto !important; margin-right: auto !important; width: auto !important; text-align: center; }
body.bt-empresas #masthead .elementor-widget-jws_logo img { margin: 0 auto; }
body .bt-legal .bt-legal__body h1, body .bt-legal .bt-legal__body h2, body .bt-legal .bt-legal__body h3, body .bt-legal .bt-legal__body h4 { font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; }

/* Ventana legal: posición fija propia (no depende de los estilos de <dialog> del navegador ni del tema) */
body .bt-legal[open] { position: fixed !important; inset: 0 !important; margin: auto !important; height: fit-content; max-height: min(85vh, 900px); z-index: 100001; display: flex; flex-direction: column; overflow: hidden; }
body .bt-legal[open] .bt-legal__body { flex: 1 1 auto; max-height: none; min-height: 0; overflow-y: auto; }
.bt-legal-shade { position: fixed; inset: 0; z-index: 100000; background: rgba(41,41,41,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bt-legal-shade[hidden] { display: none; }
body.bt-legal-open { overflow: hidden; }
/* Cerrada, la ventana legal nunca se muestra (algunos temas fuerzan display en <dialog>) */
body .bt-legal:not([open]) { display: none !important; }

/* Avisos de stock en el carrito */
.bt-cart-msg { background: #fff6e5; border: 1px solid #f0d9a8; color: #7a5410; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 0 0 6px; }
.bt-qty button[disabled] { opacity: .35; cursor: not-allowed; }

/* Logo centrado también en tablet y móvil (el tema da padding solo a la izquierda) */
body.bt-empresas #masthead .elementor-section:has(.elementor-widget-jws_logo) { padding-left: 0 !important; padding-right: 0 !important; }
body.bt-empresas #masthead .elementor-section:has(.elementor-widget-jws_logo) > .elementor-container { max-width: 100% !important; margin: 0 auto; }
body.bt-empresas #masthead .elementor-column:has(.elementor-widget-jws_logo) > .elementor-widget-wrap { padding-left: 0 !important; padding-right: 0 !important; }

/* Separación entre el checkout y el pie */
body.bt-empresas .woocommerce { padding-bottom: 56px; }
body.bt-empresas .woocommerce-checkout #order_review, body.bt-empresas .jws_woo_your_order { margin-bottom: 24px; }
body.bt-empresas .woocommerce-form-login-toggle, body.bt-empresas form.woocommerce-form-login { display: none !important; }

/* --- Etiquetas de los platos (mismas que la tienda: Vegano, Vegetariano, Low Carb…) --- */
.bt-badges { position: absolute; top: 0; left: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; pointer-events: none; }
.bt-badges .bt-badge { position: static; display: inline-block; font-size: 11px; line-height: 1.2; font-weight: 700; color: #fff; padding: 4px 8px; border-radius: 5px; }
.bt-badges .bt-badge--vegetariano { color: #292929; }

/* --- Tarjeta clicable: foto y nombre abren el detalle --- */
.bt-card__open { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
.bt-card__open:hover h3, .bt-card__open:focus-visible h3 { color: var(--bt-gold); }
.bt-card__open:focus-visible { outline: 2px solid var(--bt-gold); outline-offset: 4px; border-radius: 8px; }
.bt-card__open .bt-card__img { display: block; }

/* --- Ventana de detalle del plato --- */
.bt-pdialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--bt-text); box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; }
.bt-pdialog:not([open]) { display: none !important; }
.bt-pdialog[open] { position: fixed; inset: 0; margin: auto; z-index: 100000; display: block; }
.bt-pdialog::backdrop { background: rgba(41,41,41,.55); }
.bt-pdialog__close { position: absolute; top: 10px; right: 12px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--bt-ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.bt-pdialog__content { max-height: calc(100vh - 48px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bt-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.bt-detail__media { position: relative; background: var(--bt-cream); display: flex; align-items: center; justify-content: center; padding: 28px; }
.bt-detail__media .bt-badges { top: 16px; left: 16px; }
.bt-detail__img { width: 100%; height: auto; max-width: 380px; aspect-ratio: 1; object-fit: contain; }
.bt-detail__body { padding: 32px 30px 26px; }
.bt-detail__title { color: var(--bt-ink); font-size: 26px; line-height: 1.2; margin: 0 40px 8px 0; font-weight: 700; }
.bt-detail__price { color: var(--bt-price); font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.bt-detail__short, .bt-detail__long { font-size: 15px; line-height: 1.6; }
.bt-detail__short p, .bt-detail__long p { margin: 0 0 12px; }
.bt-detail__long { border-top: 1px solid var(--bt-line); padding-top: 12px; margin-top: 4px; }
.bt-detail .bt-add--wide { display: block; width: 100%; margin: 18px 0 12px; padding: 14px 18px; font-size: 16px; border-radius: 10px; border: 0; background: var(--bt-gold); color: #fff; font-weight: 600; cursor: pointer; }
.bt-detail__out { margin: 18px 0 12px; font-weight: 700; color: #e04848; }
.bt-detail__allergy { font-size: 13px; color: #8c877d; margin: 0; }
.bt-detail__allergy a { color: var(--bt-gold); font-weight: 600; }
body.bt-detail-open { overflow: hidden; }
@media (max-width: 767px) {
	.bt-pdialog[open] { inset: auto 0 0 0; margin: 0; width: 100vw; max-width: 100vw; max-height: 92vh; border-radius: 18px 18px 0 0; }
	.bt-pdialog__content { max-height: 92vh; }
	.bt-detail { grid-template-columns: 1fr; }
	.bt-detail__media { padding: 20px 20px 8px; }
	.bt-detail__img { max-width: 240px; }
	.bt-detail__body { padding: 16px 20px calc(22px + env(safe-area-inset-bottom)); }
	.bt-detail__title { font-size: 21px; margin-right: 0; }
}

/* --- Horario (texto de cabecera) --- */
.bt-sched__sub { display: block; font-weight: 400; font-size: 13px; color: var(--bt-text); margin-top: 2px; }

/* --- Checkout: elegir dirección cuando la empresa tiene varias --- */
.bt-co-addr-choice { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.bt-co-addr-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--bt-line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; line-height: 1.45; }
.bt-co-addr-opt:has(input:checked) { border-color: var(--bt-gold); background: var(--bt-cream); box-shadow: 0 0 0 1px var(--bt-gold) inset; }
.bt-co-addr-opt input { margin-top: 3px; accent-color: var(--bt-gold); }
.bt-co-ro-note { margin: 0 0 8px; color: #8c877d; }
/* El tema da estilo propio a los h2 y a .bt-add (botón redondo): se fijan aquí para la ventana de detalle. */
.bt-pdialog .bt-detail h2.bt-detail__title { color: var(--bt-ink) !important; font-size: 26px !important; line-height: 1.2 !important; letter-spacing: 0; }
.bt-pdialog .bt-detail .bt-add.bt-add--wide { width: 100%; height: auto; min-height: 48px; line-height: 1.3; border-radius: 10px; }
@media (max-width: 767px) { .bt-pdialog .bt-detail h2.bt-detail__title { font-size: 21px !important; } }
body.bt-empresas form.checkout #billing_first_name, body.bt-empresas form.checkout #billing_email, body.bt-empresas form.checkout #billing_phone { width: 100%; max-width: 100%; }

/* Fondo crema en la foto del plato: el blanco de la foto se funde con el crema y no se ve el recorte. */
.bt-detail__img { mix-blend-mode: multiply; }

/* --- Bloques del listado (Platos, Bizcochos, Para cenar y extras…) --- */
.bt-blocks-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.bt-blocks-nav a { color: var(--bt-ink); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; padding: 0 14px; border-right: 1px solid #cfc6b4; }
.bt-blocks-nav a:last-child { border-right: 0; }
.bt-blocks-nav a:hover, .bt-blocks-nav a:focus-visible { color: var(--bt-gold); }
.bt-block { scroll-margin-top: 90px; }
.bt-block + .bt-block { margin-top: 8px; }
.bt-wrap h2.bt-block__title { color: var(--bt-ink) !important; font-size: 26px !important; line-height: 1.2 !important; margin: 26px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--bt-beige); text-align: left; }
@media (max-width: 767px) {
	.bt-blocks-nav a { padding: 0 9px; font-size: 12px; }
	.bt-wrap h2.bt-block__title { font-size: 21px !important; }
}
html { scroll-behavior: smooth; }
/* Nombre, teléfono y correo del comprador: siempre a ancho completo (el tema pone el nombre a media columna). */
body.bt-empresas form.checkout #billing_first_name_field, body.bt-empresas form.checkout #billing_phone_field, body.bt-empresas form.checkout #billing_email_field { width: 100% !important; max-width: 100% !important; float: none !important; }

/* Productos con opciones (p. ej. bizcocho Entero / Porción). */
.bt-detail__choose { margin: 18px 0 8px; font-weight: 600; }
.bt-variants { display: grid; gap: 10px; margin-bottom: 12px; }
.bt-pdialog .bt-detail .bt-variants .bt-add.bt-add--variant { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; text-align: left; }
.bt-variant-out { display: flex; justify-content: space-between; margin: 0; padding: 14px 18px; border-radius: 10px; background: #f3efe8; color: #8a8378; }

/* Hay CSS personalizado en la web que convierte .bt-add en un círculo de 40px con !important:
   los botones anchos de la ficha (Añadir a mi pedido / opciones) deben ignorarlo. */
.bt-pdialog .bt-detail .bt-add.bt-add--wide { display: block !important; width: 100% !important; height: auto !important; min-height: 48px !important; padding: 14px 18px !important; border-radius: 10px !important; background: var(--bt-gold) !important; color: #fff !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.3 !important; text-align: center !important; }
.bt-pdialog .bt-detail .bt-add.bt-add--wide:hover, .bt-pdialog .bt-detail .bt-add.bt-add--wide:focus-visible { filter: brightness( .93 ); }
.bt-pdialog .bt-detail .bt-variants .bt-add.bt-add--variant { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; margin: 0 !important; text-align: left !important; }
.bt-pdialog .bt-detail .bt-variants .bt-add--variant .woocommerce-Price-amount, .bt-pdialog .bt-detail .bt-variants .bt-add--variant bdi { color: inherit !important; font-weight: 700; }

/* Checkout: el tema deja la tabla del pedido y el pago sin margen lateral dentro de cajas redondeadas,
   y el texto de los bordes («Subtotal», precios) quedaba cortado. */
body.bt-empresas .woocommerce-checkout-review-order .woocommerce-checkout-review-order-table th,
body.bt-empresas .woocommerce-checkout-review-order .woocommerce-checkout-review-order-table td { padding-left: 20px !important; padding-right: 20px !important; }
body.bt-empresas .woocommerce-checkout-review-order .woocommerce-checkout-review-order-table > :first-child > tr:first-child > th { padding-top: 16px !important; }
body.bt-empresas .woocommerce-checkout-review-order .woocommerce-checkout-review-order-table tfoot tr:last-child th,
body.bt-empresas .woocommerce-checkout-review-order .woocommerce-checkout-review-order-table tfoot tr:last-child td { padding-bottom: 18px !important; }
body.bt-empresas .woocommerce-checkout-review-order #payment { padding: 4px 20px 20px !important; box-sizing: border-box; }
@media (max-width: 480px) {
	body.bt-empresas .woocommerce-checkout-review-order .woocommerce-checkout-review-order-table th,
	body.bt-empresas .woocommerce-checkout-review-order .woocommerce-checkout-review-order-table td { padding-left: 14px !important; padding-right: 14px !important; }
	body.bt-empresas .woocommerce-checkout-review-order #payment { padding: 4px 14px 16px !important; }
}

/* Página propia de cada empresa: logos, saludo, mensaje y descuento. */
.bt-bar__company { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bt-bar__bt { height: 30px; width: auto; display: block; }
.bt-bar__x { color: #B9AF9E; font-size: 14px; }
.bt-bar__logo { height: 30px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.bt-title span { color: var(--bt-gold); }
.bt-perk { display: inline-block; margin: 10px 0 12px; padding: 5px 14px; border-radius: 999px; background: var(--bt-gold); color: #fff; font-weight: 600; font-size: 14px; }
.bt-welcome { margin: 4px 0 8px; padding: 12px 16px; background: var(--bt-cream, #FAF6EE); border: 1px solid #EAE2D2; border-left: 4px solid var(--bt-gold); border-radius: 10px; }
.bt-welcome b { display: block; font-size: 13px; color: var(--bt-gold); margin-bottom: 2px; }
.bt-welcome p { margin: 0; font-size: 15px; }
.bt-login__logo { display: block; max-height: 56px; max-width: 220px; width: auto; height: auto; margin: 0 auto 14px; object-fit: contain; }
.bt-price del, .bt-detail__price del, .bt-add--variant del { color: #A39A8B; font-weight: 400; font-size: .85em; margin-right: 4px; }
.bt-price ins, .bt-detail__price ins, .bt-add--variant ins { text-decoration: none; }
.bt-pdialog .bt-detail .bt-variants .bt-add--variant del { color: rgba(255,255,255,.75) !important; }
.bt-line--disc span:last-child { color: var(--bt-gold); font-weight: 600; }
@media (max-width: 600px) {
	.bt-bar__bt, .bt-bar__logo { height: 24px; }
	.bt-bar__logo { max-width: 110px; }
	.bt-perk { font-size: 13px; }
}
.bt-perk { border-radius: 14px; }
@media (max-width: 600px) {
	/* En móvil la cabecera del tema ya lleva el logo de Bendito Tupper: solo el de la empresa. */
	.bt-bar__bt, .bt-bar__x { display: none; }
	.bt-bar { gap: 8px; }
}

/* Resumen del pedido: etiqueta e importe a la misma altura en cada fila del pie. */
body.bt-empresas .woocommerce-checkout-review-order-table tfoot th,
body.bt-empresas .woocommerce-checkout-review-order-table tfoot td { vertical-align: middle !important; padding-top: 10px !important; padding-bottom: 10px !important; }
/* Fila del descuento: el texto se parte en líneas en vez de cortarse. */
body.bt-empresas .woocommerce-checkout-review-order-table .bt-discount-row th,
body.bt-empresas .woocommerce-checkout-review-order-table .bt-discount-row td { white-space: normal !important; }
body.bt-empresas .woocommerce-checkout-review-order-table .bt-discount-row td { text-align: right; }
.bt-discount-row td strong { display: block; color: var(--bt-gold); }
.bt-discount-row td small { display: block; font-size: 12px; line-height: 1.4; color: #8a8378; font-weight: 400; }

/* Tablet y móvil: el checkout va en una sola columna (datos arriba, pedido y pago debajo). */
body.bt-empresas .woocommerce-checkout-review-order-table .bt-discount-row th { white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important; }
body.bt-empresas .woocommerce-checkout-review-order-table .bt-discount-row td small { overflow-wrap: break-word; }
@media (max-width: 1023px) {
	body.bt-empresas form.checkout > .row { display: block !important; margin-left: 0 !important; margin-right: 0 !important; }
	body.bt-empresas form.checkout > .row > div { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; float: none !important; padding-left: 0 !important; padding-right: 0 !important; }
	body.bt-empresas form.checkout > .row > div + div { margin-top: 28px; }
}

/* «Descuento» completo; en pantallas estrechas, la abreviatura «Dto.». */
.bt-discount-row .bt-s { display: none; text-decoration: none; border: 0; }
@media (max-width: 480px) {
	.bt-discount-row .bt-l { display: none; }
	.bt-discount-row .bt-s { display: inline; }
}

/* Cabecera de la empresa: más aire entre saludo, texto, descuento y mensaje (30/10). */
.bt-hero__text .bt-chip { margin-bottom: 18px; }
.bt-hero__text .bt-title { margin: 0 0 18px; }
.bt-hero__text > p:not(.bt-perk) { margin: 0 0 22px; }
.bt-hero__text .bt-perk { display: inline-block; margin: 0 0 18px; }
.bt-hero__text .bt-welcome { margin: 0; }
@media (max-width: 600px) {
	.bt-hero__text .bt-chip, .bt-hero__text .bt-title, .bt-hero__text .bt-perk { margin-bottom: 14px; }
	.bt-hero__text > p:not(.bt-perk) { margin-bottom: 16px; }
}

/* Columnas de platos según pantalla (30/10). Hay reglas de .bt-grid con !important en el CSS
   personalizado de Elementor (Ajustes del sitio), así que aquí se fuerzan con más especificidad. */
@media (max-width: 600px) {
	body.bt-empresas .bt-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }
	body.bt-empresas .bt-card h3 { font-size: 18px !important; }
}
@media (min-width: 601px) and (max-width: 767px) {
	body.bt-empresas .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) and (max-width: 1100px) {
	body.bt-empresas .bt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px 16px !important; }
}

/* =====================================================================
   Diseño de tarjetas y cabecera de Empresas (30/10).
   Antes estaba en Elementor → Ajustes del sitio → CSS personalizado; se trae aquí
   para que todo el estilo del canal esté en un solo sitio. Mismo aspecto que antes.
   ===================================================================== */
body.bt-empresas .bt-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -1px; }
body.bt-empresas .bt-hero { border-radius: 24px; }
body.bt-empresas .bt-info div { border: 1px solid #E9E1D1; border-radius: 16px; }
body.bt-empresas .bt-filter { border-radius: 999px; font-weight: 600; color: #2B2620; }
body.bt-empresas .bt-grid { gap: 24px; }
body.bt-empresas .bt-card { background: #FAF6EE; border: 1px solid #E9E1D1; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; align-items: center; transition: transform .2s, box-shadow .2s; }
body.bt-empresas .bt-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(43, 38, 32, .08); }
body.bt-empresas .bt-card__img { width: 100%; background: #fff; border-radius: 14px; overflow: hidden; }
body.bt-empresas .bt-card h3 { font-size: 17px; font-weight: 600; color: #2B2620; line-height: 1.35; }
body.bt-empresas .bt-card p { line-height: 1.5; font-size: 14px; color: #6B645C; }
body.bt-empresas .bt-buy { margin-top: auto; }
body.bt-empresas .bt-price { color: #2B2620; font-size: 17px; }
body.bt-empresas .bt-card .bt-add { width: 40px; height: 40px; border-radius: 999px; background: #F5EBC8; color: #7A6100; }
body.bt-empresas .bt-card .bt-add:hover, body.bt-empresas .bt-card .bt-add:focus-visible, body.bt-empresas .bt-card .bt-add.is-added { background: #8C6F00; color: #fff; }
body.bt-empresas .bt-badge { z-index: 2; top: 10px; left: 10px; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 5px 11px; }
body.bt-empresas .bt-badge--out { background: #2B2620; color: #fff; }
@media (max-width: 1100px) {
	body.bt-empresas .bt-grid { gap: 14px; }
	body.bt-empresas .bt-card { padding: 12px; }
}
@media (max-width: 600px) {
	body.bt-empresas .bt-card h3 { font-size: 18px; }
	body.bt-empresas .bt-grid { gap: 18px; }
}

/* Logos de empresa: tamaño calculado según su forma (lo pone el plugin en --bt-logo-w/-h). */
body.bt-empresas .bt-bar__logo { width: var(--bt-logo-w, auto); height: var(--bt-logo-h, 30px); max-width: none; object-fit: contain; }
body.bt-empresas .bt-login__logo { width: var(--bt-logo-w, auto); height: var(--bt-logo-h, 56px); max-width: 100%; max-height: none; object-fit: contain; }
@media (max-width: 600px) {
	body.bt-empresas .bt-bar__logo { width: calc(var(--bt-logo-w, 120px) * .8); height: calc(var(--bt-logo-h, 30px) * .8); max-width: 60vw; }
}

/* beta 40: nota de raciones del bloque Platos */
.bt-wrap p.bt-block__note { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--bt-muted, #6E675D); text-align: left; }
