/* What WordPress needs on top of the prototype's page sheets, and nothing more.
   Everything visual lives in proto-*.css and in the templates' inline styles. */

[hidden] { display: none !important; }

/* The drag-to-scroll rail (same fix as on the Vercel build): no native image
   drag, and links stay clickable; alucor.js tells a click from a drag. */
.railScroll { user-select: none; -webkit-user-select: none; }
.railScroll img { -webkit-user-drag: none; user-drag: none; }
.railScroll.dragging a { pointer-events: auto !important; }

/* Signed-in admins get the toolbar; keep the sticky header below it. */
.admin-bar .hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hdr { top: 0; } }

/* WooCommerce notices (login and sign-up errors) inside the account card. */
.woocommerce-error, .woocommerce-message, .woocommerce-info {
  list-style: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 9px;
  font-size: 14px; line-height: 1.5;
}
.woocommerce-error { background: #fdecec; border: 1px solid #f3c2c2; color: #8a1f1f; }
.woocommerce-message, .woocommerce-info { background: #f0f4f9; border: 1px solid #d6e0ec; color: #0c3a7d; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-error a, .woocommerce-message a, .woocommerce-info a { font-weight: 700; text-decoration: underline; }

/* WooCommerce's own lost-password and reset forms, dressed like ours. */
.cuentaWoo form { display: grid; gap: 14px; }
.cuentaWoo p { margin: 0; font-size: 15px; color: #6b7076; line-height: 1.55; }
.cuentaWoo label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #1a1c1f; }
.cuentaWoo input[type="text"], .cuentaWoo input[type="email"], .cuentaWoo input[type="password"] {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #e0dcd7; border-radius: 9px;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 16px; background: #fff; color: #1a1c1f;
}
.cuentaWoo button[type="submit"] {
  background: #0c3a7d; color: #fff; border: none; border-radius: 9px; min-height: 52px; padding: 15px;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%;
}
.cuentaWoo .clear, .cuentaWoo .required { display: none; }

/* Content of a plain page (legal text, a post). */
.prosa h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin: 36px 0 12px; }
.prosa h3 { font-size: 19px; font-weight: 800; margin: 28px 0 10px; }
.prosa p, .prosa ul, .prosa ol { margin: 0 0 16px; }
.prosa a { color: #0c3a7d; text-decoration: underline; }
.prosa img { max-width: 100%; height: auto; }

/* Header live search panel. Same card language as the mega menu. */
form[role="search"] { position: relative; }
.buscaPanel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 10;
  width: 100%; max-height: min(70vh, 560px); overflow-y: auto;
  background: #fff; color: #1a1c1f; border: 1px solid #e0dcd7; border-radius: 14px;
  box-shadow: 0 22px 50px rgba(6,26,58,0.22); padding: 8px;
  font-family: 'Hanken Grotesk', sans-serif; text-align: left;
  transition: opacity .15s ease;
}
.searchDesk .buscaPanel { width: max(100%, 400px); }
.buscaPanel.cargando { opacity: .65; }
.buscaPanel a { color: #1a1c1f; }
.buscaItem { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; transition: background .15s ease; }
.buscaItem:hover, .buscaItem.activo { background: #f0f4f9; color: #1a1c1f; }
.buscaFoto { flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #ede9e1; display: flex; align-items: center; justify-content: center; color: #9aa1a8; }
.buscaFoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buscaTexto { display: grid; gap: 2px; min-width: 0; }
.buscaNombre { font-size: 14px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buscaMeta { font-size: 12px; color: #6b7076; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buscaPanel a.buscaTodos { display: block; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid #e0dcd7; font-size: 14px; font-weight: 700; color: #0c3a7d; }
.buscaPanel a.buscaTodos:hover { color: #0c3a7d; text-decoration: underline; }
.buscaVacio { padding: 14px 12px; font-size: 14px; color: #6b7076; line-height: 1.5; }
.buscaVacio strong { color: #1a1c1f; }

/* ------------------------------------------------------------ order cart */
.pedidoFondo { position: fixed; inset: 0; z-index: 1100; background: rgba(6,26,58,0.5); }
.pedidoPanel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1101; width: min(440px, 100%);
  background: #f5f3f0; color: #1a1c1f; font-family: 'Hanken Grotesk', sans-serif;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(6,26,58,0.3);
  transform: translateX(105%); transition: transform .34s cubic-bezier(0.22,1,0.36,1); visibility: hidden;
}
body.pedidoAbierto .pedidoPanel { transform: translateX(0); visibility: visible; }
body.pedidoAbierto { overflow: hidden; }
.pedidoCab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; background: #0c3a7d; color: #fff; }
.pedidoVolanta { font-size: 11px; letter-spacing: 0.14em; font-weight: 800; opacity: .8; margin-bottom: 4px; }
.pedidoTitulo { font-size: 21px; font-weight: 900; letter-spacing: -0.02em; }
.pedidoCerrar { width: 44px; height: 44px; border: 0; border-radius: 9px; background: rgba(255,255,255,0.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pedidoCuerpo { flex: 1; overflow-y: auto; padding: 16px; }
.pedidoVacio { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 16px; color: #6b7076; font-size: 14px; }
.pedidoVacio strong { color: #1a1c1f; font-size: 17px; }
.pedidoVacio .btnPrimary { margin-top: 10px; background: #0c3a7d; color: #fff; border-radius: 9px; padding: 12px 22px; font-weight: 700; }
.pedidoLista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pedidoItem { display: grid; grid-template-columns: 64px 1fr; gap: 12px; background: #fff; border: 1px solid #e0dcd7; border-radius: 12px; padding: 10px; }
.pedidoFoto { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #ede9e1; display: flex; align-items: center; justify-content: center; color: #9aa1a8; }
.pedidoFoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pedidoInfo { min-width: 0; display: grid; gap: 2px; }
.pedidoNombre { font-size: 14px; font-weight: 700; line-height: 1.3; color: #1a1c1f; }
.pedidoMeta { font-size: 12px; color: #6b7076; }
.pedidoFila { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.pedidoCant { display: flex; align-items: center; border: 1px solid #e0dcd7; border-radius: 8px; overflow: hidden; }
.pedidoCant button { width: 34px; height: 34px; border: 0; background: #fff; color: #0c3a7d; font-size: 17px; font-weight: 700; cursor: pointer; }
.pedidoCant button:hover { background: #e8f0f8; }
.pedidoCant input { width: 44px; height: 34px; border: 0; text-align: center; font-family: inherit; font-size: 14px; font-weight: 700; color: #1a1c1f; -moz-appearance: textfield; }
.pedidoCant input::-webkit-outer-spin-button, .pedidoCant input::-webkit-inner-spin-button,
.pedidoAgregar input::-webkit-outer-spin-button, .pedidoAgregar input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pedidoAgregar input { -moz-appearance: textfield; }
.pedidoPrecio { font-size: 14px; font-weight: 800; color: #0c3a7d; white-space: nowrap; }
.pedidoQuitar { border: 0; background: none; color: #9aa1a8; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0 0; text-align: left; font-family: inherit; }
.pedidoQuitar:hover { color: #b32d2e; }
.pedidoPie { background: #fff; border-top: 1px solid #e0dcd7; padding: 16px 20px 20px; display: grid; gap: 10px; }
.pedidoTotal { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; color: #6b7076; }
.pedidoTotal strong { font-size: 20px; font-weight: 900; color: #0c3a7d; letter-spacing: -0.02em; }
.pedidoTotal small { font-size: 12px; font-weight: 600; color: #6b7076; }
.pedidoNotaLabel { font-size: 12px; font-weight: 700; color: #1a1c1f; }
.pedidoNota { width: 100%; border: 1.5px solid #e0dcd7; border-radius: 9px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; box-sizing: border-box; }
.pedidoNota:focus { outline: none; border-color: #0c3a7d; }
.pedidoEnviar { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; border: 0; border-radius: 10px; background: #25d366; color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.pedidoEnviar:hover { background: #1fb955; transform: translateY(-1px); }
.pedidoAviso { margin: 0; font-size: 12px; color: #6b7076; line-height: 1.45; text-align: center; }
.pedidoVaciar { border: 0; background: none; color: #6b7076; font-family: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; justify-self: center; }
/* the cart badge pulses once when something is added */
@keyframes pedidoPulso { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
[data-pedido-abrir].pulso { animation: pedidoPulso .45s ease; }

/* Signup selects start on a disabled prompt: show it as a placeholder. */
select.fld:invalid { color: #9a9ea3; }
select.fld option { color: #1a1c1f; }
