/* Mejoras de la tienda 2026-11 (hecho a mano; cambios => nuevo nombre o ?v=). Misma identidad: azul de marca y tipografias actuales. */
:root { --beh-b: #2563eb; --beh-bd: #1d4ed8; --beh-t: #0f172a; --beh-m: #475569; --beh-l: #e2e8f0; --beh-s: #f8fafc; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }

/* barra superior clara y una sola */
.beh-top { background: var(--beh-s); color: var(--beh-m); border-bottom: 1px solid var(--beh-l); }
.beh-top a:hover { color: var(--beh-bd); }
.beh-top svg { color: var(--beh-b); }
.beh-promo { font-weight: 700; color: var(--beh-bd); text-decoration: underline; text-underline-offset: 3px; }

/* hero */
[data-beh], .beh-more { min-width: 0; }
.beh-more { margin-top: 16px; display: grid; gap: 14px; }
.beh-call { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid var(--beh-l); border-radius: 12px; background: #fff; font-weight: 700; font-size: .9rem; color: var(--beh-t); }
.beh-more nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--beh-m); }
.beh-more nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--beh-l); border-radius: 999px; background: #fff; font-weight: 600; color: var(--beh-t); }
.beh-more nav a:hover { border-color: var(--beh-b); color: var(--beh-bd); }
main section > .container-x > * { min-width: 0; }

