/* NEXO · Estilos legibles.
 * ÍNDICE: VARIABLES · RESET · HEADER · BUSCADOR · CATEGORÍAS · PRODUCTOS
 * CARRITO · CONTACTO · WHATSAPP · ADMINISTRACIÓN · PEDIDOS · RESPONSIVE.
 * Los bloques de ajustes conservan su posición original para no cambiar la cascada.
 */
/* 1. Identidad: cambiá estos valores para adaptar todo el catálogo a otra marca. */
/* VARIABLES/*/
:root {
  --orange: #FF7A0F;
  --orange-dark: #c64000;

  /* PALETA NEXO */
  --blue: #01406D;
  --ice: #F5FEFE;
  --cyan: #01B4BA;
  --white: #FFFFFF;

  --ink: #171717;
  --muted: #737373;
  --line: #e7e7e7;
  --soft: #f4f4f4;
  --radius: 20px;
  --font:Work Sans, Arial, Helvetica, sans-serif;

} /* RESET Y ELEMENTOS COMUNES */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 26px;
}
body {
  margin: 0;
  color: var(--ink);
  background: #F3F4F6;
  font: 16px/1.5 var(--font);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1320px, calc(100% - 88px));
  margin: auto;
}
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: #fff;
  padding: 10px;
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px 21px;
  border: 0;
  border-radius:11px;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.dark {
  background: var(--ink);
  color: white;
}
.dark:hover {
  background: #343434;

}
.hero-copy .button:hover {
  background: var(--blue);
  color: var(--ice);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.light {
  background: white;
  color: var(--ink);
}
.orange {
  background: var(--orange);
  color: #111;
}
.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.muted {
  color: var(--muted);
}
/* 2. En escritorio: menú compacto y promoción que deja asomar el catálogo. */
/* HEADER */
.site-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--blue);
color: var(--ice);
}
.brand {
  font-size: 45px;
  font-weight: 900;
  letter-spacing: -3px;
  display: inline-flex;
  align-items: center;
  position: relative;
  line-height: 1;
  color: var(--ice);
}
.brand span {
  font-size: 12px;
  letter-spacing: 0;
  align-self: flex-start;
  margin: 4px 0 0 3px;
}
.brand i {
  height: 9px;
  width: 9px;
  background: var(--orange);
  border-radius: 50%;
  align-self: flex-end;
  margin: 0 0 4px 4px;
}
.site-header nav {
  display: flex;
  gap: 35px;
  align-items: center;
  font-size: 14px;
  color: var(--ice);
}
.site-header nav a:hover,
.text-button:hover {
 color: var(--orange);
}
.site-header .nav-active {
  color: #151515;
  font-weight: 700;
}
.nav-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: top;
  margin-left: 2px;
} /* CARRITO */
.cart-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
   background: transparent;
   color: var(--ice);
  border: border: 1px solid rgba(245, 254, 254, 0.25);
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 14px;
}
.cart-trigger b {
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 50%;
  min-width: 23px;
  height: 23px;
  font-size: 12px;
} /* HEADER */
.hero {
  position: relative;
  min-height: 382px;
  border-radius: var(--radius);
  overflow: hidden;
  background:linear-gradient(0deg,rgba(34, 193, 195, 1) 0%, rgba(230, 202, 138, 1) 94%);
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.55fr;
  align-items: center;
  padding: 37px 40px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero .eyebrow span {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--orange);
} /* RESET Y ELEMENTOS COMUNES */
h1 {
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.99;
  letter-spacing: -3.8px;
  margin: 24px 0 19px;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--orange);
} /* HEADER */
.hero-copy > p:not(.eyebrow) {
  font-size: 14px;
  color: #626262;
  line-height: 1.65;
  margin-bottom: 23px;
}
/*boton principal del HEADER*/
.hero-copy .button {
  min-height: 44px;
  font-size: 13px;
   background: var(--orange);
  color: var(--blue);
}
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 310px;
  align-self: stretch;
}
.hero-visual > img {
  width: 120%;
  height: 120%;
  object-fit: contain;
  position: absolute;
  left: -10%;
  top: -8%;
  mix-blend-mode: multiply;
}
.hero-caption {
  position: absolute;
  right: 6%;
  bottom: 0;
  z-index: 1;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1.8px;
  color: #858585;
}
.hero-offer {
  padding: 0 0 0 12px;
  position: relative;
  z-index: 1;
}
.hero-offer > span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #717171;
}
.hero-offer strong {
  display: block;
  font-size: 23px;
  line-height: 1.16;
  letter-spacing: -0.6px;
  margin: 14px 0 8px;
}
.hero-offer p {
  font-size: 12px;
  line-height: 1.6;
  color: #717171;
}
.hero-offer a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #aaa;
  padding-bottom: 4px;
}
.hero-offer .icon {
  width: 17px;
}
.hero-index {
  position: absolute;
  right: 30px;
  bottom: 22px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #777;
}
/* 3. Tarjetas de producto y recortes de la referencia suministrada. */
/* CATÁLOGO */
.catalog {
  padding-top: 48px;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.catalog-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 8px;
  letter-spacing: 1.5px;
} /* RESET Y ELEMENTOS COMUNES */
h2 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0;
} /* CATÁLOGO */
.catalog-heading h2 span {
  color: var(--orange);
} /* BUSCADOR */
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f6f6f6;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 13px 15px;
  width: 355px;
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline-offset: 7px;
  font-size: 14px;
  min-width: 0;
}
.search .icon {
  color: #6d6d6d;
  width: 19px;
}
.search kbd {
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #aaa;
  font-size: 12px;
  padding: 0 6px;
}
.catalog-toolbar {
  margin-top: 27px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
} /* CATEGORÍAS */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  border: 1px solid var(--line);
  padding: 8px 17px;
  background: white;
  border-radius: 7px;
  font-size: 13px;
}
.filters button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.filters button span {
  background: #454545;
  padding: 1px 5px;
  font-size: 10px;
  border-radius: 3px;
  margin-left: 5px;
  color: white;
}
.filters .sale-filter {
  color: var(--orange-dark);
}
.filters .sale-filter.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #111;
} /* BUSCADOR */
.sort-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.sort-label > span {
  color: #777;
}
.sort-label select {
  font-size: 12px;
  background: white;
  border: 0;
  padding: 8px 3px;
  font-weight: 600;
  max-width: 155px;
}
.result-count {
  font-size: 12px;
  color: #777;
  margin: 17px 0;
} /* PRODUCTOS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px 22px;
}
.product-card {
  border: 1px solid #ebebeb;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  background: #fff;
  scroll-margin-top: 25px;
}
.product-card:hover {
  box-shadow: 0 8px 25px #0000000b;
  border-color: #ccc;
}
.product-card:target {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.product-photo {
  position: relative;
  background:#FFFFFF;
  aspect-ratio: 1.27;
  overflow: hidden;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s;
}
.product-photo:hover > img:not(.reference-crop) {
  transform: scale(1.04);
}
.product-photo .reference-crop {
  position: absolute;
  max-width: none;
  height: auto;
  width: var(--crop-width);
  left: var(--crop-left);
  top: 0;
  margin-top: var(--crop-top);
}
.product-photo.studio {
  background: #f2f2f2;
}
.product-photo.studio img {
  mix-blend-mode: multiply;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: white;
  color: #111;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.4px;
  font-weight: 700;
  padding: 5px 8px;
}
.badge.sale {
  background: var(--orange);
color: var(--blue);
}
.product-body {
  padding: 17px 17px 15px;
}
.product-category {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: #777;
  margin: 0 0 5px;
  text-transform: uppercase;
}
.product-body h3 {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin: 0 0 7px;
  font-weight: 600;
}
.product-description {
  font-size: 12px;
  color: #777;
  margin: 0 0 14px;
  min-height: 18px;
}
.price-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.price-line strong {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.price-line del {
  font-size: 12px;
  color: #858585;
}
.product-bottom {
  border-top: 1px solid #eee;
  margin-top: 13px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.product-bottom > span {
  font-size: 11px;
  color: #777;
}
.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f5f5f5;
  border: 0;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 600;
  min-height: 36px;
}
.add-button:hover {
  background: var(--orange);
  color: #111;
}
.add-button .icon {
  width: 15px;
  height: 15px;
} /* RESET Y ELEMENTOS COMUNES */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b6b6b;
}
.empty-state h3 {
  color: #151515;
} /* WHATSAPP */
.contact-strip {
  display: flex;
  align-items: center;
  gap: 19px;
  background: var(--blue);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 40px 0 0;
  color: var(--ice);
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff30;
  display: grid;
  place-items: center;
}
.contact-icon .icon {
  height: 26px;
  width: 26px;
}
.contact-strip h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
.contact-strip p {
  font-size: 13px;
  margin: 5px 0 0;
 color: var(--ice);
}
.contact-strip .button {
  margin-left: auto;
  white-space: nowrap;
  min-height: 44px;
  font-size: 12px;
  background: var(--orange);
color: var(--blue);
} 
.contact-strip .button:hover {
  background: var(--blue);
  color: var(--ice);
  box-shadow: inset 0 0 0 1px var(--orange);
}
/* FOOTER */
footer {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 34px 0 !important;
  margin-top: 12px !important;

} /* HEADER */
.brand.small {
  font-size: 32px;
  color: var(--blue);
}
.brand.small span {
  font-size: 9px;
}
.brand.small i {
  height: 6px;
  width: 6px;
} /* FOOTER */
footer > p {
  font-size: 12px;
  color: #777;
}
footer > div {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  color: #777;
}
footer > div a {
  color: #252525;
  font-weight: 700;
}
footer button {
  background: none;
  border: 0;
  font-size: 11px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
}
footer .icon {
  width: 15px;
  height: 15px;
}
/* 4. Diálogos: carrito, instrucciones y administrador. */
/* DIÁLOGOS Y AVISOS */
dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}
dialog::backdrop {
  background: #1117;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
} /* CARRITO */
.drawer {
  width: min(450px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  margin: 0 0 0 auto;
  border-radius: 20px 0 0 20px;
}
.drawer[open] {
  display: flex;
  flex-direction: column;
  animation: slide-in 0.25s ease;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 25px 25px;
  border-bottom: 1px solid var(--line);
}
.drawer-header .eyebrow {
  font-size: 10px;
  margin-bottom: 7px;
}
.drawer-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-header h2 span {
  font-size: 14px;
  letter-spacing: 0;
  background: #f2f2f2;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
} /* RESET Y ELEMENTOS COMUNES */
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-button .icon {
  height: 18px;
  width: 18px;
} /* CARRITO */
.cart-items {
  overflow: auto;
  padding: 0 25px;
  flex: 1;
  min-height: 120px;
}
.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item .product-photo {
  height: 78px;
  aspect-ratio: 1;
  border-radius: 9px;
  align-self: start;
}
.cart-item h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.cart-item .item-price {
  font-size: 14px;
  font-weight: 700;
}
.cart-item small {
  font-size: 11px;
  color: var(--orange-dark);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.quantity button {
  width: 31px;
  height: 31px;
  background: white;
  border: 0;
  font-size: 17px;
}
.quantity span {
  font-size: 12px;
  min-width: 27px;
  text-align: center;
}
.remove-item {
  background: none;
  border: 0;
  text-decoration: underline;
  color: #777;
  font-size: 11px;
}
.cart-summary {
  padding: 22px 25px;
  background: #fafafa;
  border-top: 1px solid var(--line);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  gap: 10px;
}
.summary-row.saving {
  color: var(--orange-dark);
}
.summary-row.total {
  font-size: 22px;
  font-weight: 700;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 14px;
}
.summary-note {
  font-size: 11px;
  color: #717171;
  margin: 7px 0 16px;
} /* WHATSAPP */
.whatsapp-button {
  background: #181818;
  color: #fff;
  gap: 9px;
} /* CARRITO */
.cart-empty {
  text-align: center;
  padding: 65px 20px;
}
.cart-empty > .icon {
  color: var(--orange);
  width: 40px;
  height: 40px;
}
.cart-empty h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.cart-empty p {
  font-size: 14px;
  color: #777;
}
.cart-empty button {
  margin-top: 10px;
} /* DIÁLOGOS Y AVISOS */
.modal {
  border-radius: 20px;
  width: min(860px, calc(100% - 30px));
  max-height: 90dvh;
  padding: 30px;
  overflow: auto;
}
.small-modal {
  width: min(490px, calc(100% - 30px));
  padding: 35px;
}
.close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
}
.small-modal h2 {
  margin-bottom: 25px;
}
.steps {
  list-style: none;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 18px;
  margin: 26px 0;
}
.steps li > span {
  font-size: 12px;
  color: var(--orange-dark);
  background: #fff0e6;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.steps strong {
  font-size: 15px;
}
.steps p {
  font-size: 14px;
  color: #6b6b6b;
  margin: 5px 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  background: #171717;
  color: white;
  z-index: 100;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 5px 25px #0002;
  transition: all 0.2s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
} /* ADMINISTRACIÓN */
.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 20px;
}
.admin-title .eyebrow {
  font-size: 10px;
} /* DIÁLOGOS Y AVISOS */
.notice {
  border: 1px solid #e5e5e5;
  background: #f7f7f7;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 13px;
  margin: 15px 0;
}
.notice.error {
  border-color: #e9b8ac;
  background: #fff2ee;
  color: #922c15;
} /* ADMINISTRACIÓN */
.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
}
.admin-tools .button {
  font-size: 12px;
  min-height: 40px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.admin-product {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.admin-product header {
  display: flex;
  gap: 12px;
  align-items: center;
}
.admin-product header .product-photo {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 8px;
}
.admin-product h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}
.admin-product label,
.settings-form label,
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #555;
}
.admin-product input,
.admin-product select,
.settings-form input,
.login-form input {
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 9px 10px;
  width: 100%;
  font-size: 14px;
  background: #fff;
  color: #171717;
}
.admin-product input[type='file'] {
  font-size: 11px;
  padding: 8px;
}
.price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-product .button {
  min-height: 39px;
  font-size: 12px;
}
.settings-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 15px 0;
  display: flex;
  align-items: end;
  gap: 12px;
}
.settings-form label {
  flex: 1;
}
.settings-form small {
  font-size: 11px;
  color: #777;
}
.settings-form .button {
  min-height: 40px;
  font-size: 12px;
}
.login-form {
  max-width: 380px;
  display: grid;
  gap: 15px;
  margin: 25px auto;
}
.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.admin-actions .delete-product {
  color: #a2361a;
  border: 0;
  background: none;
  font-size: 11px;
  text-decoration: underline;
}
.form-feedback {
  font-size: 12px;
  margin: 0;
  color: var(--orange-dark);
}
.new-product {
  margin: 18px 0;
  background: #fafafa;
} /* RESET Y ELEMENTOS COMUNES */
.demo-label {
  color: #777;
  font-size: 11px;
} /* DIÁLOGOS Y AVISOS */
.working {
  opacity: 0.55;
  pointer-events: none;
}
/* 5. Tableta y móvil: dos columnas, navegación visible, carrito superpuesto. */
/* RESPONSIVE */
@media (min-width: 1500px) {
  .hero {
    min-height: 415px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    grid-template-columns: 1fr 1.15fr;
    padding: 32px;
  }
  .hero-offer {
    display: none;
  }
  .hero-caption {
    right: 3%;
    bottom: 12px;
  }
  .hero-index {
    display: none;
  }
  .hero-visual > img {
    width: 110%;
    left: -5%;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-header nav {
    gap: 22px;
  }
  .catalog-heading h2 {
    font-size: 28px;
  }
  .search {
    width: 310px;
  }
  .contact-strip h2 {
    font-size: 18px;
  }
  .contact-strip {
    padding: 25px;
  }
  .product-body {
    padding: 15px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .price-line strong {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 80px;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    margin-bottom: 40px;
  }
  .brand {
    font-size: 38px;
  }
  .site-header nav {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    justify-content: center;
    gap: 30px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .site-header nav .text-button {
    font-size: 13px;
  }
  .cart-trigger {
    font-size: 12px;
    padding: 8px 10px;
    gap: 8px;
  }
  .cart-trigger .icon {
    width: 18px;
  }
  .hero {
    min-height: 300px;
    padding: 25px 22px;
    grid-template-columns: 1fr 0.95fr;
    border-radius: 15px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0.8px;
    max-width: 155px;
  }
  .hero .eyebrow span {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
  }
  h1 {
    font-size: 52px;
    letter-spacing: -2.8px;
    margin: 23px 0 14px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .hero-copy .button {
    font-size: 10px;
    padding: 9px 12px;
    gap: 10px;
    min-height: 38px;
  }
  .hero-copy .button .icon {
    width: 16px;
  }
  .hero-visual {
    min-height: 235px;
  }
  .hero-visual > img {
    width: 157%;
    height: 115%;
    left: -30%;
    top: -5%;
  }
  .hero-caption {
    font-size: 7px;
    letter-spacing: 1px;
    bottom: 2px;
    right: -3px;
  }
  .catalog {
    padding-top: 31px;
  }
  .catalog-heading {
    display: block;
  }
  .catalog-heading h2 {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .catalog-heading .eyebrow {
    font-size: 9px;
  }
  .search {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
  }
  .search input {
    font-size: 14px;
  }
  .search kbd {
    display: none;
  }
  .catalog-toolbar {
    display: block;
    margin-top: 18px;
    padding-bottom: 12px;
  }
  .filters {
    gap: 6px;
    flex-wrap: nowrap;
    overflow: auto;
    padding: 2px 1px 9px;
  }
  .filters button {
    padding: 8px 13px;
    font-size: 12px;
    white-space: nowrap;
  }
  .sort-label {
    justify-content: flex-end;
    margin-top: 5px;
    font-size: 11px;
  }
  .sort-label select {
    font-size: 11px;
  }
  .result-count {
    font-size: 11px;
    margin: 14px 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .product-card {
    border-radius: 11px;
  }
  .product-photo {
    aspect-ratio: 1.08;
  }
  .product-body {
    padding: 12px;
  }
  .product-category {
    font-size: 9px;
  }
  .product-body h3 {
    font-size: 13px;
    min-height: 36px;
    line-height: 1.35;
  }
  .product-description {
    font-size: 10px;
    min-height: 28px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .price-line {
    gap: 3px 7px;
  }
  .price-line strong {
    font-size: 20px;
  }
  .price-line del {
    font-size: 10px;
  }
  .badge {
    font-size: 8px;
    left: 9px;
    top: 9px;
    padding: 4px 6px;
  }
  .product-bottom {
    margin-top: 10px;
    padding-top: 10px;
  }
  .product-bottom > span {
    display: none;
  }
  .add-button {
    width: 100%;
    font-size: 11px;
    min-height: 36px;
  }
  .contact-strip {
    padding: 22px;
    gap: 13px;
    margin-top: 30px;
    flex-wrap: wrap;
  }
  .contact-strip > div:nth-child(2) {
    flex: 1;
  }
  .contact-strip h2 {
    font-size: 17px;
    line-height: 1.35;
  }
  .contact-strip p {
    font-size: 12px;
  }
  .contact-strip .button {
    margin-left: 59px;
    font-size: 12px;
    padding: 9px 15px;
    min-height: 38px;
  }
  .contact-icon {
    width: 44px;
    height: 44px;
  }
  footer {
    padding: 26px 0 !important;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  footer > p {
    font-size: 11px;
  }
  footer > div {
    width: 100%;
    margin: 8px 0 0;
    justify-content: space-between;
  }
  .drawer {
    border-radius: 0;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 23px;
  }
  .admin-title h2 {
    font-size: 25px;
  }
  .settings-form {
    display: block;
  }
  .settings-form button {
    margin-top: 12px;
    width: 100%;
  }
  .small-modal {
    padding: 30px 25px;
  }
  .small-modal h2 {
    font-size: 27px;
    margin-top: 20px;
  }
  .hero-offer {
    display: none;
  }
}
@media (max-width: 370px) {
  .wrap {
    width: calc(100% - 24px);
  }
  h1 {
    font-size: 44px;
  }
  .hero {
    padding: 22px 16px;
  }
  .hero-copy .button {
    font-size: 9px;
    gap: 5px;
  }
  .hero .eyebrow {
    font-size: 7px;
  }
  .filters button {
    padding: 8px 10px;
  }
  .price-line strong {
    font-size: 18px;
  }
  .product-body {
    padding: 10px;
  }
  .cart-trigger > span {
    display: none;
  }
  .catalog-heading h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
} /* RESET Y ELEMENTOS COMUNES */
@keyframes slide-in {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Recorte sin texto de la referencia, centrado en cualquier proporción. */
/* PRODUCTOS */
.reference-window {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  aspect-ratio: 360/265;
  overflow: hidden;
}
.warm-photo {
  background: #ffbb42;
}
/* Controles legibles, incluso en pantallas pequeñas. */
/* ADMINISTRACIÓN */
.filters button,
.sort-label,
.sort-label select,
.add-button,
.product-bottom > span,
.cart-trigger,
.text-button,
.site-header nav,
.admin-product label,
.settings-form label,
.login-form label,
.admin-product .button,
.admin-tools .button,
footer button {
  font-size: 14px;
} /* PRODUCTOS */
.product-body h3 {
  font-size: 16px;
}
.product-description {
  font-size: 13px;
} /* BUSCADOR */
.product-category,
.result-count {
  font-size: 12px;
} /* HEADER */
.hero-copy > p:not(.eyebrow) {
  font-size: 16px;
} /* WHATSAPP */
.contact-strip p {
  font-size: 14px;
} /* CARRITO */
.cart-item h3,
.cart-item .item-price {
  font-size: 16px;
}
.quantity button {
  width: 36px;
  height: 36px;
}
.quantity span,
.remove-item {
  font-size: 14px;
}
/* RESPONSIVE */
@media (max-width: 760px) {
  .filters button {
    font-size: 13px;
    padding: 8px 13px;
  }
  .site-header nav,
  .site-header nav .text-button {
    font-size: 14px;
  }
  .product-body h3 {
    font-size: 14px;
    min-height: 38px;
  }
  .product-description {
    font-size: 12px;
    min-height: 34px;
  }
  .product-category {
    font-size: 10px;
  }
  .add-button {
    font-size: 13px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .hero-copy .button {
    font-size: 12px;
  }
  .hero-copy .button .icon {
    display: none;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .hero-visual > img {
    left: -26%;
  }
  .cart-trigger {
    font-size: 13px;
  }
}

/* Contacto: una fila, datos a la izquierda y Maps a la derecha. */
/* CONTACTO */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 50px 0 20px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.contact-details h2 span {
  color: var(--orange);
}
.contact-details dl {
  margin: 25px 0 0;
  display: grid;
  gap: 19px;
}
.contact-details dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-details dd {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.contact-details a:hover {
  color: var(--orange-dark);
}
.contact-map {
  min-height: 310px;
  background: var(--soft);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.contact-map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 310px;
}
.contact-map p {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
} /* ADMINISTRACIÓN */
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
  display: grid;
  gap: 14px;
}
.admin-panel h3 {
  margin: 0;
  font-size: 18px;
}
.admin-panel form {
  display: grid;
  gap: 12px;
}
.admin-panel label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.admin-panel input,
.admin-panel textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 7px;
  font: inherit;
  min-width: 0;
}
.admin-panel textarea {
  resize: vertical;
} /* CATEGORÍAS */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-list span {
  background: #f4f4f4;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 14px;
} /* ADMINISTRACIÓN */
.admin-panel .button {
  justify-self: start;
} /* CATEGORÍAS */
.filters {
  max-width: 75%;
} /* HEADER */
.site-header nav {
  gap: 24px;
}
/* RESPONSIVE */
@media (max-width: 760px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 32px;
  }
  .contact-map,
  .contact-map iframe {
    min-height: 280px;
  }
  .filters {
    max-width: 100%;
  }
  .site-header nav {
    gap: 19px;
  }
  .site-header nav a,
  .site-header nav .text-button {
    font-size: 13px;
  }
  .admin-panel .price-fields {
    grid-template-columns: 1fr;
  }
}

/* V3: títulos editables, ficha completa e inventario. */
/* HEADER */
#hero-title {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#hero-subtitle {
  font-size: 19px;
  letter-spacing: -0.4px;
  line-height: 1.4;
  margin: 0 0 12px;
}
#hero-description {
  white-space: pre-line;
}
.hero-copy {
  min-width: 0;
} /* PRODUCTOS */
.previous-price {
  font-size: 12px;
  color: #777;
}
.stock-status {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  font-size: 12px;
}
.stock-status strong {
  font-weight: 600;
}
.stock-status.available strong {
  color: #27613c;
}
.stock-status.unavailable strong {
  color: #8a4a27;
}
.stock-status span {
  color: #777;
  font-size: 11px;
}
.product-bottom .add-button {
  width: 100%;
  font-size: 12px;
  min-height: 40px;
}
.consult-button {
  background: #eef3ee;
  color: #275439;
} /* ADMINISTRACIÓN */
.admin-product textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}
.admin-product small {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
}
.hero-admin-preview {
  height: 140px;
  width: 100%;
  object-fit: contain;
  background: #f1f1f1;
  border-radius: 10px;
}
.delete-category {
  border: 0;
  background: none;
  color: #8a321b;
  font-size: 23px;
  min-width: 32px;
  min-height: 32px;
  line-height: 1;
} /* CATEGORÍAS */
.category-list > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
} /* ADMINISTRACIÓN */
.admin-grid {
  align-items: start;
}
/* RESPONSIVE */
@media (max-width: 760px) {
  #hero-subtitle {
    font-size: 14px;
  }
  .product-bottom .add-button {
    font-size: 11px;
    padding: 7px 5px;
    gap: 4px;
  }
  .product-bottom .icon {
    width: 13px;
    flex-shrink: 0;
  }
}

/* Pedidos: conservar el carrito en la página y separar pago de preparación. */
/* PEDIDOS Y PAGOS */
.buyer-form {
  display: grid;
  gap: 10px;
  margin: 15px 0;
}
.buyer-form label,
.order-status-form label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
.buyer-form input,
.order-status-form select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  font: inherit;
  background: white;
}
.mp-button {
  background: #e5f4ff;
  color: #07537e;
  margin-top: 9px;
}
.mp-button:hover {
  background: #cae8fb;
}
.mp-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
} /* CARRITO */
.cart-summary {
  max-height: 65dvh;
  overflow: auto;
} /* PEDIDOS Y PAGOS */
.order-state,
.order-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.payment-pill {
  display: inline-block;
  border-radius: 20px;
  padding: 6px 10px;
  background: #f6ecd5;
  color: #755915;
  font-size: 14px;
  white-space: nowrap;
}
.payment-pill.paid {
  background: #e4f1e8;
  color: #28603c;
}
.order-lines {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.order-lines small,
.orders-table small {
  display: block;
  color: #777;
  font-size: 12px;
  margin-top: 5px;
}
.orders-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.orders-heading p {
  font-size: 14px;
  color: #666;
}
.orders-table-wrap {
  overflow-x: auto;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.orders-table th {
  font-weight: 500;
  color: #777;
  background: #fafafa;
}
.orders-table td,
.orders-table th {
  padding: 14px 10px;
  border-bottom: 1px solid #e8e8e8;
}
.orders-table td {
  vertical-align: middle;
}
.order-status-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.order-status-form .form-feedback {
  width: 100%;
}
#saved-order-dialog h2 {
  padding-right: 28px;
}
.order-buttons .button {
  font-size: 14px;
}
#saved-order-feedback {
  overflow-wrap: anywhere;
}
.admin-modal:has(#orders-panel:not([hidden])) {
  width: min(1020px, calc(100% - 30px));
}
/* RESPONSIVE */
@media (max-width: 760px) {
  .orders-table {
    min-width: 620px;
  }
  .orders-heading {
    align-items: start;
    flex-direction: column;
  }
  .order-buttons .button {
    width: 100%;
  }
  .order-lines li {
    gap: 12px;
  }
  .cart-summary {
    max-height: 65dvh;
  }
}

/* Buscadores administrativos: etiquetas visibles y fichas ocultas sin perder ediciones. */
/* ADMINISTRACIÓN */
.admin-search {
  display: grid;
  gap: 7px;
  font-size: 14px;
  margin: 18px 0 10px;
}
.admin-search input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 9px;
  background: white;
  color: #171717;
  font: inherit;
}
.admin-search input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
#admin-products-grid [hidden] {
  display: none;
} /* PEDIDOS Y PAGOS */
.orders-table td,
#admin-order-detail p {
  overflow-wrap: anywhere;
}

