/* Cabecera compartida de Dessirena y franja de avisos en cuenta (SPEC-C18).
   Origen: tienda `src/styles/nueva/cabecera.css` @ 031946f (sección «Cabecera unificada», v4 del 24-nov) más lo de dessirena-com
   `src/styles/cabecera.css` @ 99c5fe5 que la tienda no trae (.dh-sr, .dh-redondo, .dh-tarj*, .dh-cb-*, .dh-sin-img, contador del carrito,
   --dh-cajon-max); adaptado para cuenta (C18): fila a 72rem (≤ 1120 px de contenido; 1680 px en las páginas con marco, C19 D-4), nombre de «yo» oculto bajo 1152 px y con tope de
   7ch (D-6), «Mi cuenta» siempre visible en escritorio, idioma solo icono, sin buscador ancho ni sugerencias, sin reglas de páginas de la
   tienda, reducida con tema en la fila (D-11), "Geist Variable" → Geist. Tokens --dh-* (B/N de dessirena.com) en claro y oscuro. */
:root { --dh-papel: #fff; --dh-alt: #f2f2f2; --dh-tinta: #000; --dh-suave: #4d4d4d; --dh-linea: #d4d4d4; --dh-alto: 61px; --dh-alto-max: 61px; }
:root[data-tema=oscuro] { --dh-papel: #111; --dh-alt: #1c1c1c; --dh-tinta: #f2f2f2; --dh-suave: #b5b5b5; --dh-linea: #333; }
@media (min-width: 1100px) { :root { --dh-alto: 69px; --dh-alto-max: 69px; } }
@media (max-height: 520px) { :root { --dh-alto: 0px; --dh-alto-max: 0px; } }
/* El foco y los anclajes no quedan bajo la cabecera (WCAG 2.4.11). */
html { scroll-padding-top: calc(var(--dh-alto-max, 69px) + 12px); }
/* Auditoría completa I-1: con el foco en la cabecera (pegajosa) el relleno la daría por «fuera de vista» y la página saltaría al
   enfocar o escribir en la búsqueda, o al cerrar con Escape. */
html:has([data-cabecera]:focus-within) { scroll-padding-top: 0; }

/* Franja de avisos: banda negra en los dos temas, un aviso a la vez (no es fija: se va con la página). */
.franja { position: relative; z-index: 51; background: #000; color: #fff; font: 0.86rem/1.4 Geist, system-ui, sans-serif; overflow-x: clip; view-transition-name: franja; }
/* La franja, a 74rem como en la tienda, también en las páginas con marco (titular, 26-nov, auditoría completa C19 M-4). */
.franja-int { position: relative; display: flex; align-items: center; gap: 0.25rem; max-width: 74rem; margin: 0 auto; padding: 0 0.4rem; min-height: 44px; }
.franja-lista { list-style: none; margin: 0; padding: 0; position: relative; flex: 1; min-width: 0; min-height: 44px; overflow: hidden; }
.franja-msg { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; text-align: center; padding: 0.3rem 0.2rem; white-space: nowrap; }
.franja-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.franja.viva .franja-msg { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(30px);
  transition: opacity .45s, transform .55s cubic-bezier(.22,1,.36,1), visibility .45s; }
.franja.viva .franja-msg.activo { position: relative; opacity: 1; visibility: visible; transform: none; }
.franja.viva .franja-msg.sale { transform: translateX(-30px); }
.franja:not(.viva) .franja-msg:not(:first-child) { display: none; }
.franja-ico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .16); font-size: 1rem; line-height: 1; }
.franja-cta { display: inline-flex; align-items: center; flex: none; min-height: 30px; padding: 0 .8rem; border: 0; border-radius: 999px;
  background: #fff; color: #000; font: 600 .82rem Geist, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.franja-flecha, .franja-pausa { flex: none; width: 36px; height: 36px; border: 0; background: none; color: inherit; border-radius: 50%; cursor: pointer; font-size: 1.25rem; line-height: 1; opacity: .85; }
.franja-flecha:hover, .franja-pausa:hover { background: rgb(255 255 255 / .14); opacity: 1; }
.franja-cta, .franja-flecha, .franja-pausa { position: relative; }
.franja-cta::after, .franja-flecha::after, .franja-pausa::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; min-width: 44px; min-height: 44px; width: 100%; height: 100%; }
.franja-pausa span { display: block; width: 10px; height: 12px; margin: auto; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.franja-pausa[aria-pressed=true] span { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 14px; }
.franja :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.franja-puntos { display: flex; gap: 4px; position: absolute; left: 50%; bottom: 3px; translate: -50% 0; }
.franja-puntos i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; transition: opacity .3s, width .3s; }
.franja-puntos i.on { opacity: 1; width: 14px; border-radius: 9px; }
.franja-corto { display: none; }
@media (max-width: 959px) {
  .franja { font-size: .82rem; } .franja-largo { display: none; } .franja-corto { display: inline; }
  .franja-int { padding: 0 .1rem; } .franja-flecha { width: 30px; }
}
@media (max-width: 440px) { .franja-ico { display: none; } }

/* ---- Cabecera ---- */
.dh { position: sticky; top: 0; z-index: 50; background: var(--dh-papel); border-bottom: 1px solid var(--dh-linea); color: var(--dh-tinta);
  font-family: Geist, system-ui, sans-serif; view-transition-name: cabecera; transition: transform .35s ease, visibility .35s; }
.dh[data-oculta=si] { transform: translateY(-100%); visibility: hidden; }
@media (max-height: 520px) { .dh { position: relative; } .dh[data-oculta=si] { transform: none; visibility: visible; } }
.dh a { color: inherit; }
.dh svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* SPEC-C19 D-4: en las páginas con marco (panel y Administración) la fila mide lo que el marco, 1680 px como en la tienda; la página lo
   dice con una variable (marco.css), sin clases dh-* nuevas. En las demás, 72rem. La franja se ensancha igual. */
.dh-ancho { max-width: var(--dh-ancho, 72rem); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.dh-fila { display: flex; align-items: center; gap: .5rem; min-height: 60px; }
.dh-esp { flex: 1; }
.dh-marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; min-width: 0; flex: none; }
.dh-marca img { width: 38px; height: 38px; border-radius: 50%; flex: none; transition: transform .45s ease; }
.dh-marca:hover img { transform: rotate(-8deg) scale(1.06); }
.dh-nom { display: grid; }
.dh-cur { font: 400 1.6rem/1 Carattere, cursive; font-size-adjust: .42; }
.dh-nom small { font: 600 .55rem Geist, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--dh-suave); margin-top: 3px; white-space: nowrap; }
@media (max-width: 499px) { .dh-nom small { display: none; } }
/* Bajo 360 el nombre no cabe; se oculta solo a la vista para que el logo conserve su nombre accesible (auditoría M-5). */
@media (max-width: 359px) { .dh-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } }
/* Acciones: redondos sin borde (borde y fondo al pasar), «Entrar» la única píldora; en el teléfono solo su icono. */
.dh-acc { display: flex; align-items: center; gap: .35rem; flex: none; }
/* Auditoría I-2: logo, lupa, cuenta, carrito y ☰ necesitan ≈ 381 px; de 360 a 389 se aprieta el aire entre botones. */
@media (max-width: 389px) { .dh-fila { gap: .25rem; } .dh-acc { gap: 0; } }
.dh-redondo { width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; display: grid; place-items: center; position: relative; color: inherit;
  background: none; cursor: pointer; padding: 0; transition: background .2s, border-color .2s; flex: none; text-decoration: none; }