/* confianza fija */
.beh-trust { background: var(--beh-bd); color: #fff; }
.beh-trust ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 18px; padding-block: 14px; margin-block: 0; list-style: none; }
.beh-trust li { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.beh-ico { flex: 0 0 auto; color: #fbbf24; }
@media (max-width: 1023px) { .beh-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .beh-trust li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* categorias en rejilla */
.beh-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.beh-cats [data-cat-card] h3 { font-size: .95rem; }
.beh-cats [data-cat-card] h3 + p { display: none; }
.beh-cats [data-cat-card] > div:last-child { padding: 12px 14px 14px; }
.beh-cats [data-cat-card] > div:last-child > span { margin-top: 6px; font-size: .8rem; }
@media (max-width: 1100px) { .beh-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .beh-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* que necesitas */
.beh-needs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.beh-need { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--beh-l); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.beh-need:hover { border-color: var(--beh-b); box-shadow: 0 10px 26px -14px rgba(37, 99, 235, .45); }
.beh-need-img { display: block; height: 130px; margin-bottom: 6px; }
.beh-need-img img { width: 100%; height: 100%; object-fit: contain; }
.beh-need strong { color: var(--beh-t); line-height: 1.25; text-wrap: balance; }
.beh-need-d { font-size: .82rem; color: var(--beh-m); }
.beh-need-p { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--beh-bd); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .beh-needs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .beh-needs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .beh-need:last-child:nth-child(odd) { grid-column: 1 / -1; } .beh-need-img { height: 100px; } }

/* pasos */
.beh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.beh-steps li { background: #fff; border: 1px solid var(--beh-l); border-radius: 16px; padding: 20px; }
.beh-step-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eff6ff; color: var(--beh-bd); }
.beh-steps h3 { margin: 14px 0 6px; font-weight: 700; color: var(--beh-t); }
.beh-steps p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--beh-m); }
@media (max-width: 1023px) { .beh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .beh-steps { grid-template-columns: minmax(0, 1fr); } }

/* marcas */
.beh-label { margin: 0 0 10px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--beh-m); }
.beh-brands-on { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.beh-brand { display: grid; justify-items: center; gap: 4px; padding: 22px 10px; border: 2px solid #bfdbfe; border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.beh-brand:hover { border-color: var(--beh-b); box-shadow: 0 10px 26px -14px rgba(37, 99, 235, .45); }
.beh-brand strong { font-size: clamp(1.1rem, 3.5vw, 1.7rem); font-weight: 800; color: var(--beh-t); }
.beh-brand span { font-size: .82rem; font-weight: 700; color: var(--beh-bd); }
.beh-brands-off { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.beh-brands-off a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--beh-l); border-radius: 12px; background: var(--beh-s); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .85rem; color: var(--beh-m); }
.beh-brands-off a:hover { border-color: #34d399; color: #047857; }

/* franja nacional + tienda */
.beh-store { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: 36px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #1e40af); }
.beh-store h2 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.15; text-wrap: balance; }
.beh-store p { margin: 12px 0 0; max-width: 52ch; color: #dbeafe; }
.beh-store-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.beh-store-btns a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 12px; font-weight: 700; font-size: .9rem; color: #fff; }
.beh-store-btns a.p { background: #fff; color: var(--beh-bd); border-color: #fff; }
.beh-store-side { min-width: 0; }
.beh-store-side img { width: 100%; height: auto; border-radius: 16px; margin-bottom: 12px; }
.beh-store-side ul { list-style: none; margin: 0; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: .9rem; }
.beh-store-side li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.beh-store-side li.h { justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .18); }
@media (max-width: 900px) { .beh-store { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; } }

/* tarjetas: sin "compartir", botones comodos; pie pulsable */
.be-card .be-social-overlay-btn ~ .be-social-overlay-btn { display: none; }
article.be-card button:not(.be-social-overlay-btn) { min-height: 44px; }
footer ul li a { display: inline-flex; align-items: center; min-height: 32px; }

@media (prefers-reduced-motion: reduce) { .beh-need, .beh-brand { transition: none; } }

/* listado */
.beh-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.beh-chips { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 8px 0 0; padding: 0; }
.beh-chips li { padding: 2px 8px; border-radius: 6px; background: #f1f5f9; font-size: .75rem; font-weight: 600; color: var(--beh-m); white-space: nowrap; }
.beh-chips li.en { color: #fff; background: #475569; }
.beh-chips li.en-A { background: #00843d; } .beh-chips li.en-B { background: #3f8f29; } .beh-chips li.en-C { background: #6b7f12; }
.beh-chips li.en-D { background: #857000; } .beh-chips li.en-E { background: #a35200; } .beh-chips li.en-F { background: #b93f0c; } .beh-chips li.en-G { background: #b91c1c; }
@media (max-width: 639px) {
  .bs-wrap.container-x { padding-top: 14px; }
  .bs-wrap .bs-crumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; margin-bottom: 6px; font-size: .75rem; }
  .bs-wrap .bs-h1 { font-size: 1.4rem; }
  .bs-wrap .bs-chips.bs-only-m { display: none; }
  .bs-wrap > .grid.gap-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bs-wrap > .grid.gap-5 .be-card > div:last-child { padding: 12px; }
  .bs-wrap > .grid.gap-5 .be-card h2, .bs-wrap > .grid.gap-5 .be-card h3 { font-size: .95rem; }
  article.be-card .be-social-overlay-btn, article.be-card button[aria-label*="ompar"] { transform: scale(.82); }
}

/* ficha */
.beh-help { display: flex; justify-content: center; align-items: center; min-height: 46px; margin-top: 10px; border: 1px solid #a7f3d0; border-radius: 12px; font-weight: 700; font-size: .9rem; color: #047857; }
.beh-help:hover { background: #ecfdf5; }
.beh-clamp { max-height: 220px; overflow: hidden; }
.beh-fade { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.beh-readmore { min-height: 44px; font-weight: 700; color: var(--beh-bd); }
.beh-buybar { display: none; }
@media (max-width: 767px) {
  .beh-gallery { aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; }
  .beh-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .beh-thumbs button { flex: 0 0 64px; width: 64px; height: 64px; }
  .beh-buybar { position: fixed; inset: auto 0 0 0; z-index: 45; display: flex; gap: 12px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--beh-l); box-shadow: 0 -10px 26px -18px rgba(15, 23, 42, .45); }
  .beh-buybar div { min-width: 0; flex: 1; display: grid; }
  .beh-buybar b { font-size: 1.15rem; color: var(--beh-t); font-variant-numeric: tabular-nums; }
  .beh-buybar span { font-size: .75rem; color: var(--beh-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .beh-buybar button { flex: 0 0 auto; min-height: 48px; padding: 0 18px; border-radius: 12px; background: var(--beh-b); color: #fff; font-weight: 700; font-size: .9rem; }
}

/* checkout y carrito */
.beh-err { display: block; margin-top: 5px; font-size: .8rem; font-weight: 600; color: #b91c1c; }
.beh-paytrust { display: grid; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--beh-l); font-size: .8rem; color: var(--beh-m); text-align: center; }
.beh-paytrust a { font-weight: 700; color: var(--beh-bd); }
.beh-drawer-ship { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 12px; font-size: .86rem; color: var(--beh-m); }
.beh-drawer-ship b { color: var(--beh-t); font-variant-numeric: tabular-nums; }
.beh-drawer-ship b.free { color: #047857; }
.beh-drawer-ship small { grid-column: 1 / -1; font-size: .75rem; }

@media (max-width: 767px) { div:has(> .beh-gallery) { min-width: 0; max-width: 100%; } .beh-gallery { height: auto; } }

/* ===== 2026-11-26 (2): alineacion, botones y newsletter ===== */
/* ninguna columna puede ser mas ancha que su hueco */
main .container-x > .grid > *, main .container-x .grid.gap-8 > * { min-width: 0; }
main h1, main h2, main h3 { text-wrap: balance; }

/* tarjetas a la misma altura */
article.be-card .beh-name { min-height: 4.15em; }
.beh-chips { min-height: 22px; max-height: 22px; overflow: hidden; }

/* portada: mismo ritmo vertical y titulos centrados */
#be-bf-home { padding: 56px 0 8px; }
.beh-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.beh-ctas > a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: .92rem; font-weight: 700; }
.beh-ctas .beh-call { justify-self: auto; border: 2px solid #bfdbfe; background: #fff; color: var(--beh-bd); }
.beh-ctas .beh-call span { font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .beh-ctas > a { flex: 1 1 100%; }
  .beh-more nav { justify-content: center; }
  .beh-more nav > span { flex: 0 0 100%; text-align: center; }
}

/* ficha: compra */
.beh-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.beh-buy [data-beh-buy] { min-height: 52px; font-size: .95rem; border-radius: 12px; }
.beh-now { grid-column: 1 / -1; min-height: 50px; border: 2px solid var(--beh-b); border-radius: 12px; background: #fff; color: var(--beh-bd); font-weight: 700; font-size: .95rem; }
.beh-now:hover { background: #eff6ff; }
.beh-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.beh-contact a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px; border: 1px solid var(--beh-l); border-radius: 12px; font-weight: 700; font-size: .88rem; color: var(--beh-t); text-align: center; }
.beh-contact a.wa { border-color: #a7f3d0; color: #047857; }
.beh-contact a:hover { background: var(--beh-s); }
.beh-extra { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.beh-extra > button { display: flex !important; align-items: center; justify-content: center; gap: 7px; width: 100% !important; height: 44px !important; border-radius: 12px !important; font-size: .82rem; font-weight: 600; color: var(--beh-m) !important; }
.beh-extra > button svg { flex: 0 0 auto; width: 17px; height: 17px; }
.beh-extra > button[title*="ompar"]:first-child::after { content: "Comparar"; }
.beh-extra > button[title*="avorit"]::after { content: "Favorito"; }
.beh-extra > button[title="Compartir"]::after { content: "Compartir"; }

/* ficha: ventajas alineadas */
.beh-assure > span, .beh-assure > a { display: grid !important; grid-template-columns: 20px minmax(0, 1fr); align-items: start; column-gap: 10px; text-align: left; }
.beh-assure svg { width: 18px !important; height: 18px !important; margin-top: 1px; }

/* ficha: descripcion y caracteristicas a la par */
.beh-below { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; margin-top: 48px; }
.beh-below > * { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.beh-below > :only-child { grid-column: 1 / -1; }
.beh-specs dl > div { display: grid !important; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: 14px; align-items: baseline; }
.beh-specs dd { text-align: left !important; overflow-wrap: anywhere; }
@media (max-width: 767px) { .beh-below { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; } }

/* newsletter */
.beh-nl { padding: 56px 0; background: var(--beh-s); border-block: 1px solid var(--beh-l); }
.beh-nl-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; overflow: hidden; border: 1px solid var(--beh-l); border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -34px rgba(30, 64, 175, .55); }
.beh-nl-info { display: flex; flex-direction: column; justify-content: center; padding: 40px; color: #fff; background: linear-gradient(140deg, #1d4ed8, #2563eb 55%, #1e3a8a); }
.beh-nl-pct { font-size: 4.2rem; font-weight: 800; line-height: 1; color: #fbbf24; font-variant-numeric: tabular-nums; }
.beh-nl-pct small { font-size: .5em; vertical-align: top; margin-left: 2px; }
.beh-nl-info h2 { margin: 8px 0 18px; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.beh-nl-info ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: #dbeafe; }
.beh-nl-info li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.beh-nl-info li svg { margin-top: 2px; color: #fbbf24; }
.beh-nl-box { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 40px; min-width: 0; }
.beh-nl-label { font-size: .9rem; font-weight: 700; color: var(--beh-t); }
.beh-nl-box input[type=email] { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 1rem; color: var(--beh-t); background: #fff; }
.beh-nl-box input[type=email]:focus { border-color: var(--beh-b); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.beh-nl-box input[aria-invalid="true"] { border-color: #dc2626; outline: 2px solid #fecaca; }
.beh-nl-consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .78rem; line-height: 1.5; color: var(--beh-m); }
.beh-nl-consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--beh-b); }
.beh-nl-consent a { font-weight: 700; color: var(--beh-bd); text-decoration: underline; }
.beh-nl-error { margin: 0; font-size: .85rem; font-weight: 700; color: #b91c1c; }
.beh-nl-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 12px; background: var(--beh-b); color: #fff; font-weight: 800; font-size: 1rem; }
.beh-nl-btn:hover { background: var(--beh-bd); color: #fff; }
.beh-nl-btn:disabled { opacity: .6; }
.beh-nl-done { align-items: center; text-align: center; }
.beh-nl-done > span { color: #059669; }
.beh-nl-done h3 { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--beh-t); }
.beh-nl-done p { margin: 0; color: var(--beh-m); }
.beh-nl-done .beh-nl-btn { align-self: stretch; }
@media (max-width: 767px) {
  .beh-nl { padding: 32px 0; }
  .beh-nl-card { grid-template-columns: minmax(0, 1fr); }
  .beh-nl-info { padding: 26px 20px; align-items: center; text-align: center; }
  .beh-nl-info ul { text-align: left; }
  .beh-nl-box { padding: 24px 20px; }
}
.beh-contact a { gap: 8px; }
.beh-contact svg { flex: 0 0 auto; }
.beh-buy [data-beh-buy] { white-space: nowrap; }
@media (max-width: 479px) {
  .beh-buy > div:first-child button { width: 40px; }
  .beh-buy > div:first-child span { width: 28px; }
  .beh-buy [data-beh-buy] { padding-inline: 10px; gap: 7px; font-size: .9rem; }
  .beh-contact a { gap: 6px; font-size: .82rem; }
  .beh-extra { gap: 8px; }
  .beh-extra > button { gap: 5px; font-size: .76rem; }
}

/* titulos centrados con enlace: el enlace va debajo */
main .mb-8.text-center { flex-direction: column !important; align-items: center !important; }

/* ===== 2026-11-26 (3): centrado ===== */
/* barra superior: la etiqueta del 5 % en el centro exacto */
@media (min-width: 768px) {
  .beh-top > .container-x { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }
  .beh-top > .container-x > span:first-child { justify-self: start; white-space: nowrap; }
  .beh-top > .container-x > div:last-child { justify-self: end; white-space: nowrap; }
}
.beh-top .beh-promo { justify-self: center; display: inline-flex; align-items: center; height: 24px; padding: 0 14px; border-radius: 999px; background: #fbbf24; color: #0b1120; font-weight: 800; text-decoration: none; white-space: nowrap; }
.beh-top .beh-promo:hover { background: #f59e0b; color: #0b1120; }

/* franja de ventajas: mismos huecos y alineada con los bordes del contenido */
@media (min-width: 1024px) {
  .beh-trust ul { display: flex; justify-content: space-between; align-items: center; }
  .beh-trust li { white-space: nowrap; }
}
@media (max-width: 1023px) {
  .beh-trust ul { grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; column-gap: 28px; }
  .beh-trust li:last-child:nth-child(odd) { justify-self: center; }
}

/* escaparate: sin flotacion, las dos tarjetas a la misma altura */
main .animate-float { animation: none !important; }


/* portada: botones y accesos en una rejilla del mismo ancho */
.beh-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 36rem; }
.beh-more { max-width: 36rem; }
.beh-more nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.beh-more nav > span { grid-column: 1 / -1; }
.beh-more nav a { justify-content: center; min-height: 40px; text-align: center; }
@media (max-width: 639px) {
  .beh-ctas { grid-template-columns: minmax(0, 1fr); }
  .beh-more nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