/* HEADER ECOMMERCE: dos filas en escritorio, identidad original NEXO. */
html {
  scroll-padding-top: calc(var(--header-height, 142px) + 16px);
}
.site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 15;
  width: 100%;
  height: auto;
  margin: 0 0 24px;
 background: var(--blue);
  border-bottom: 1px solid rgba(245, 254, 254, 0.20);
  transition: box-shadow 0.2s ease;
  color: var(--ice);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgb(0 0 0 / 5%);
}
.header-main {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 86px;
}
.header-main .brand {
  flex-shrink: 0;
}
.header-search {
  display: flex;
  flex: 1;
  min-width: 0;
  max-width: 740px;
  margin: 0 auto;
}
.header-search .search {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--blue);
}
.header-search input::placeholder {
  color: #526878;
  opacity: 1;
}
.header-search input {
  min-width: 0;
  font-size: 16px;
}
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
 color: var(--ice);
}
.header-icon:hover {
 background: rgba(245, 254, 254, 0.12);
}
.site-header .cart-trigger {
  position: relative;
  margin: 0;
  gap: 0;
}
.site-header .cart-trigger .icon {
  width: 25px;
  height: 25px;
}
.site-header .cart-trigger b {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1;
}
.site-header .header-nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  min-height: 50px;
  padding: 0;
  border-top: 1px solid rgba(245, 254, 254, 0.20);
  color: var(--ice);
}
.header-nav > button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ice);
}
.header-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
  color: var(--ice);
}
.header-nav .nav-contact {
  margin-left: auto;
}
.header-nav > button:hover {
 color: var(--orange);
}
.site-header .mobile-menu,
.site-header .mobile-search,
.site-header .search-close {
  display: none;
}