.dh-redondo:hover, .dh-redondo[aria-expanded=true] { border-color: var(--dh-linea); background: var(--dh-alt); }
.dh-redondo b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--dh-tinta); color: var(--dh-papel);
  font: 700 .7rem/20px Geist, system-ui, sans-serif; text-align: center; padding: 0 5px; }
.dh-redondo b[hidden] { display: none; }
.dh-cuenta { display: flex; align-items: center; flex: none; min-width: 0; }
.dh-entrar { display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding: 0 1rem; border: 1.5px solid var(--dh-tinta); border-radius: 999px;
  font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.dh-entrar:hover { background: var(--dh-tinta); color: var(--dh-papel); }
.dh-yo { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; text-decoration: none; min-width: 0; }
.dh-inicial { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dh-tinta); color: var(--dh-papel);
  font: 400 1.7rem/1 Carattere, cursive; font-size-adjust: .42; padding-top: 2px; flex: none; }
.dh-nombre { display: none; font-weight: 600; font-size: .92rem; max-width: 7ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-idioma { color: var(--dh-suave); cursor: default; }
.dh-idioma:hover { background: none; border-color: transparent; }
.dh-tema .dh-ico-luna, :root[data-tema=oscuro] .dh-tema .dh-ico-sol { display: none; }
:root[data-tema=oscuro] .dh-tema .dh-ico-luna { display: grid; } .dh-tema span { display: grid; }
.dh-ico-cerrar { display: none; }
[data-abre-cajon][aria-expanded=true] .dh-ico-menu { display: none; } [data-abre-cajon][aria-expanded=true] .dh-ico-cerrar { display: grid; }
.dh-ico-menu, .dh-ico-cerrar { place-items: center; }
.dh :focus-visible { outline: 2px solid var(--dh-tinta); outline-offset: 3px; }
/* Sin JavaScript no hay quien abra la lupa, el ☰ ni cambie el tema: no se ofrecen botones muertos (los paneles se abren al pasar). */
@media (scripting: none) { .dh-lupa, [data-abre-cajon], .dh-tema { display: none !important; } }

/* Fila de búsqueda: la lupa la despliega bajo la cabecera (sin sugerencias en cuenta, D-3). */
.dh-busca { display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1rem; border: 1px solid transparent; border-radius: 999px;
  background: var(--dh-alt); color: var(--dh-suave); transition: border-color .2s, background .2s; }
.dh-busca:hover { border-color: var(--dh-linea); }
.dh-busca:focus-within { background: var(--dh-papel); border-color: var(--dh-tinta); outline: 2px solid var(--dh-tinta); outline-offset: 2px; }
.dh-busca input { border: 0; outline: none; flex: 1; min-width: 0; font: inherit; font-size: 1rem; background: none; color: var(--dh-tinta); }
.dh-busca input::placeholder { color: var(--dh-suave); }
.dh .dh-busca input:focus-visible { outline: none; }   /* el borde del buscador ya marca el foco (focus-within) */
.dh-busca-fila { border-top: 1px solid var(--dh-linea); padding: .6rem 0; background: var(--dh-papel); }
.dh-busca-fila .dh-busca { max-width: 720px; margin: 0 auto; }
.dh-busca-fila[hidden] { display: none; }

/* Menú de escritorio en la misma fila */
.dh-menu { display: none; align-items: stretch; gap: .1rem; margin-left: 1.2rem; }
.dh-it { position: relative; display: flex; }
.dh-l { position: relative; display: inline-flex; align-items: center; gap: .3rem; min-height: 60px; padding: 0 .7rem; font: inherit; font-size: .92rem;
  color: var(--dh-tinta); text-decoration: none; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.dh-l::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 12px; height: 2px; background: var(--dh-tinta); transform: scaleX(0);
  transform-origin: left; transition: transform .3s ease; }
.dh-l:hover::after, .dh-l:focus-visible::after, .dh-l[aria-expanded=true]::after { transform: scaleX(1); }
.dh-flecha { display: inline-block; font-size: .7rem; transition: transform .25s ease; }
.dh-l[aria-expanded=true] .dh-flecha { transform: rotate(180deg); }
.dh-cotiza { font-weight: 600; }
@media (min-width: 1100px) {
  .dh-fila { min-height: 68px; } .dh-l { min-height: 68px; } .dh-l::after { bottom: 14px; }
  /* D-6: a 72rem la fila de la tienda no deja holgura; se recorta primero el aire de .dh-l (.7rem → .5rem): ≥ 16 px a 1100 con «Entrar». */
  .dh-l { padding: 0 .5rem; } .dh-l::after { left: .5rem; right: .5rem; }
  .dh-cur { font-size: 2.2rem; } .dh-nom small { font-size: .6rem; }
  .dh-menu { display: flex; } .dh-solo-tel { display: none !important; }
  .dh-yo { border: 1px solid var(--dh-linea); padding: .2rem; } .dh-yo .dh-inicial { width: 2.2rem; height: 2.2rem; font-size: 1.4rem; }
}
/* D-6: a 72rem no cabe un nombre con holgura bajo 1152 px (queda la inicial); desde 1152, nombre con tope de 7ch. */
@media (min-width: 1152px) { .dh-yo { padding-right: .8rem; } .dh-nombre { display: inline; } }
@media (max-width: 1099px) {
  .dh-solo-esc { display: none !important; }
  .dh-entrar { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .dh-entrar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Paneles: cerrados no se ven ni se alcanzan con el teclado (visibility). */
.dh-panel { position: absolute; top: 100%; left: 0; z-index: 6; background: var(--dh-papel); border: 1px solid var(--dh-linea); border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .16); padding: 1rem; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity .18s, transform .25s ease, visibility .18s; }
.dh-it.abierto .dh-panel { opacity: 1; visibility: visible; transform: none; }
@media (scripting: none) { .dh-it:hover .dh-panel, .dh-it:focus-within .dh-panel { opacity: 1; visibility: visible; transform: none; } }
.dh-ayuda { width: 320px; display: grid; gap: .6rem; }
.dh-h { margin: 0 0 .4rem; font: 600 .66rem Geist, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dh-suave); }
.dh-panel a:not(.dh-tarj) { display: grid; gap: .05rem; padding: .45rem .6rem; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 600;
  transition: background .15s, transform .2s ease; }
.dh-panel a:not(.dh-tarj):hover { background: var(--dh-alt); transform: translateX(3px); }
.dh-panel small { font-weight: 400; color: var(--dh-suave); font-size: .78rem; }
.dh-grupo { display: grid; gap: .05rem; } .dh-grupo + .dh-grupo { border-top: 1px solid var(--dh-linea); padding-top: .6rem; }
.dh-mega { display: grid; gap: 1rem; }
.dh-tres { width: min(760px, 92vw); grid-template-columns: 1fr 1fr 1fr; }
.dh-dos { width: min(700px, 92vw); grid-template-columns: 1fr 1.4fr; }
.dh-col { display: grid; gap: .1rem; align-content: start; }
/* Tarjetas: texto claro sobre su color (igual en los dos temas). */
.dh .dh-tarj { border-radius: 14px; padding: 1rem; color: #fff; display: grid; gap: .4rem; align-content: end; min-height: 200px; text-decoration: none;
  background: linear-gradient(160deg, #2a7a9c, #0f3f53); transition: filter .2s; }
.dh .dh-tarj:hover { filter: brightness(1.08); }
.dh-tarj b { font: 400 2rem/1 Carattere, cursive; font-size-adjust: .42; }
.dh-tarj > span { font-size: .85rem; }
.dh-tarj-et { font: 600 .62rem Geist, system-ui, sans-serif !important; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.dh .dh-tarj-manuales { background: linear-gradient(160deg, #b88a58 0%, #8a6238 55%, #5c3d1f 100%); }
.dh-ir { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-weight: 600; }
.dh-ir i { font-style: normal; transition: transform .25s ease; } .dh-tarj:hover .dh-ir i { transform: translateX(4px); }
.dh-libro { width: 64px; height: 64px; } .dh-libro svg { width: 100%; height: 100%; stroke: #fff; stroke-width: 1.6; }
/* Cielito Blú: su cielo claro con su logo azul (mismos colores en claro y oscuro); la nube va por máscara (copia local, CSP img-src 'self'). */
.dh .dh-tarj-cb { --cb-azul: #257394; --cb-tinta: #0b2f3d; --cb-texto: #24505f;
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: .35rem; align-self: start; min-height: 0;
  padding: 1.1rem 1.1rem 1rem; color: var(--cb-tinta); border: 1px solid #cfe3ec; background: linear-gradient(180deg, #d7ecf5 0%, #eef7fb 58%, #fff 100%); }
.dh .dh-tarj-cb:hover { filter: none; box-shadow: 0 14px 30px rgba(37, 115, 148, .22); }
.dh-tarj-cb > span:not(.dh-cb-nubecita) { position: relative; color: var(--cb-texto); }
.dh-tarj-cb .dh-tarj-et, .dh-tarj-cb .dh-ir { color: var(--cb-azul) !important; opacity: 1; }
.dh-cb-logo { display: grid; width: 78%; align-self: center; margin: 0 0 .5rem; }
.dh-cb-nube { display: block; aspect-ratio: 480 / 205; background-color: var(--cb-azul);
  -webkit-mask: url(cabecera/cielito-blu-nube.webp) center / 100% 100% no-repeat; mask: url(cabecera/cielito-blu-nube.webp) center / 100% 100% no-repeat; }
.dh-cb-letras { display: block; width: 100%; height: auto; margin-top: -4.8%; }
.dh-cb-nubecita { position: absolute; z-index: -1; width: 80px; height: 26px; border-radius: 26px; background: #fff; opacity: .8; }
.dh-cb-nubecita::before, .dh-cb-nubecita::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.dh-cb-nubecita::before { width: 38px; height: 38px; left: 12px; top: -17px; } .dh-cb-nubecita::after { width: 26px; height: 26px; left: 40px; top: -10px; }
.dh-cb-n1 { top: 58%; left: -26px; } .dh-cb-n2 { top: 18px; right: -26px; transform: scale(.75); }
.dh-lista-man { display: grid; gap: .25rem; align-content: start; }
.dh-lista-man a { grid-template-columns: 52px 1fr auto; align-items: center; gap: .7rem !important; }
.dh-lista-man img, .dh-sin-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--dh-alt); display: block; }
.dh-sin-img { display: grid; place-items: center; color: var(--dh-suave); }
.dh-sin-img svg { width: 26px; height: 26px; }
.dh-lista-man a > span:not(.dh-gratis) { display: grid; gap: .1rem; }
.dh-gratis { font-weight: 700; font-size: .82rem; color: #1f6f43; }
:root[data-tema=oscuro] .dh-gratis { color: #7fd1a3; }
@media (prefers-reduced-motion: no-preference) { :root:not([data-movimiento=pausa]) .dh-it.abierto .dh-panel a { animation: dh-entra .35s ease both; } }
@keyframes dh-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Menú del teléfono (como dessirena.com): desplegado bajo la cabecera, hasta el borde de la pantalla desde donde empieza. */
.dh-cajon { border-top: 1px solid var(--dh-linea); padding: .6rem .8rem 1rem; display: grid; gap: .1rem; background: var(--dh-papel);
  max-height: var(--dh-cajon-max, calc(100dvh - 60px)); overflow-y: auto; overscroll-behavior: contain; }
.dh-cajon[hidden] { display: none; }
@media (min-width: 1100px) { .dh-cajon { display: none !important; } }
.dh-cajon a, .dh-cajon summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 .5rem; border-radius: 12px;
  color: inherit; text-decoration: none; font-weight: 600; cursor: pointer; list-style: none; }
.dh-cajon summary::-webkit-details-marker { display: none; }
.dh-cajon summary span { transition: transform .25s; } .dh-cajon details[open] > summary span { transform: rotate(180deg); }
.dh-sub { padding-left: .8rem; display: grid; } .dh-sub a { font-weight: 500; min-height: 44px; }
.dh-grupo-tel { font: 600 .66rem Geist, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dh-suave); padding: .8rem .5rem .2rem; }
.dh-tema-tel { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 .5rem; margin-top: .4rem; border-top: 1px solid var(--dh-linea); font-weight: 600; }
.dh-tema-tel.dh-idioma-tel { border-top: 0; margin-top: 0; }
.dh-idioma-txt { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--dh-suave); }
.dh-cajon :focus-visible { outline: 2px solid var(--dh-tinta); outline-offset: 2px; }

/* «Mi cuenta» (SPEC-C19 §18, C19-10). Origen: tienda `src/styles/nueva/cabecera.css` @ apertura 7fee626 (bloque .dh-cpanel; el mismo menú de
   dessirena.com): un <dialog> modal (capa superior: el foco no se escapa). Teléfono: hoja inferior con velo; escritorio (≥ 1100): desplegable
   bajo el botón. Adaptado para cuenta: "Geist Variable" → Geist, .redondo → .dh-redondo, los íconos son los <svg> de la cabecera, la flecha
   solo desde 1152 px (D-6 de C18: a 1100 no cabe con holgura), «Salir» al final con su renglón de error. */
button.dh-yo { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.dh-cuenta-flecha { display: none; }
.dh-cpanel { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 85vh; padding: 0; border: 0; overflow: auto;
  background: var(--dh-papel); color: var(--dh-tinta); border-radius: 1.5rem 1.5rem 0 0; box-shadow: 0 -10px 40px rgb(0 0 0 / .18);
  font: 400 1rem/1.4 Geist, system-ui, sans-serif; overscroll-behavior: contain; }
.dh-cpanel::backdrop { background: rgb(0 0 0 / .35); }
.dh-cpanel[open] { visibility: visible; }   /* la cabecera retirada lleva visibility:hidden y el diálogo es su descendiente */
@media (max-width: 1099px) { html:has(.dh-cpanel[open]) { overflow: hidden; } }   /* la hoja no deja mover la página de atrás */
.dh-cpanel-in { position: relative; padding: .6rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
.dh-asa { display: block; width: 2.6rem; height: .3rem; border-radius: 999px; background: var(--dh-linea); margin: .2rem auto .8rem; }
.dh-ccerrar.dh-redondo { position: absolute; top: .5rem; right: .5rem; }
.dh-ccerrar.dh-redondo:hover { background: var(--dh-alt); }
.dh-ccerrar svg, .dh-cop svg { width: 20px; height: 20px; stroke-width: 1.6; }
.dh-quien { display: flex; gap: .9rem; align-items: center; padding: .4rem 3rem 1rem .5rem; border-bottom: 1px solid var(--dh-linea); margin-bottom: .4rem; }
.dh-quien > span:last-child { min-width: 0; }
.dh-quien b { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.dh-quien small { display: block; color: var(--dh-suave); font-size: .85rem; overflow-wrap: anywhere; }
.dh-inicial.grande { width: 3.2rem; height: 3.2rem; font-size: 2rem; }
.dh-cops { list-style: none; margin: 0; padding: 0; }
.dh-cop { display: flex; align-items: center; gap: .9rem; min-height: 48px; padding: .7rem .5rem; border-radius: .7rem; color: inherit; text-decoration: none; }
button.dh-cop { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.dh-cop:hover, .dh-cop:focus-visible { background: var(--dh-alt); }
.dh-cequipo { background: var(--dh-alt); font-weight: 600; margin-bottom: .25rem; }
.dh-cmarca { margin-left: auto; background: var(--dh-tinta); color: var(--dh-papel); font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .15rem .55rem; }
/* «Salir» y su aviso: copia del bloque de la tienda (apertura 3a52470, src/styles/nueva/cabecera.css). */
.dh-csalir { width: 100%; border: 0; border-top: 1px solid var(--dh-linea); border-radius: 0; margin-top: .4rem; background: none; color: var(--dh-suave);
  font: inherit; text-align: left; cursor: pointer; }
.dh-csalir[aria-disabled=true] { opacity: .6; cursor: progress; }
.dh-caviso:empty { display: none; }
.dh-caviso { margin: .4rem .5rem 0; font-size: .88rem; color: #b3261e; }
:root[data-tema=oscuro] .dh-caviso { color: #ffb4ab; }
@media (min-width: 1100px) {
  button.dh-yo { border: 1px solid var(--dh-linea); padding: .2rem; }   /* la píldora, como el enlace */
  button.dh-yo[aria-expanded=true] .dh-flecha { transform: rotate(180deg); }
  .dh-cpanel { inset: var(--cuenta-arriba, 4.5rem) var(--cuenta-derecha, 1rem) auto auto; width: 19rem; max-height: calc(100vh - var(--cuenta-arriba, 4.5rem) - 12px);
    border-radius: 1rem; border: 1px solid var(--dh-linea); box-shadow: 0 16px 40px rgb(0 0 0 / .14); }
  .dh-cpanel::backdrop { background: transparent; }
  .dh-cpanel-in { padding: .6rem; }
  .dh-asa, .dh-ccerrar.dh-redondo { display: none; }
  .dh-quien { padding-right: .5rem; }
}
@media (min-width: 1152px) { button.dh-yo { padding-right: .8rem; } .dh-cuenta-flecha { display: inline-block; } }
@media (prefers-reduced-motion: no-preference) {
  .dh-cpanel[open] { animation: dh-csube .22s cubic-bezier(.22,1,.36,1); }
  @media (min-width: 1100px) { .dh-cpanel[open] { animation-name: dh-cbaja; } }
}
@keyframes dh-csube { from { transform: translateY(24px); opacity: 0; } }
@keyframes dh-cbaja { from { transform: translateY(-6px); opacity: 0; } }

/* Reducida (/admin, /confirmar, /entrar desde la compra): sin menú, lupa, ☰ ni franja; el tema en la fila en todos los anchos. */
.dh-reducida .dh-fila { justify-content: space-between; }

/* (Con la cabecera retirada, los laterales del marco no se animan desde arriba al cambiar de página: está en marco.css, SPEC-C19.) */
@media (prefers-reduced-motion: reduce) { .dh, .dh *, .franja-msg, .franja-puntos i { transition: none !important; animation: none !important; } }
