/* Portada: mas aire y simetria CON EL ESTILO ACTUAL de bautaelectro.com (2026-11-26). Se carga despues de be-ux-v1.css. */
main:has(.beh-hero) { overflow-x: clip; }
@media (min-width: 1600px) { main:has(.beh-hero) .container-x { max-width: 86rem; } }

/* ---------- barra superior: el azul degradado de siempre ---------- */
.beh-top { background: linear-gradient(90deg, #1d4ed8, #2563eb 50%, #1d4ed8); color: #fff; border: 0; }
.beh-top svg { color: rgba(255, 255, 255, .72); }
.beh-top a:hover { color: rgba(255, 255, 255, .78); }
.beh-top .beh-promo, .beh-top .beh-promo:hover { color: #0b1120; }

/* ---------- cabecera de portada (colores originales) ---------- */
@media (min-width: 1024px) {
  .beh-hero h1 { font-size: clamp(2.6rem, 4.1vw, 3.9rem); }
  .beh-hero > .container-x { min-height: min(660px, calc(100vh - 215px)); gap: 64px; padding-top: 48px; padding-bottom: 56px; }
  .beh-hero > .container-x > div:last-child { max-width: 35rem; width: 100%; gap: 18px; }
  .beh-hero > .container-x > div:last-child > a:first-child { padding: 20px; }
}
.beh-hero .beh-ctas { margin-top: 32px; }
.beh-hero .beh-ctas > a { min-height: 56px; font-size: .98rem; }

/* ---------- franja de ventajas: el degradado azul y las mayusculas de la web actual, sin moverse ---------- */
main .beh-trust { background: linear-gradient(100deg, #0b1a4d 0%, #1e40af 38%, #2563eb 52%, #1e40af 66%, #0b1a4d 100%); background-size: 220% 100%; }
main .beh-trust ul { padding-block: 20px; }
main .beh-trust li { text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; font-weight: 800; }
main .beh-trust .beh-ico { color: #67e8f9; }

/* ---------- ritmo y titulos ---------- */
main:has(.beh-hero) section:has(.beh-cats), main:has(.beh-hero) section:has(.beh-needs), main:has(.beh-hero) section:has(.beh-steps), main:has(.beh-hero) section:has(.beh-brands-on), main:has(.beh-hero) section:has(.beh-store), main:has(.beh-hero) section:has(> .grid article.be-card) { padding-top: 88px; padding-bottom: 88px; }
main:has(.beh-hero) .mb-8 { margin-bottom: 44px; }
main:has(.beh-hero) .mb-8 h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
main:has(.beh-hero) .mb-8 h2 + p { margin-top: 12px; font-size: 1.08rem; }

/* ---------- categorias: 4 por fila ---------- */
@media (min-width: 1024px) { main:has(.beh-hero) .beh-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
main:has(.beh-hero) .beh-cats [data-cat-card] > div:last-child { align-items: center; padding: 18px 14px 22px; text-align: center; }
main:has(.beh-hero) .beh-cats [data-cat-card] h3 { font-size: 1.1rem; }
@media (max-width: 639px) { main:has(.beh-hero) .beh-cats { gap: 12px; } main:has(.beh-hero) .beh-cats [data-cat-card] h3 { font-size: .95rem; } }

/* ---------- Black Friday: cabecera centrada y algo mas de aire ---------- */
main:has(.beh-hero) #be-bf-home { padding: 72px 0 24px; }
main:has(.beh-hero) #be-bf-home h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
main:has(.beh-hero) #be-bf-home .hd { margin-bottom: 32px; }
main:has(.beh-hero) #be-bf-home .row { gap: 18px; }

/* ---------- tarjetas ---------- */
@media (min-width: 1024px) {
  main:has(.beh-hero) section > .grid:has(article.be-card) { gap: 22px; }
  main:has(.beh-hero) article.be-card .text-lg { font-size: 1.35rem; }
  main:has(.beh-hero) article.be-card button:not(.be-social-overlay-btn) { min-height: 48px; }
}

/* ---------- que necesitas ---------- */
main:has(.beh-hero) .beh-needs { gap: 20px; }
main:has(.beh-hero) .beh-need { align-items: center; padding: 20px 16px; border-radius: 20px; text-align: center; }
main:has(.beh-hero) .beh-need-img { width: 100%; height: 175px; margin-bottom: 10px; }
main:has(.beh-hero) .beh-need strong { font-size: 1.1rem; }
main:has(.beh-hero) .beh-need-p { padding-top: 10px; font-size: 1rem; }
@media (max-width: 639px) { main:has(.beh-hero) .beh-need-img { height: 105px; } main:has(.beh-hero) .beh-need strong { font-size: .98rem; } }

/* ---------- pasos: iconos cuadrados con linea, como en la web actual ---------- */
main:has(.beh-hero) .beh-steps { position: relative; gap: 24px; }
main:has(.beh-hero) .beh-steps li { position: relative; padding: 0 12px; border: 0; background: transparent; text-align: center; }
main:has(.beh-hero) .beh-step-ico { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 18px; background: #2563eb; color: #fff; box-shadow: 0 16px 28px -16px rgba(37, 99, 235, .8); }
main:has(.beh-hero) .beh-steps li:nth-child(even) .beh-step-ico { background: #0e7490; box-shadow: 0 16px 28px -16px rgba(14, 116, 144, .8); }
main:has(.beh-hero) .beh-steps h3 { margin-top: 22px; font-size: 1.1rem; }
main:has(.beh-hero) .beh-steps p { max-width: 30ch; margin-inline: auto; font-size: .93rem; }
@media (min-width: 1024px) { main:has(.beh-hero) .beh-steps::before { content: ""; position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 1px; background: #e2e8f0; } }

/* ---------- marcas: tipografia gris en mayusculas, como en la web actual ---------- */
main .beh-label { color: #94a3b8; letter-spacing: .14em; }
main .beh-brands-on { gap: 20px; margin-bottom: 40px; }
main .beh-brand { padding: 34px 12px; border: 1px solid #e2e8f0; background: #f8fafc; }
main .beh-brand strong { text-transform: uppercase; color: #64748b; font-size: clamp(1.15rem, 3.4vw, 2.1rem); letter-spacing: -.01em; transition: color .2s; }
main .beh-brand:hover strong { color: #2563eb; }
main .beh-brands-off { gap: 12px 34px; }
main .beh-brands-off a { min-height: 44px; padding: 0; border: 0; background: transparent; color: #64748b; font-size: 1.15rem; transition: color .2s; }
main .beh-brands-off a:hover { color: #2563eb; }

main:has(.beh-hero) .beh-store { padding: 52px; border-radius: 28px; }

/* ---------- newsletter: el bloque claro de siempre, a todo el ancho ---------- */
.beh-nl { padding: 72px 0; background: rgba(241, 245, 249, .8); }
.beh-nl-card { max-width: 76rem; align-items: center; gap: 56px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.beh-nl-info { padding: 0; color: #0f172a; background: none; }
.beh-nl-info h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.beh-nl-info ul { color: #475569; font-size: 1rem; }
.beh-nl-info li svg { color: #2563eb; }
.beh-nl-box { padding: 32px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 18px 34px -28px rgba(15, 23, 42, .4); }

/* ---------- movil ---------- */
@media (max-width: 767px) {
  main .beh-trust ul { padding-block: 16px; }
  main .beh-trust li { font-size: .7rem; }
  .beh-hero .container-x > div:first-child { text-align: center; }
  main:has(.beh-hero) section:has(.beh-cats), main:has(.beh-hero) section:has(.beh-needs), main:has(.beh-hero) section:has(.beh-steps), main:has(.beh-hero) section:has(.beh-brands-on), main:has(.beh-hero) section:has(.beh-store), main:has(.beh-hero) section:has(> .grid article.be-card) { padding-top: 52px; padding-bottom: 52px; }
  main:has(.beh-hero) .mb-8 { margin-bottom: 26px; }
  main:has(.beh-hero) #be-bf-home { padding: 44px 0 12px; }
  main:has(.beh-hero) .beh-store { padding: 28px 20px; }
  .beh-nl { padding: 40px 0; }
  .beh-nl-card { gap: 22px; }
  .beh-nl-info { text-align: center; }
  .beh-nl-box { padding: 22px 18px; }
}

/* ===== animaciones (con be-anim-v1.js) ===== */
@media (prefers-reduced-motion: no-preference) {
  .be-a { opacity: 0; translate: 0 28px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .8, .2, 1) !important; }
  .be-a.be-in { opacity: 1; translate: 0 0; }
  /* franja de ventajas: un brillo lento recorre el azul */
  main .beh-trust { animation: be-shine 9s ease-in-out infinite alternate; }
  @keyframes be-shine { from { background-position: 0 0; } to { background-position: 100% 0; } }
  /* el subrayado del titular se dibuja al entrar */
  .beh-hero h1 svg path { stroke-dasharray: 220; animation: be-draw 1.1s .55s ease both; }
  @keyframes be-draw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
  /* respuesta al pasar el raton */
  .beh-cats [data-cat-card] img { transition: scale .45s cubic-bezier(.2, .8, .2, 1); }
  .beh-cats [data-cat-card]:hover img { scale: 1.08; }
  .beh-need-img img { transition: scale .45s cubic-bezier(.2, .8, .2, 1); }
  .beh-need:hover .beh-need-img img { scale: 1.08; }
  .beh-need, .beh-brand, article.be-card, .beh-cats [data-cat-card] { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
  .beh-need:hover, .beh-brand:hover, main article.be-card:hover { transform: translateY(-6px); }
  .beh-step-ico { transition: transform .28s cubic-bezier(.2, .9, .3, 1.4); }
  .beh-steps li:hover .beh-step-ico { transform: translateY(-6px) rotate(-6deg); }
  .beh-ctas > a svg, .beh-need-p { transition: translate .22s ease; }
  .beh-ctas > a:hover svg { translate: 4px 0; }
  .beh-need:hover .beh-need-p { translate: 5px 0; }
  .beh-ctas > a:active, .beh-now:active, .beh-nl-btn:active, article.be-card button:active { scale: .97; }
  .be-bump { animation: be-bump .5s cubic-bezier(.2, 1.6, .4, 1); }
  @keyframes be-bump { 40% { scale: 1.45; } }
}

/* estrellas de las resenas en ambar */
main section p.text-2xl.text-amber-500 { color: #f59e0b; font-size: 1.9rem; letter-spacing: .1em; }

@media (max-width: 1023px) { main .beh-trust li { flex-direction: column; gap: 6px; text-align: center; } main .beh-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; } }

/* ===== acceso y registro: dos columnas parejas ===== */
.beh-auth { display: flex; align-items: center; justify-content: center; min-height: 72vh; padding-top: 56px; padding-bottom: 72px; }
.beh-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 62rem; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -42px rgba(15, 23, 42, .5); }
.beh-auth-side { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 48px; border-right: 1px solid #e2e8f0; background: radial-gradient(420px 300px at 0 0, rgba(96, 165, 250, .18), transparent 70%), #f8fafc; }
.beh-auth-side h2 { margin: 0; font-size: 1.75rem; font-weight: 800; line-height: 1.2; color: #0f172a; text-wrap: balance; }
.beh-auth-side ul { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.beh-auth-side li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; font-weight: 600; color: #334155; }
.beh-auth-side li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #2563eb; color: #fff; }
.beh-auth-side li:nth-child(even) > span { background: #0e7490; }
.beh-auth-alt { padding-top: 24px; border-top: 1px solid #e2e8f0; }
.beh-auth-alt p { margin: 0 0 12px; color: #475569; }
.beh-auth-alt a { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 2px solid #bfdbfe; border-radius: 12px; background: #fff; font-weight: 800; color: #1d4ed8; transition: background .2s, border-color .2s; }
.beh-auth-alt a:hover { border-color: #2563eb; background: #eff6ff; }
.beh-auth-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 48px; }
.beh-auth-card h1 { order: -3; margin: 0; font-size: 2rem; font-weight: 800; color: #0f172a; }
.beh-auth-card .beh-auth-sub { order: -2; margin: 6px 0 24px; color: #64748b; }
.beh-auth-card #be-google-wrap { order: -1; margin: 0 0 18px !important; }
.beh-auth-card .be-google-or { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .82rem; color: #64748b; }
.beh-auth-card .be-google-or::before, .beh-auth-card .be-google-or::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.beh-auth-card form input:not([type=checkbox]):not([type=hidden]) { height: 52px; font-size: 1rem; }
.beh-auth-card form button[type=submit] { min-height: 52px; font-size: 1rem; }
@media (min-width: 900px) { .beh-auth-card > p:last-child { display: none; } }
@media (max-width: 899px) {
  .beh-auth { padding-top: 20px; padding-bottom: 40px; }
  .beh-auth-grid { grid-template-columns: minmax(0, 1fr); }
  .beh-auth-card { order: -1; padding: 28px 18px; }
  .beh-auth-side { gap: 20px; padding: 28px 18px; border-right: 0; border-top: 1px solid #e2e8f0; }
  .beh-auth-side h2 { font-size: 1.35rem; text-align: center; }
}
.beh-auth-card form, .beh-auth-card form.grid { grid-template-columns: minmax(0, 1fr); }
.beh-auth-card #be-google-btn { width: 100%; }
@media (max-width: 899px) { .beh-auth.container-x { padding-inline: 12px; } .beh-auth-card { padding-inline: 14px; } }
@media (max-width: 359px) { .beh-auth-card form > div:has(iframe) { transform: scale(.88); } }

/* ===== barra superior: dos grupos con el mismo estilo, separados por lineas finas ===== */
@media (min-width: 768px) {
  .beh-top > .container-x { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
}
.beh-top-left, .beh-top .beh-top-right { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.beh-top-left > * { display: inline-flex; }
.beh-top-left > *, .beh-top-right > * { align-items: center; gap: 7px; padding: 0 18px; line-height: 14px; border-left: 1px solid rgba(255, 255, 255, .28); }
.beh-top-left > *:first-child, .beh-top-right > *:first-child { padding-left: 0; border-left: 0; }
.beh-top-right > *:last-child { padding-right: 0; }
.beh-top .beh-promo, .beh-top .beh-promo:hover { height: auto; padding: 0 0 0 18px; border-radius: 0; background: none; color: #fff; font-weight: 600; gap: 5px; text-decoration: none; }
.beh-top .beh-promo b { color: #fcd34d; font-weight: 800; }
.beh-top .beh-promo:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1023px) { .beh-top-left > *, .beh-top-right > * { padding-inline: 10px; } .beh-top .beh-promo { padding-left: 10px; } }

/* ===== acceso: columnas cuadradas (titulos, bloques y botones a la misma altura) ===== */
.beh-auth-side, .beh-auth-card { justify-content: flex-start; padding: 44px 48px; }
.beh-auth-card h1, .beh-auth-side h2 { font-size: 1.75rem; line-height: 48px; letter-spacing: -.01em; }
.beh-auth-card .beh-auth-sub { margin: 6px 0 24px; line-height: 24px; }
@media (min-width: 900px) {
  .beh-auth-side { gap: 0; }
  .beh-auth-side h2 { white-space: nowrap; }
  .beh-auth-side ul { margin-top: 54px; }
  .beh-auth-side .beh-auth-alt { margin-top: auto; }
  .beh-auth-card form > button[type=submit]:last-child { margin-top: 4px; }
  .beh-auth-card > form:last-of-type { margin-bottom: 0; }
}
.beh-auth-alt a, .beh-auth-card form button[type=submit] { min-height: 52px; height: 52px; border-radius: 12px; }
.beh-auth-card form { width: 100%; }
/* la casilla de Google es de ancho fijo: va dentro de una caja del mismo ancho que los campos */
.beh-auth-card .beh-captcha:has(iframe) { width: 100%; margin: 0; padding: 2px 0; justify-content: center; overflow: hidden; border: 1px solid #d3d3d3; border-radius: 12px; background: #f9f9f9; }
@media (max-width: 899px) { .beh-auth-side, .beh-auth-card { padding: 28px 14px; } .beh-auth-card h1, .beh-auth-side h2 { line-height: 1.25; } }

/* recorta el borde propio de la casilla para que no se vea una caja dentro de otra */
.beh-auth-card .beh-captcha:has(iframe) > div { width: 300px; height: 74px; overflow: hidden; }
.beh-auth-card .beh-captcha:has(iframe) > div > * { margin: -2px; }