/* CATEGORÍAS: datos reales renderizados por productos.js en un único listado. */
.category-menu {
  position: absolute;
  top: 100%;
  left: max(44px, calc((100% - 1320px) / 2));
  width: min(320px, calc(100% - 32px));
  max-height: min(65dvh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
background: var(--ice);
color: var(--blue);
  box-shadow: 0 12px 28px rgb(0 0 0 / 10%);

}
.category-menu .header-icon {
  color: var(--blue);
}.category-menu .header-icon:hover {
  background: rgba(1, 64, 109, 0.08);
}
.category-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
}
.category-menu .filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 4px 0;
  overflow: visible;
}
.category-menu .filters button {
  width: 100%;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--blue);
}
.catalog-toolbar {
  justify-content: flex-end;
}

/* RESPONSIVE HEADER: hamburguesa · NEXO · lupa · carrito, desde 320px. */
@media (max-width: 768px) {
  .site-header {
    margin-bottom: 0px;
  }
  .header-main {
    width: calc(100% - 24px);
    min-height: 68px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .header-main .brand {
    font-size: 34px;
    margin-right: auto;
  }
  .site-header .mobile-menu,
  .site-header .mobile-search {
    display: inline-flex;
    background: var(--blue);
  color: var(--ice);
  border: 0;
  }
  .site-header .header-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .site-header.search-open .header-search {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 12px;
    gap: 6px;
    background: var(--blue);
  border-bottom: 1px solid rgba(245, 254, 254, 0.20);
    box-shadow: 0 8px 16px rgb(0 0 0 / 5%);
  }
  .site-header.search-open .search-close {
    display: inline-flex;
  }
  .header-search .search {
    flex: 1;
    padding: 0 12px;
  }
  .header-search .search input {
    width: 100%;
    font-size: 16px;
  }
  .header-search .search .icon {
  color: var(--blue);
}
  .header-search kbd {
    display: none;
  }
  .category-menu {
    left: 12px;
  }
}

/* PEDIDOS · Modal independiente, con desplazamiento propio y tarjetas móviles. */
.admin-orders-access {
  margin: 18px 0;
}
.admin-orders-access .button {
  min-width: 150px;
}
.orders-modal {
  width: min(1000px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.orders-modal-title {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.orders-modal-title h2 {
  margin: 0;
}
.orders-modal-title .eyebrow {
  margin-bottom: 4px;
}
.orders-modal-title .icon-button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.orders-modal .orders-heading h3 {
  display: none;
}
.orders-modal .orders-heading {
  margin-top: 12px;
}
.orders-modal .admin-search input {
  min-width: 0;
  font-size: 16px;
}
.orders-modal #admin-order-detail {
  scroll-margin-top: 120px;
}
.orders-modal .order-detail-action button {
  min-height: 44px;
}
@media (max-width: 768px) {
  .admin-orders-access .button {
    width: 100%;
  }
  .orders-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 0 14px 18px;
    border-radius: 14px;
  }
  .orders-modal-title {
    padding-top: 16px;
  }
  .orders-modal-title h2 {
    font-size: 25px;
  }
  .orders-modal .orders-heading {
    align-items: flex-start;
    flex-direction: row;
  }
  .orders-modal .orders-heading p {
    margin-top: 0;
  }
  .orders-modal .orders-heading .button {
    flex-shrink: 0;
    padding: 10px 12px;
  }
  .orders-modal .orders-table-wrap {
    overflow: visible;
  }
  .orders-modal .orders-table,
  .orders-modal .orders-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .orders-modal .orders-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .orders-modal .orders-table tr {
    display: block;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .orders-modal .orders-table td {
    display: block;
    border: 0;
    padding: 7px 0;
    overflow-wrap: anywhere;
  }
  .orders-modal .orders-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
  }
  .orders-modal .order-detail-action button {
    width: 100%;
    border-radius: 8px;
    background: var(--soft);
    font-weight: 600;
  }
  .orders-modal .order-lines li {
    flex-wrap: wrap;
    gap: 6px;
  }
  .orders-modal .order-lines li > span {
    min-width: 0;
    overflow-wrap: anywhere;
    flex: 1 1 170px;
  }
  .orders-modal .order-status-form {
    flex-direction: column;
    align-items: stretch;
  }
  .orders-modal .admin-panel {
    padding: 14px;
    overflow-wrap: anywhere;
  }
  .orders-modal .admin-panel .button {
    width: 100%;
  }
}

/* CARDS DEL CATÁLOGO · Presentación pública; no afecta fotos del carrito ni del admin. */
#products .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
}
#products .product-card:hover {
  border-color: #d8d8d8;
  box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
}
#products .product-card > .product-photo {
  width: 100%;
  aspect-ratio: 1.18;
  flex-shrink: 0;
}
#products .product-photo.studio {
  background: #FFFFFF;
}
#products .product-photo.studio > img {
  padding: 6px;
  object-fit: contain;
  mix-blend-mode: normal;
}
/* Conserva el recorte de las fotos de muestra sin incluir texto de la referencia. */
#products .product-photo .reference-window {
  width: 110%;
  left: -5%;
}
#products .product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}
#products .product-body h3 {
    font-family: "Work Sans", Arial, sans-serif;
  min-height: 2.7em;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: normal;
  font-weight: 500;
  color:  #242433;
  overflow-wrap: anywhere;
}
#products .price-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: auto;
  min-height: 64px;
  overflow-wrap: anywhere;
}
#products .price-line > strong {
  max-width: 100%;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: #242433;
}
#products .product-promotion {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-width: 0;
}
#products .previous-price,
#products .price-line del {
    font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #777;
}
#products .discount-label {
  font-family: "Work Sans", Arial, sans-serif;
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}
#products .product-bottom {
  border: 0;
  padding-top: 0;
  margin-top: 18px;
}
#products .product-bottom .add-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border-radius: 22px;
  padding: 12px 14px;
  gap: 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
#products .add-button[data-add] {
   background: var(--blue);
  color: var(--ice);
}
#products .add-button[data-add]:hover {
  background: var(--orange);
  color: var(--blue);
  box-shadow: 0 4px 12px rgb(1 64 109 / 18%);
}
#products .add-button[data-add] .icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
#products .badge {
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 768px) {
  /* Misma grilla; imagen compacta, precios legibles y botones alineados. */
  #products .product-card {
    border-radius: 12px;
  }
  #products .product-card > .product-photo {
    aspect-ratio: 1.12;
  }
  #products .product-photo.studio > img {
    padding: 4px;
  }
  #products .product-body {
    padding: 12px 10px;
  }
  #products .product-body h3 {
    font-size: 14px;
    margin-bottom: 14px;
  }
  #products .price-line {
    min-height: 76px;
  }
  #products .price-line > strong {
    font-size: clamp(19px, 5.2vw, 24px);
    letter-spacing: -0.5px;
  }
  #products .previous-price,
  #products .price-line del {
    font-size: 12px;
  }
  #products .product-promotion {
    gap: 5px;
  }
  #products .discount-label {
    padding: 3px 5px;

  }
  #products .product-bottom {
    margin-top: 14px;
  }
  #products .product-bottom .add-button {
    min-height: 44px;
    padding: 10px 6px;
    font-size: 14px;
    gap: 6px;
    background: var(--blue);
color: var(--ice);
  }
  #products .add-button[data-add] .icon {
    width: 17px;
    height: 17px;
  }
  #products .badge {
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    padding: 5px 7px;
  }
}

/* FICHA DE PRODUCTO · presentación pública, sin cantidades de inventario */
.product-photo-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.product-photo-trigger:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -4px;
}
/* Acceso visible a la ficha también en pantallas táctiles. */
.product-detail-eye {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #171717;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  transition: background 160ms ease, border-color 160ms ease;
}
.product-detail-eye .icon {
  width: 22px;
  height: 22px;
}
.product-photo-trigger:hover .product-detail-eye,
.product-photo-trigger:focus-visible .product-detail-eye {
  background: var(--orange);
  border-color: var(--orange);
}
#products .badge {
  pointer-events: none;
}
.product-detail-modal {
  width: min(940px, calc(100% - 32px));
  padding: 0;
  overflow: auto;
}
.product-detail-modal .close-modal {
  z-index: 2;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}
.product-detail-image {
  min-width: 0;
  padding: 28px;
  background: #FFFFFF;
}
.product-detail-image .product-photo {
  background: #FFFFFF;
  aspect-ratio: 1;
  border-radius: 16px;
}
.product-detail-image .product-photo.studio > img {
  padding: 12px;
}
.product-detail-image .product-photo:hover > img {
  transform: none;
}
.product-detail-info {
  min-width: 0;
  padding: 64px 32px 36px;
}
.product-detail-info h2 {
  font-family: "Work Sans", Arial, sans-serif;
font-weight: 500;
color: #242433;
  font-size: 14px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
}
.product-detail-description {
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
  color: #626262;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0 0 28px;
}
.product-detail-prices > strong {
  display: block;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.product-detail-promotion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: #6a6a6a;
}
.product-detail-discount {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--blue);
  font-weight: 700;
}
.product-detail-availability {
  margin: 22px 0 14px;
  font-size: 14px;
  color: #555;
}
.product-detail-action .add-button {
  width: 100%;
  min-height: 48px;
  padding: 14px 18px;
  border-radius: 22px;
  font-size: 16px;
  gap: 10px;
  white-space: normal;
}
.product-detail-action [data-add] {
   background: var(--blue);
  color: var(--ice);
}
.product-detail-action [data-add]:hover {
   background: var(--orange);
  color: var(--blue);
  box-shadow: 0 4px 12px rgb(1 64 109 / 18%);
}
.product-detail-action .icon {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .product-detail-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-detail-image {
    padding: 20px 40px 8px;
  }
  .product-detail-image .product-photo {
    aspect-ratio: 1.2;
    max-width: 340px;
    margin-inline: auto;
  }
  .product-detail-info {
    padding: 24px 22px;
  }
  .product-detail-description {
    margin-bottom: 22px;
  }
}

/*comienzan las pruebas de cambio */

/* ADMINISTRACIÓN · Tabla de productos y modal independiente. */
.admin-table-scroll {
  width: 100%; max-width: 100%; min-width: 0; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 10px;
}
.admin-products-table {
  width: 100%; min-width: 1100px; border-collapse: separate;
  border-spacing: 0; background: #fff; color: var(--ink);
  font-size: 13px; text-align: left;
}
.admin-products-table th, .admin-products-table td {
  padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.admin-products-table th { background: var(--soft); white-space: nowrap; }
.admin-products-table .admin-table-name {
  width: 240px; min-width: 210px; font-weight: 600; overflow-wrap: anywhere;
}
.admin-products-table .admin-table-price {
  text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.admin-products-table .admin-table-actions {
  position: sticky; right: 0; background: #fff; border-left: 1px solid var(--line);
}
.admin-products-table .button { min-height: 44px; font-size: 13px; }
.admin-products-table [hidden] { display: none !important; }
/* Ocultar el listado completo mientras se edita un único producto. */
#admin-dialog.admin-editor-open { visibility: hidden; }
#admin-product-editor {
  width: min(620px, calc(100vw - 24px));
  max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 20px; overflow-y: auto;
  background: #fff; color: var(--ink); border: 0; border-radius: 14px;
}
#admin-product-editor::backdrop { background: #2229; backdrop-filter: blur(3px); }
#admin-product-editor .admin-editor-heading {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
#admin-product-editor h2 { margin: 0; font-size: 20px; }
#admin-product-editor .admin-editor-close {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: #171717; font-size: 24px;
}
#admin-product-editor .admin-product {
  width: 100%; min-width: 0; border: 0; padding: 0; margin: 0;
}
#admin-product-editor .admin-product label { color: #555; }
#admin-product-editor .admin-product input,
#admin-product-editor .admin-product select,
#admin-product-editor .admin-product textarea { min-width: 0; }
#admin-product-editor .admin-product header > div { min-width: 0; }
#admin-product-editor .admin-product h3 { overflow-wrap: anywhere; }
#admin-product-editor .price-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
#admin-product-editor .admin-actions { display: flex; justify-content: flex-end; }
#admin-product-editor .form-feedback:empty { display: none; }
#admin-product-editor .form-feedback.is-success {
  background: #edf8f0; color: #216236; padding: 12px;
  border-radius: 8px; margin: 0; font-size: 14px;
}
#admin-product-editor button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) {
  #admin-product-editor { padding: 14px; }
  #admin-product-editor .price-fields { grid-template-columns: minmax(0, 1fr); }
  #admin-product-editor input, #admin-product-editor select,
  #admin-product-editor textarea { font-size: 16px; }
}
/* Quitar la separación entre el menú y el banner. */
#site-header.site-header {
  margin-bottom: 0;
  border-bottom: 0;
}

/* Banner de borde a borde, sin márgenes ni esquinas redondeadas. */
.hero.hero-image-only {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* Conservar Explorar productos sobre la imagen. */
.hero.hero-image-only > .hero-explore {
  position: absolute;
  left: 6%;
  bottom: 12%;
  z-index: 1;
  min-height: 44px;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 13px 20px;
}

/* Ubicación del botón en celulares. */
@media (max-width: 480px) {
  .hero.hero-image-only > .hero-explore {
    left: 16px;
    bottom: 16px;
    padding: 11px 14px;
  }
}
/* ADMINISTRADOR · BANNER
   Oculta los campos de texto y sus etiquetas.
   Conserva sus valores para el guardado existente.
   La imagen y el botón Guardar permanecen visibles. */
#hero-form label:has([name="h1"]),
#hero-form label:has([name="h2"]),
#hero-form label:has([name="description"]) {
  display: none;
}