/* =========================================================
   CATÁLOGO DE TECNOLOGÍA
   Tema azul eléctrico + violeta neón controlado
   ========================================================= */

:root {
  --ink: #17213a;
  --ink-soft: #303b59;
  --muted: #697793;
  --line: #e0e7f4;
  --surface: #ffffff;
  --surface-soft: #f5f8ff;

  --blue: #315ee8;
  --blue-dark: #2145c4;
  --blue-light: #dfe9ff;

  --violet: #7550e8;
  --violet-dark: #5635c5;
  --violet-light: #eee8ff;

  --cyan: #20bcd2;
  --cyan-light: #e2faff;

  --orange: #f49a42;
  --green: #087f5b;
  --navy: #17203a;

  --radius: 16px;
  --shadow-sm: 0 4px 10px rgba(32, 51, 105, 0.07);
  --shadow-md: 0 10px 25px rgba(32, 51, 105, 0.10);
  --shadow-lg: 0 18px 42px rgba(32, 51, 105, 0.14);
  --shadow-purple: 0 5px 0 #4433a8, 0 9px 17px rgba(69, 52, 166, 0.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: #6650d8;
  color: #ffffff;
}

.hidden {
  display: none !important;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid #e5eaf5;
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 12px rgba(31, 48, 96, 0.035);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #315ee8, #6849d9);
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 4px 0 #293fa7, 0 6px 12px rgba(49, 94, 232, 0.17);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  color: #505c77;
  font-size: 13px;
  font-weight: 700;
}

.header-nav > a:not(.header-contact):hover,
.back-link:hover {
  color: var(--blue);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(115deg, #1e2c52, #293d83);
  box-shadow: 0 4px 0 #111d3b, 0 7px 14px rgba(23, 43, 92, 0.15);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.header-contact span {
  color: #c7d5ff;
}

.header-contact:hover {
  background: linear-gradient(115deg, #2949a5, #5941c7);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #292b80, 0 10px 16px rgba(45, 58, 151, 0.2);
}

.header-contact:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #292b80;
}

/* =========================================================
   BOTONES CON PROFUNDIDAD 3D
   ========================================================= */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 19px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(3px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(115deg, #315ee8, #5749d5);
  box-shadow:
    0 4px 0 #233fa9,
    0 7px 14px rgba(49, 82, 207, 0.20);
}

.button-primary:hover {
  background: linear-gradient(115deg, #274fcf, #4937be);
  box-shadow:
    0 5px 0 #20358f,
    0 10px 19px rgba(49, 82, 207, 0.23);
}

.button-primary:active {
  box-shadow: 0 1px 0 #20358f;
}

.button-light {
  color: #1d2b4f;
  background: #ffffff;
  box-shadow: 0 4px 0 #d0d8ec, 0 7px 12px rgba(18, 32, 76, 0.08);
}

.button-light:active {
  box-shadow: 0 1px 0 #d0d8ec;
}

.button-outline {
  color: #34456f;
  background: #ffffff;
  border: 1px solid #dce4f4;
  box-shadow: 0 3px 0 #d7dff0, 0 5px 10px rgba(32, 51, 105, 0.05);
}

.button-outline:hover {
  color: var(--blue-dark);
  background: #f4f7ff;
  border-color: #abbff2;
}

.button-outline:active {
  box-shadow: 0 1px 0 #d7dff0;
  transform: translateY(2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none !important;
}

/* =========================================================
   PORTADA PÚBLICA
   ========================================================= */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  min-height: 510px;
  padding: 70px max(8vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 88% 15%,
      rgba(100, 111, 227, 0.15),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 2% 12%,
      rgba(69, 142, 225, 0.10),
      transparent 35%
    ),
    linear-gradient(115deg, #f7f9ff, #f2f5ff 64%, #eff9ff);
}

.hero::before {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -170px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(103, 84, 215, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 580px;
}

.eyebrow {
  margin: 0 0 13px;
  color: #4a55cb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 94, 232, 0.09);
}

.hero h1,
.admin-main h1 {
  margin: 0 0 21px;
  font-family: Manrope, sans-serif;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2.6px;
}

.hero h1 span {
  color: #4953dc;
  background: linear-gradient(95deg, #315ee8, #7050d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 490px;
  margin: 0 0 28px;
  color: #65728d;
  font-size: 16px;
  line-height: 1.8;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  color: #65728d;
  font-size: 11px;
}

.hero-trust span {
  padding: 5px 9px;
  border: 1px solid #e0e7f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.hero-trust span:first-letter {
  color: var(--green);
}

/* Imagen grande de la portada */

.hero-art.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 390px;
  isolation: isolate;
}

.hero-image-frame {
  position: absolute;
  inset: 2% -4% 0 0;
  overflow: hidden;
  border: 1px solid rgba(123, 137, 210, 0.18);
  border-radius: 26px;
  background: linear-gradient(135deg, #c9d7ff, #b9dff7);
  box-shadow:
    0 12px 0 rgba(43, 63, 131, 0.08),
    0 22px 38px rgba(33, 53, 104, 0.16);
  transform: rotate(0.8deg);
}

.hero-showcase-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% center;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.hero-image-frame:hover .hero-showcase-image {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(24, 40, 105, 0.12),
    transparent 58%
  );
  pointer-events: none;
}

.hero-image-glow {
  position: absolute;
  z-index: -1;
  right: -3%;
  bottom: -8%;
  width: 55%;
  height: 35%;
  border-radius: 50%;
  background: rgba(93, 77, 204, 0.20);
  filter: blur(35px);
}

.floating-tag {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border: 1px solid #e0e6f6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 17px rgba(27, 43, 91, 0.12);
}

.tag-finance {
  top: 43px;
  right: 0;
}

.hero-floating-tag {
  top: 7%;
  right: -3%;
}

.tag-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #4b53c7;
  background: #edf0ff;
  font-weight: 800;
}

.floating-tag b,
.floating-tag small {
  display: block;
}

.floating-tag b {
  font-size: 12px;
}

.floating-tag small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.hero-sticker {
  position: absolute;
  z-index: 5;
  bottom: 5%;
  left: -5%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(120deg, #1b2a59, #3e419d);
  box-shadow: 0 6px 0 #182345, 0 11px 19px rgba(23, 33, 77, 0.19);
  transform: rotate(-2deg);
}

.hero-sticker span {
  color: #c3d6ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero-sticker strong {
  font-family: Manrope, sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

/* =========================================================
   BENEFICIOS
   ========================================================= */

.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 25px 28px;
  border-bottom: 1px solid #e6eaf4;
}

.benefit-row > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border: 1px solid #e0e7fc;
  border-radius: 11px;
  color: #405bcd;
  background: #edf2ff;
  font-size: 20px;
}

.benefit-row > div:nth-child(2) .benefit-icon {
  color: #1689a4;
  border-color: #d4f0f6;
  background: #e8faff;
}

.benefit-row > div:nth-child(3) .benefit-icon {
  color: #bd7533;
  border-color: #f4e4d1;
  background: #fff4e8;
}

.benefit-row b,
.benefit-row small {
  display: block;
}

.benefit-row b {
  font-size: 13px;
}

.benefit-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* =========================================================
   CATÁLOGO Y BÚSQUEDA
   ========================================================= */

.catalog-section,
.shipping-section {
  max-width: 1400px;
  margin: auto;
  padding: 80px max(5vw, 24px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.finance-banner h2,
.contact-section h2 {
  margin: 0 0 10px;
  font-family: Manrope, sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1.1px;
}

.heading-accent {
  color: var(--violet);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #dfe6f5;
  border-radius: 10px;
  color: #7d8799;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: #8499ed;
  box-shadow: 0 0 0 3px rgba(49, 94, 232, 0.08);
}

.search-box > span {
  font-size: 23px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.search-box kbd {
  padding: 4px 7px;
  border-radius: 5px;
  color: #48599d;
  background: #eff3ff;
  font-size: 10px;
  white-space: nowrap;
}

.catalog-promo-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 18px;
  padding: 12px 16px;
  border: 1px solid #dfe7f8;
  border-radius: 11px;
  color: #586783;
  background: linear-gradient(105deg, #f0f4ff, #eff9ff);
  font-size: 12px;
}

.catalog-promo-strip strong {
  color: #263c76;
}

.promo-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #315ee8, #6650d8);
  box-shadow: 0 3px 0 #293f9d;
  font-size: 15px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 27px 0 24px;
}

.filter-chip {
  padding: 9px 16px;
  border: 1px solid #dfe5f2;
  border-radius: 999px;
  color: #586783;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.16s,
    border-color 0.16s,
    background 0.16s,
    color 0.16s;
}

.filter-chip:hover {
  border-color: #aab9ef;
  color: #304db9;
  background: #f1f5ff;
  transform: translateY(-1px);
}

.filter-chip.active {
  border-color: #253e94;
  color: #ffffff;
  background: linear-gradient(110deg, #1b2b56, #334b9d);
  box-shadow: 0 3px 0 #17264b, 0 5px 10px rgba(38, 54, 115, 0.12);
}

.catalog-status {
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   TARJETAS DE PRODUCTOS
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 21px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3e8f4;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 5px 0 #e7ecf7, 0 8px 17px rgba(30, 47, 93, 0.045);
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #bacbf2;
  box-shadow: 0 7px 0 #d2def5, 0 15px 26px rgba(30, 47, 93, 0.10);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f6ff, #edf7ff);
}

.product-image img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.035);
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #95a1b4;
  font-size: 12px;
}

.placeholder-icon {
  color: #b4c0d5;
  font-size: 42px;
}

.product-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border: 1px solid #dfe5f2;
  border-radius: 7px;
  color: #4d5c7c;
  background: #ffffff;
  box-shadow: 0 3px 7px rgba(32, 51, 105, 0.06);
  font-size: 10px;
  font-weight: 800;
}

.featured-badge {
  border-color: #d5defc;
  color: #3856c2;
  background: #eaf0ff;
}

.product-card-content {
  padding: 17px;
}

.product-category {
  margin-bottom: 7px;
  color: #405bd0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 39px;
  margin: 0 0 9px;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.product-description {
  min-height: 36px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.spec-pill {
  display: inline-flex;
  padding: 5px 7px;
  border: 1px solid #e4e9f5;
  border-radius: 6px;
  color: #52617c;
  background: #f5f7fc;
  font-size: 10px;
  line-height: 1.3;
}

.product-price-label {
  color: #7e899a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.product-price {
  margin-top: 2px;
  color: #273f9c;
  font-family: Manrope, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.6px;
}

.product-price-secondary {
  margin-top: 2px;
  color: #6d7891;
  font-size: 12px;
}

.product-financing {
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #e0e8fa;
  border-radius: 8px;
  color: #3d558e;
  background: #f0f5ff;
  font-size: 11px;
  font-weight: 600;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
  margin-top: 14px;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 9px;
  border: 1px solid #263c87;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(110deg, #1e2d5a, #344b99);
  box-shadow: 0 3px 0 #142144, 0 5px 10px rgba(29, 45, 91, 0.11);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.buy-button:hover {
  border-color: #294cc0;
  background: linear-gradient(110deg, #315ee8, #5545bc);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #243c91, 0 8px 12px rgba(40, 67, 160, 0.16);
}

.buy-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #243c91;
}

.detail-button {
  border: 1px solid #dbe3f4;
  border-radius: 9px;
  color: #3d55bd;
  background: #f3f6ff;
  box-shadow: 0 3px 0 #dbe2f2;
  font-size: 18px;
  transition: transform 0.15s, background 0.15s;
}

.detail-button:hover {
  background: #e6edff;
  transform: translateY(-2px);
}

.detail-button:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* Estado vacío */

.empty-state {
  padding: 55px 20px;
  border: 1px dashed #d5deef;
  border-radius: 16px;
  color: #758197;
  text-align: center;
}

.empty-state > span {
  font-size: 32px;
}

.empty-state h3 {
  margin: 10px 0 3px;
  color: var(--ink);
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

/* =========================================================
   BANNER DE FINANCIAMIENTO Y ENTREGAS
   ========================================================= */

.finance-banner {
  position: relative;
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 25px;
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 35px 40px;
  overflow: hidden;
  border: 1px solid #293b79;
  border-radius: 20px;
  color: #ffffff;
  background:
    radial-gradient(
      ellipse at 92% 0%,
      rgba(46, 116, 207, 0.22),
      transparent 30%
    ),
    linear-gradient(115deg, #16213e, #222d5a 65%, #34347f);
  box-shadow: 0 9px 0 #111a32, 0 15px 26px rgba(28, 37, 80, 0.15);
}

.finance-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(165, 190, 255, 0.23);
  border-radius: 14px;
  color: #d4e4ff;
  background: linear-gradient(140deg, #354b96, #51449d);
  font-size: 27px;
  font-weight: 800;
}

.finance-banner .eyebrow {
  color: #aebfff;
}

.finance-banner h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 26px;
}

.finance-banner p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #d3dbee;
  font-size: 13px;
}

.finance-banner .button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.shipping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.shipping-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 4px 0 #edf1f8, 0 7px 14px rgba(30, 47, 93, 0.045);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.shipping-card:hover {
  transform: translateY(-3px);
  border-color: #c9d7f4;
  box-shadow: 0 6px 0 #e1e9f8, 0 12px 20px rgba(30, 47, 93, 0.09);
}

.shipping-number {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #e3e8f3;
  font-family: Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.shipping-icon {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 24px;
}

.shipping-card:nth-child(2) .shipping-icon {
  color: #1199b3;
}

.shipping-card:nth-child(3) .shipping-icon {
  color: #d9853a;
}

.shipping-card h3 {
  margin: 0 0 8px;
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.shipping-card p {
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.shipping-label {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 7px;
  color: #5b667a;
  background: #f1f4fa;
  font-size: 11px;
  font-weight: 700;
}

.label-free {
  color: #087f5b;
  background: #e7f8ef;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 33px 40px;
  border: 1px solid #dfe6f5;
  border-radius: 19px;
  background: linear-gradient(115deg, #f0f5ff, #f5f2ff 70%, #f0faff);
  box-shadow: 0 6px 0 #e5e9f4;
}

.contact-section .eyebrow {
  margin-bottom: 10px;
}

.contact-section h2 {
  margin-bottom: 9px;
  font-size: 29px;
}

.contact-section p:not(.eyebrow) {
  margin: 0;
  color: #65728d;
  font-size: 13px;
}

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 27px max(5vw, 24px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  flex-shrink: 0;
  color: var(--ink);
}

.footer-brand .brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  font-size: 10px;
}

.site-footer p {
  max-width: 480px;
  margin: 0;
  text-align: center;
}

/* =========================================================
   VENTANA DE DETALLES DEL PRODUCTO
   ========================================================= */

.product-dialog {
  width: min(900px, calc(100% - 30px));
  max-height: 90vh;
  overflow: auto;
  padding: 0;
  border: 1px solid #dce4f3;
  border-radius: 17px;
  box-shadow: 0 20px 60px rgba(18, 30, 67, 0.28);
}

.product-dialog::backdrop {
  background: rgba(15, 23, 45, 0.68);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  float: right;
  top: 10px;
  width: 36px;
  height: 36px;
  margin: 10px 10px -45px 0;
  border: 1px solid #dfe5f2;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(17, 29, 65, 0.1);
  font-size: 23px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.dialog-image {
  display: grid;
  place-items: center;
  min-height: 350px;
  background: linear-gradient(135deg, #eff4ff, #f0f9ff);
}

.dialog-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  padding: 25px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.dialog-detail {
  padding: 35px 28px;
}

.dialog-detail h2 {
  color: #24365f;
  font-family: Manrope, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.dialog-detail h3 {
  color: #293b70;
  font-size: 18px;
}

.dialog-detail p {
  color: var(--muted);
  font-size: 14px;
}

.dialog-detail .product-price {
  font-size: 28px;
}

.dialog-specs {
  padding-left: 18px;
  color: #58647a;
  font-size: 14px;
}

.dialog-detail .button {
  width: 100%;
  margin-top: 14px;
}

/* =========================================================
   COLORES DEL PRODUCTO
   ========================================================= */

.product-color-summary {
  margin: 12px 0 15px;
}

.product-color-heading {
  display: block;
  margin-bottom: 6px;
  color: #6e7c96;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.product-color-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.product-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #dfe6f3;
  border-radius: 7px;
  color: #526079;
  background: #ffffff;
  font-size: 10px;
  line-height: 1.4;
}

.product-color-chip img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  background: #f3f6fb;
}

.product-color-chip small {
  color: #8c5f00;
  font-size: 9px;
}

.product-color-dot {
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #d7deea;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7fb, #d8dfed);
}

.product-color-more {
  align-self: center;
  color: #68748a;
  font-size: 11px;
  font-weight: 700;
}

.dialog-colors {
  margin: 20px 0;
}

.dialog-colors h3 {
  margin: 0 0 10px;
  color: #293b70;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.dialog-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.dialog-color-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
}

.dialog-color-image {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f5fc;
}

.dialog-color-image img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.dialog-color-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.dialog-color-info strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.color-availability {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.color-availability.available {
  color: #087f5b;
  background: #e3f8ed;
}

.color-availability.order {
  color: #8c5f00;
  background: #fff3d7;
}

.dialog-color-info a {
  color: #3155c8;
  font-size: 12px;
  font-weight: 800;
}

/* =========================================================
   FONDO Y ESTRUCTURA ADMINISTRATIVA
   ========================================================= */

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(67, 96, 205, 0.12),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 100% 14%,
      rgba(115, 80, 205, 0.10),
      transparent 32%
    ),
    linear-gradient(145deg, #f2f5ff, #f8f8ff 55%, #edf6ff);
}

.admin-header {
  background: rgba(255, 255, 255, 0.96);
}

.back-link {
  color: #52627f;
  font-size: 13px;
  font-weight: 700;
}

.admin-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 44px max(4vw, 20px) 75px;
}

.admin-main h1 {
  color: #192443;
  font-size: 38px;
  letter-spacing: -1.5px;
}

.admin-main .eyebrow {
  font-size: 11px;
}

.admin-main .section-subtitle {
  font-size: 14px;
}

/* =========================================================
   INICIO DE SESIÓN
   ========================================================= */

.login-panel {
  max-width: 570px;
  margin: 25px auto 40px;
  padding: 0 36px 36px;
  overflow: hidden;
  border: 1px solid #dfe5f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 6px 0 #e2e8f5,
    0 18px 42px rgba(29, 47, 100, 0.12);
}

.admin-login-visual {
  position: relative;
  height: 190px;
  margin: 0 -36px 28px;
  overflow: hidden;
  background: linear-gradient(125deg, #294a9b, #5045b0);
}

.admin-login-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.admin-login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(19, 35, 88, 0.30),
    rgba(42, 43, 120, 0.04)
  );
}

.admin-login-visual-label {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 32, 77, 0.65);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.admin-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48d9b2;
}

.login-panel h1 {
  margin-bottom: 15px;
  font-size: 32px;
  letter-spacing: -1.2px;
}

.login-panel .section-subtitle {
  color: #697793;
  font-size: 14px;
  line-height: 1.7;
}

.login-form {
  margin-top: 25px;
}

.admin-help {
  margin-top: 22px;
  color: #697793;
  font-size: 12px;
  line-height: 1.7;
}

.admin-help code {
  padding: 3px 5px;
  border-radius: 4px;
  background: #eff3fb;
}

/* =========================================================
   CAMPOS Y FORMULARIOS DE ADMINISTRACIÓN
   ========================================================= */

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #344361;
  font-size: 14px;
  font-weight: 700;
}

.admin-form input:not([type="checkbox"]):not([type="file"]),
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dbe3f2;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: #738de3;
  box-shadow: 0 0 0 3px rgba(49, 94, 232, 0.09);
}

.admin-form textarea {
  resize: vertical;
}

.admin-form input[type="file"] {
  max-width: 100%;
  font-size: 13px;
  font-weight: 400;
}

.admin-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.login-form .button {
  width: 100%;
  min-height: 48px;
}

.form-status {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.form-status.error {
  color: #b42318;
}

.form-status.success {
  color: #087f5b;
}

/* =========================================================
   CABECERA Y BIENVENIDA DEL PANEL
   ========================================================= */

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-top h1 {
  margin-bottom: 12px;
}

.admin-alert {
  margin-bottom: 18px;
  color: #526079;
  font-size: 14px;
  font-weight: 700;
}

.admin-welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  align-items: center;
  gap: 24px;
  min-height: 230px;
  margin-bottom: 23px;
  padding: 27px 29px;
  overflow: hidden;
  border: 1px solid #283e83;
  border-radius: 19px;
  color: #ffffff;
  background:
    radial-gradient(
      ellipse at 0% 100%,
      rgba(24, 174, 208, 0.20),
      transparent 37%
    ),
    radial-gradient(
      ellipse at 75% 0%,
      rgba(116, 82, 203, 0.28),
      transparent 45%
    ),
    linear-gradient(115deg, #17213f, #23366f 68%, #373477);
  box-shadow:
    0 6px 0 #111a34,
    0 13px 25px rgba(28, 43, 91, 0.16);
}

.admin-welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 550px;
}

.admin-welcome-kicker {
  margin: 0 0 11px;
  color: #a9dfff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.admin-welcome h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: Manrope, sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.admin-welcome h2 span {
  color: #a7bdff;
}

.admin-welcome-copy > p:not(.admin-welcome-kicker) {
  max-width: 430px;
  margin: 0;
  color: #d8e1f6;
  font-size: 14px;
  line-height: 1.75;
}

.admin-welcome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.admin-welcome-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(194, 210, 255, 0.22);
  border-radius: 8px;
  color: #e7edff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.admin-welcome-image {
  position: relative;
  min-height: 175px;
  overflow: hidden;
  border: 1px solid rgba(184, 204, 255, 0.24);
  border-radius: 13px;
  background: #23386b;
  box-shadow: 0 7px 0 #111b37, 0 12px 23px rgba(10, 20, 55, 0.17);
}

.admin-welcome-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s;
}

.admin-welcome-image:hover img {
  transform: scale(1.035);
}

.admin-image-badge {
  position: absolute;
  bottom: 11px;
  left: 11px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: #ffffff;
  background: rgba(19, 31, 73, 0.8);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* =========================================================
   TARJETAS DEL PANEL
   ========================================================= */

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: start;
  gap: 22px;
}

.admin-card {
  min-width: 0;
  padding: 25px;
  border: 1px solid #dfe6f3;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 0 #e6ecf7, 0 9px 19px rgba(30, 47, 93, 0.055);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-card:hover {
  border-color: #cbd8ef;
  box-shadow: 0 5px 0 #dce6f5, 0 12px 23px rgba(30, 47, 93, 0.075);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.card-heading h2,
.import-card h2,
.team-preview-heading h2 {
  margin: 0 0 7px;
  color: #22345c;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.35px;
}

.card-heading p,
.import-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.text-button {
  padding: 5px 0;
  border: 0;
  color: #3155c8;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.text-button:hover {
  color: #5836ba;
  text-decoration: underline;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.span-2 {
  grid-column: span 2;
}

.check-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  padding: 10px;
  border: 1px solid #e3e9f5;
  border-radius: 9px;
  background: #f9fbff;
  font-size: 13px !important;
}

.check-label input {
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 21px;
}

.admin-search {
  width: 100%;
  min-width: 0;
  margin-bottom: 15px;
}

.admin-product-list {
  display: grid;
  gap: 11px;
  max-height: 1050px;
  overflow: auto;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid #e4eaf5;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.admin-product-row:hover {
  border-color: #cbd7f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(30, 47, 93, 0.07);
}

.admin-product-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid #e1e8f5;
  border-radius: 8px;
  object-fit: contain;
  background: #f1f6ff;
}

.admin-product-name {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-product-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-product-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-mini-button {
  padding: 6px 10px;
  border: 1px solid #d7e0f1;
  border-radius: 7px;
  color: #334e9e;
  background: #ffffff;
  box-shadow: 0 2px 0 #e3e8f3;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.15s, background 0.15s;
}

.admin-mini-button:hover {
  background: #f0f4ff;
  transform: translateY(-1px);
}

.admin-mini-button:active {
  transform: translateY(1px);
  box-shadow: none;
}

.admin-mini-button.danger {
  color: #b42318;
}

.status-pill {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  color: #8c5f00;
  background: #fff3d7;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.published {
  color: #087f5b;
  background: #e3f8ed;
}

/* =========================================================
   CARGA JSON
   ========================================================= */

.import-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.import-card > div {
  max-width: 780px;
}

.import-card .form-status {
  flex-basis: 100%;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  overflow: hidden;
  border: 1px solid #dbe3f2;
  border-radius: 9px;
  color: #344b91;
  background: #ffffff;
  box-shadow: 0 3px 0 #dce4f2;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.file-button:hover {
  background: #f3f6ff;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* =========================================================
   EDITOR DE COLORES
   ========================================================= */

.colors-editor-section {
  margin-top: 5px;
  padding: 18px;
  border: 1px solid #dbe4f7;
  border-radius: 12px;
  background: linear-gradient(130deg, #f1f5ff, #f3faff);
}

.colors-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.colors-editor-heading h3 {
  margin: 0 0 6px;
  color: #283e7e;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.colors-editor-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.colors-editor-heading .button {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 9px 12px;
  font-size: 13px;
}

.product-colors-list {
  display: grid;
  gap: 11px;
}

.colors-empty-hint {
  margin: 0;
  padding: 16px;
  border: 1px dashed #cfdcf2;
  border-radius: 9px;
  color: #697793;
  background: #ffffff;
  font-size: 13px;
  text-align: center;
}

.color-admin-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 13px;
  padding: 15px;
  border: 1px solid #dfe6f3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 3px 0 #edf1f8;
}

.color-admin-row label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #344361;
  font-size: 13px;
  font-weight: 700;
}

.color-admin-row input:not([type="file"]),
.color-admin-row select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #dbe3f2;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
}

.color-admin-row input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px dashed #d5deef;
  border-radius: 8px;
  color: #5b6781;
  background: #f8faff;
  font-size: 12px;
}

.color-remove-button {
  justify-self: start;
  min-height: 31px;
  font-size: 12px;
}

.color-row-status {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   VISTA PRELIMINAR: EQUIPO Y PERMISOS
   ========================================================= */

.team-preview-card {
  margin-top: 22px;
  background: linear-gradient(125deg, #ffffff, #f7f8ff);
}

.team-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 21px;
}

.team-preview-heading .eyebrow {
  margin-bottom: 7px;
}

.team-preview-heading h2 {
  margin: 0 0 7px;
  color: #24396f;
  font-size: 22px;
  line-height: 1.35;
}

.team-preview-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.team-preview-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #d9e1f7;
  border-radius: 999px;
  color: #425bb3;
  background: #edf2ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.team-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.team-role-card {
  min-width: 0;
  padding: 17px 14px;
  border: 1px solid #e0e6f3;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 3px 0 #edf1f8;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.team-role-card:hover {
  transform: translateY(-2px);
  border-color: #c7d4f2;
  box-shadow: 0 5px 0 #e3e9f7, 0 8px 13px rgba(30, 47, 93, 0.07);
}

.team-role-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 18px;
  font-weight: 800;
}

.owner-role .team-role-icon {
  color: #087f5b;
  border-color: #caeee0;
  background: #e3f8ed;
}

.admin-role .team-role-icon {
  color: #3155c5;
  border-color: #d8e2ff;
  background: #eaf0ff;
}

.editor-role .team-role-icon {
  color: #6742c7;
  border-color: #e3d7fb;
  background: #f0eaff;
}

.viewer-role .team-role-icon {
  color: #a56b22;
  border-color: #f2e0c2;
  background: #fff5e5;
}

.team-role-card h3 {
  margin: 0 0 7px;
  color: #25375e;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.team-role-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.team-security-note {
  margin: 17px 0 0;
  padding: 13px 15px;
  border-left: 3px solid #5267c7;
  border-radius: 0 8px 8px 0;
  color: #566582;
  background: #edf2ff;
  font-size: 13px;
  line-height: 1.65;
}

.team-security-note strong {
  color: #2d458c;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .hero-image-frame {
    right: -1%;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-product-list {
    max-height: 500px;
  }

  .team-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 65px;
    padding: 0 18px;
  }

  .brand {
    gap: 8px;
    font-size: 13px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-nav {
    gap: 0;
  }

  .header-nav > a:not(.header-contact) {
    display: none;
  }

  .header-contact {
    padding: 9px 11px;
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 48px 20px 30px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-art.hero-visual {
    min-height: 285px;
    margin: 6px -2px 0;
  }

  .hero-image-frame {
    inset: 6px 1px 12px;
    border-radius: 20px;
    transform: none;
  }

  .hero-showcase-image {
    object-position: 57% center;
  }

  .hero-floating-tag {
    top: 0;
    right: -3px;
    gap: 7px;
    padding: 9px 11px;
  }

  .hero-floating-tag .tag-icon {
    width: 27px;
    height: 27px;
  }

  .hero-floating-tag b {
    font-size: 10px;
  }

  .hero-floating-tag small {
    font-size: 9px;
  }

  .hero-sticker {
    bottom: 0;
    left: 1px;
    padding: 9px 12px;
  }

  .hero-sticker strong {
    font-size: 11px;
  }

  .hero-sticker span {
    font-size: 8px;
  }

  .hero-trust {
    gap: 7px;
  }

  .hero-trust span {
    font-size: 10px;
  }

  .benefit-row {
    gap: 10px;
    padding: 20px 16px;
  }

  .benefit-row > div {
    justify-content: flex-start;
    gap: 7px;
  }

  .benefit-icon {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }

  .benefit-row b {
    font-size: 11px;
  }

  .benefit-row small {
    font-size: 10px;
  }

  .catalog-section,
  .shipping-section {
    padding: 54px 18px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .catalog-promo-strip {
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.65;
  }

  .filter-row {
    gap: 7px;
    margin: 22px 0;
  }

  .filter-chip {
    padding: 8px 12px;
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    box-shadow: 0 3px 0 #e7ecf7, 0 6px 12px rgba(30, 47, 93, 0.045);
  }

  .product-image {
    height: 155px;
  }

  .product-image img {
    padding: 10px;
  }

  .product-card-content {
    padding: 11px;
  }

  .product-card h3 {
    min-height: 0;
    font-size: 13px;
  }

  .product-description {
    min-height: 0;
    font-size: 11px;
  }

  .product-category {
    font-size: 9px;
  }

  .product-price {
    font-size: 20px;
  }

  .product-price-secondary {
    font-size: 11px;
  }

  .product-specs {
    gap: 4px;
  }

  .spec-pill {
    padding: 4px 5px;
    font-size: 9px;
  }

  .product-financing {
    padding: 6px;
    font-size: 10px;
  }

  .product-actions {
    grid-template-columns: 1fr 34px;
    gap: 5px;
  }

  .buy-button {
    padding: 10px 5px;
    font-size: 11px;
  }

  .finance-banner {
    grid-template-columns: 43px 1fr;
    gap: 13px;
    margin: 0 14px 30px;
    padding: 25px 20px;
    border-radius: 15px;
  }

  .finance-symbol {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 20px;
  }

  .finance-banner h2 {
    font-size: 22px;
  }

  .finance-banner p:not(.eyebrow) {
    font-size: 12px;
  }

  .finance-banner .button {
    grid-column: 1 / -1;
  }

  .shipping-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .shipping-card {
    padding: 21px;
  }

  .shipping-card h3 {
    font-size: 18px;
  }

  .shipping-card p {
    min-height: 0;
    font-size: 13px;
  }

  .shipping-icon {
    margin-bottom: 12px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin: 0 14px 30px;
    padding: 25px 20px;
  }

  .contact-section h2 {
    font-size: 24px;
  }

  .contact-section p:not(.eyebrow) {
    font-size: 13px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 13px;
    padding: 22px 18px;
  }

  .footer-brand {
    flex-basis: 100%;
  }

  .site-footer p {
    text-align: left;
  }

  .product-dialog {
    max-height: 94vh;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-image {
    min-height: 220px;
    max-height: 260px;
  }

  .dialog-image img {
    max-height: 260px;
  }

  .dialog-detail {
    padding: 23px;
  }

  .dialog-detail h2 {
    font-size: 23px;
  }

  .dialog-color-grid {
    grid-template-columns: 1fr;
  }

  /* Administración en móvil */

  .admin-main {
    padding: 24px 13px 50px;
  }

  .admin-main h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .login-panel {
    padding: 0 22px 26px;
  }

  .admin-login-visual {
    height: 160px;
    margin: 0 -22px 24px;
  }

  .login-panel h1 {
    font-size: 28px;
  }

  .admin-form label {
    font-size: 14px;
  }

  .admin-form input:not([type="checkbox"]):not([type="file"]),
  .admin-form select,
  .admin-form textarea {
    font-size: 14px;
  }

  .dashboard-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-welcome {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .admin-welcome h2 {
    font-size: 27px;
  }

  .admin-welcome-copy > p:not(.admin-welcome-kicker) {
    font-size: 14px;
  }

  .admin-welcome-image {
    min-height: 165px;
  }

  .admin-card {
    padding: 20px;
  }

  .card-heading h2,
  .import-card h2 {
    font-size: 18px;
  }

  .card-heading p,
  .import-card p {
    font-size: 13px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .import-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-link {
    font-size: 11px;
  }

  .colors-editor-heading {
    flex-direction: column;
  }

  .colors-editor-heading h3 {
    font-size: 18px;
  }

  .colors-editor-heading p {
    font-size: 13px;
  }

  .color-admin-row {
    grid-template-columns: 1fr;
  }

  .color-admin-row label {
    font-size: 13px;
  }

  .team-preview-heading {
    flex-direction: column;
  }

  .team-preview-heading h2 {
    font-size: 22px;
  }

  .team-preview-heading p:not(.eyebrow) {
    font-size: 13px;
  }

  .team-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .team-role-card {
    padding: 13px 11px;
  }

  .team-role-card h3 {
    font-size: 15px;
  }

  .team-role-card p {
    font-size: 12px;
  }

  .team-security-note {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 37px;
  }

  .hero-art.hero-visual {
    min-height: 245px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 210px;
  }

  .benefit-row {
    grid-template-columns: 1fr;
  }

  .team-role-grid {
    grid-template-columns: 1fr;
  }

  .header-contact {
    max-width: 155px;
  }

  .team-preview-status {
    white-space: normal;
  }
}

/* Respeta la preferencia de reducir animaciones del dispositivo. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Catálogo admin: botón de carga y vista previa de imágenes. */
.admin-upload-field { display:flex; flex-direction:column; align-items:flex-start; gap:10px; min-width:0; }
.admin-upload-field > label:first-child { color:var(--ink); font-size:14px; font-weight:700; }
.admin-file-input { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.admin-file-input:focus-visible + .admin-file-picker { outline:3px solid rgba(91,116,255,.42); outline-offset:3px; }
.admin-file-picker { display:inline-flex !important; flex-direction:row !important; align-items:center; justify-content:center; gap:9px !important; min-height:46px; padding:11px 17px; border:1px solid rgba(123,145,255,.6); border-radius:13px; color:#fff !important; background:linear-gradient(135deg,#3867ed 0%,#6551d9 100%); box-shadow:0 8px 18px rgba(55,79,190,.22),inset 0 1px rgba(255,255,255,.22); font-size:14px !important; font-weight:750 !important; cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.admin-file-picker:hover { transform:translateY(-2px); box-shadow:0 11px 24px rgba(55,79,190,.3),inset 0 1px rgba(255,255,255,.22); filter:brightness(1.06); }
.admin-file-picker:active { transform:translateY(0); }
.admin-file-picker-icon { display:inline-grid; place-items:center; width:22px; height:22px; border-radius:7px; background:rgba(255,255,255,.18); font-size:20px; line-height:1; }
.admin-file-summary { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.admin-image-preview-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(115px,1fr)); gap:12px; width:100%; }
.admin-image-preview-card { min-width:0; margin:0; padding:8px; overflow:hidden; border:1px solid var(--line,rgba(130,150,200,.24)); border-radius:13px; background:rgba(127,145,190,.07); }
.admin-image-preview-card img { display:block; width:100%; aspect-ratio:1/1; object-fit:contain; border-radius:8px; background:rgba(12,19,38,.14); }
.admin-image-preview-card figcaption { margin-top:7px; overflow:hidden; color:var(--ink); font-size:11px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.admin-image-preview-card small { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.variant-image-label .admin-file-picker { align-self:flex-start; min-height:38px; padding:8px 12px; border-radius:10px; font-size:12px !important; }
.variant-image-preview { display:flex; align-items:center; gap:10px; min-height:84px; margin-top:10px; padding:8px; border:1px dashed rgba(130,150,200,.42); border-radius:12px; background:rgba(127,145,190,.06); }
.variant-image-preview img { width:76px; height:76px; flex:0 0 76px; object-fit:contain; border-radius:8px; background:rgba(12,19,38,.14); }
.variant-image-preview span { min-width:0; overflow-wrap:anywhere; color:var(--muted); font-size:12px; }
.variant-image-placeholder { padding:10px; }
@media (max-width:480px) { .admin-file-picker { width:100%; min-height:48px; } .admin-image-preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }


/* Inicio de sesión: control de visibilidad de contraseña. */
.password-field-label { min-width:0; }
.password-input-wrap { position:relative; display:block; width:100%; }
.password-input-wrap input { padding-right:50px !important; }
.password-visibility-button {
  position:absolute;
  top:50%;
  right:8px;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:7px;
  border:1px solid transparent;
  border-radius:10px;
  color:var(--muted);
  background:transparent;
  cursor:pointer;
  transform:translateY(-50%);
  transition:color .18s ease,background .18s ease,border-color .18s ease;
}
.password-visibility-button:hover { color:var(--ink); background:rgba(116,137,190,.12); border-color:rgba(116,137,190,.2); }
.password-visibility-button:focus-visible { outline:2px solid #7188ef; outline-offset:2px; }
.password-visibility-button svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }


/* Compactación de campos, etiquetas y variantes agrupadas. */
.required-mark { display:inline; margin-left:2px; color:#f04452; font-weight:800; }
.variant-config-group { min-width:0; margin:0 0 14px; padding:12px; border:1px solid rgba(119,143,220,.34); border-radius:15px; background:rgba(89,112,194,.055); }
.variant-config-group-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:12px; padding:2px 2px 10px; border-bottom:1px solid rgba(119,143,220,.22); }
.variant-config-group-heading > div { display:flex; flex-direction:column; gap:3px; }
.variant-config-group-heading strong { color:var(--ink); font-size:14px; }
.variant-config-group-heading small { color:var(--muted); font-size:11px; }
.variant-color-list { display:grid; gap:10px; min-width:0; }
.variant-color-list .variant-admin-row { margin:0; }
.variant-config-group .variant-admin-row { padding:12px; }
.variant-config-group .variant-row-title { gap:7px; }
.variant-config-group .variant-row-title strong { font-size:13px; }
.variant-config-group .variant-fields-grid { gap:11px; }
@media (max-width:480px) { .variant-config-group { padding:9px; } .variant-config-group-heading { align-items:stretch; flex-direction:column; } .variant-config-group-heading .admin-mini-button { width:100%; } }

.variant-config-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.variant-config-fields label{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--ink);font-size:13px;font-weight:700}
.variant-config-fields input,.variant-config-fields select{width:100%;min-width:0}
.variant-color-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.variant-add-color{width:100%;margin-top:12px}
@media(max-width:480px){.variant-config-fields,.variant-color-fields{grid-template-columns:minmax(0,1fr)}}

.admin-input-unit{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--line,var(--border,#394765));border-radius:12px;padding:0 13px;background:var(--input-bg,transparent)}
.admin-input-unit>span{flex:0 0 auto;color:var(--muted,#9eabc4);font-weight:700}
.admin-input-unit input{min-width:0;flex:1;width:100%;border:0!important;background:transparent!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}
.admin-preview-remove{display:inline-grid;place-items:center;min-width:36px;min-height:36px;margin-top:5px;padding:0;font-size:23px;font-weight:500;line-height:1;touch-action:manipulation}
.variant-config-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.variant-config-fields label{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--ink);font-size:13px;font-weight:700}
.variant-config-fields input,.variant-config-fields select{width:100%;min-width:0}
.variant-color-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.variant-add-color{width:100%;margin-top:12px}
.variant-base-group{border-color:var(--accent,#5268f5)}
@media(max-width:480px){.variant-config-fields,.variant-color-fields{grid-template-columns:minmax(0,1fr)}}

/* Catálogo: opciones combinadas y acentos visuales */
.variant-selector{gap:18px}
.variant-option-group{padding:16px;border:1px solid var(--border,#dbe3f0);border-radius:18px;background:linear-gradient(145deg,rgba(87,112,255,.055),rgba(20,184,166,.035));box-shadow:0 8px 22px rgba(34,54,94,.055)}
.variant-option-group h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-weight:750;letter-spacing:.01em}
.variant-option-group h3:before{content:"";display:block;width:4px;height:17px;border-radius:4px;background:linear-gradient(180deg,#6375ff,#20b8a6)}
.variant-choice-list{gap:10px}
.variant-choice{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;background:var(--surface,#fff);border-radius:13px}
.variant-choice:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(47,71,150,.12)}
.variant-choice.selected{border-color:#596df5;box-shadow:0 0 0 2px rgba(89,109,245,.15);background:linear-gradient(135deg,rgba(89,109,245,.11),rgba(32,184,166,.08))}
.color-choice{min-width:104px}
.variant-price-box{border:1px solid rgba(89,109,245,.22);background:linear-gradient(125deg,rgba(89,109,245,.10),rgba(32,184,166,.08));border-radius:18px;padding:18px}
.variant-price-box strong{font-size:clamp(1.5rem,4vw,2rem);letter-spacing:-.025em}
.variant-selected-summary{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:14px 0}
.variant-status-badge.unavailable{background:#fee2e2;color:#991b1b}
@media(max-width:520px){.variant-option-group{padding:13px}.variant-choice-list{gap:8px}.variant-choice{padding:10px 12px}.color-choice{min-width:0;flex:1 1 calc(50% - 8px)}}


/* Acciones para retirar fotografías: compactas, pero accesibles al tacto. */
.admin-image-preview-card .admin-preview-remove { width:36px; height:36px; }
.variant-image-preview .admin-preview-remove { flex:0 0 36px; margin:0 0 0 auto; }
.admin-preview-remove:focus-visible { outline:3px solid rgba(91,116,255,.55); outline-offset:2px; }
@media (max-width:480px) {
  .admin-image-preview-card { padding:7px; }
  .admin-image-preview-grid { gap:9px; }
  .variant-image-preview { gap:7px; flex-wrap:wrap; }
}


/* Tarjetas públicas compactas: imagen, marca/modelo, capacidad, precio y ficha. */
.product-card-content { padding: 14px; }
.product-card h3 {
  min-height: 0;
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.product-card-capacity {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.product-card .product-price-label { font-size: 10px; }
.product-card .product-price { font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.product-card .product-price-secondary { font-size: 11px; }
.product-card .product-actions { grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 12px; }
.product-card .product-view-button { min-width: 0; min-height: 42px; padding: 10px 9px; font-size: 13px; }
@media (max-width:760px) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-image { height: auto; aspect-ratio: 1 / 1; }
  .product-image img { width: 100%; height: 100%; object-fit: contain; padding: 9px; }
  .product-card-content { padding: 11px; }
  .product-card h3 { font-size: 14px; line-height: 1.35; }
  .product-card-capacity { font-size: 11px; margin-bottom: 9px; }
  .product-card .product-price { font-size: clamp(17px,4.6vw,22px); }
  .product-card .product-price-secondary { font-size: 10px; }
  .product-card .product-view-button { min-height: 42px; font-size: 12px; }
}
@media (max-width:360px) {
  .product-grid { gap: 8px; }
  .product-card-content { padding: 9px; }
  .product-card .product-price { font-size: 16px; }
}


/* Etiquetas flotantes del hero: más integradas con la fotografía. */
.hero-floating-tag {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(219, 228, 247, 0.68);
  box-shadow: 0 8px 24px rgba(23, 37, 77, 0.10);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}
.hero-sticker {
  background: rgba(35, 51, 116, 0.76);
  border-color: rgba(255, 255, 255, 0.20);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}
html[data-theme="dark"] .hero-floating-tag {
  background: rgba(17, 27, 49, 0.72);
  border-color: rgba(98, 119, 171, 0.55);
  color: #f0f4ff;
}
html[data-theme="dark"] .hero-sticker {
  background: rgba(19, 31, 69, 0.78);
}


/* La ficha del producto y sus imágenes se controlan desde theme-ui.css para evitar reglas duplicadas. */


/* Galerías ordenables y portada del catálogo. */
.sortable-image-card { position:relative; cursor:grab; transition:border-color .16s,transform .16s,opacity .16s; }
.sortable-image-card:hover { border-color:#7489ef; }
.sortable-image-card.is-dragging { opacity:.45; transform:scale(.98); }
.admin-image-order-badge { position:absolute; top:13px; left:13px; z-index:1; padding:4px 7px; border:1px solid rgba(255,255,255,.25); border-radius:7px; color:#fff; background:linear-gradient(110deg,#2555bd,#5c42bd); font-size:10px; font-weight:800; box-shadow:0 2px 7px rgba(0,0,0,.18); }
.admin-image-controls { display:flex; align-items:center; justify-content:center; gap:5px; margin-top:8px; }
.admin-image-controls .admin-mini-button { min-width:29px; min-height:29px; padding:3px 7px; }
.admin-image-controls .admin-mini-button:disabled { opacity:.35; cursor:not-allowed; transform:none; }
.variant-image-preview { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); align-items:stretch; gap:9px; min-height:72px; }
.variant-gallery-item { position:relative; min-width:0; margin:0; padding:6px; border:1px solid var(--line,rgba(130,150,200,.24)); border-radius:11px; background:rgba(127,145,190,.07); cursor:grab; }
.variant-gallery-item img { display:block; width:100%; height:88px; object-fit:contain; }
.variant-gallery-item .admin-image-order-badge { top:9px; left:9px; }
.variant-image-placeholder { grid-column:1/-1; padding:12px; color:var(--muted); font-size:12px; }
.variant-image-label { min-width:0; }
.variant-image-label .admin-file-picker { margin-top:2px; }

/* Ficha pública con miniaturas intercambiables. */
.dialog-image { display:flex; flex-direction:column; justify-content:center; align-items:stretch; gap:12px; min-width:0; padding:16px; }
.dialog-gallery-main { display:grid; place-items:center; width:100%; min-height:270px; flex:1 1 auto; }
.dialog-image .dialog-gallery-main .dialog-main-image { display:block; width:100%; height:100%; max-height:420px; padding:18px; object-fit:contain; mix-blend-mode:multiply; }
.dialog-gallery-thumbs { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; width:100%; padding:3px 0 5px; }
.dialog-gallery-thumb { display:grid; place-items:center; width:62px; height:62px; padding:3px; border:1px solid var(--line,#dce3f2); border-radius:9px; background:#fff; cursor:pointer; transition:border-color .16s,transform .16s; }
.dialog-gallery-thumb:hover { transform:translateY(-1px); border-color:#647be9; }
.dialog-gallery-thumb.active { border:2px solid #586be8; box-shadow:0 0 0 2px rgba(88,107,232,.12); }
.dialog-gallery-thumb img { display:block; width:100%; height:100%; padding:0; object-fit:contain; mix-blend-mode:multiply; }
html[data-theme="dark"] .dialog-gallery-thumb { border-color:#344366; background:#111a30; }
html[data-theme="dark"] .dialog-gallery-thumb img { mix-blend-mode:normal; }

/* Encabezado público limpio, con título centrado y selector de tema. */
.site-header:not(.admin-header) { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:10px; justify-content:initial; padding-inline:max(3vw,16px); }
.site-header:not(.admin-header) > .brand { grid-column:2; justify-self:center; max-width:100%; gap:11px; font-size:clamp(17px,2vw,24px); letter-spacing:-.6px; white-space:nowrap; }
.site-header:not(.admin-header) > [data-theme-toggle] { grid-column:3; justify-self:end; }
@media (max-width:600px) {
 .site-header:not(.admin-header) { height:66px; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); padding-inline:10px; gap:4px; }
 .site-header:not(.admin-header) > .brand { gap:7px; font-size:clamp(12px,3.8vw,16px); letter-spacing:-.45px; }
 .site-header:not(.admin-header) > .brand .brand-mark { width:29px; height:29px; border-radius:9px; font-size:10px; }
 .site-header:not(.admin-header) > [data-theme-toggle] { min-height:34px; padding:6px 8px; gap:5px; font-size:11px; }
 .site-header:not(.admin-header) > [data-theme-toggle] .theme-toggle-icon { font-size:15px; }
 .dialog-image { min-height:250px; padding:12px; }
 .dialog-gallery-main { min-height:180px; }
 .dialog-image .dialog-gallery-main .dialog-main-image { max-height:300px; padding:8px; }
 .dialog-gallery-thumb { width:50px; height:50px; }
 .variant-image-preview { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:380px) {
  .site-header:not(.admin-header) > .brand .brand-mark { display:none; }
  .site-header:not(.admin-header) > .brand { font-size:14px; }
}


/* Navegación del panel administrativo y listas separadas por publicación. */
.admin-section-nav{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 24px;padding:10px;border:1px solid var(--line,#2d3c5d);border-radius:16px;background:var(--surface,#111b31)}
.admin-nav-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border:1px solid var(--line,#344568);border-radius:11px;background:transparent;color:var(--text,#e8eeff);font:inherit;font-weight:700;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.admin-nav-button:hover{transform:translateY(-1px);border-color:#6478ed}
.admin-nav-button.active{color:#fff;border-color:#5368e8;background:linear-gradient(135deg,#315fe0,#6449cb)}
.admin-nav-button span{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px}
.admin-nav-panel{min-width:0}.admin-nav-panel.hidden{display:none!important}
.admin-nav-panel[data-admin-panel="add"] .admin-layout{display:block}
.admin-nav-panel[data-admin-panel="add"] .product-editor,.admin-nav-panel .product-list-card{width:100%;max-width:none}
@media(max-width:650px){.admin-section-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}.admin-nav-button{padding:10px 8px;font-size:13px}}


/* Panel administrativo: navegación oscura, profundidad 3D y neón controlado. */
html[data-theme="dark"] .admin-section-nav,
.admin-header ~ main .admin-section-nav,
.admin-section-nav {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 10px;
  gap: 10px;
  border: 1px solid rgba(91, 124, 255, .42) !important;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(17, 29, 54, .98), rgba(10, 17, 34, .98)) !important;
  box-shadow: 0 8px 0 rgba(4, 8, 20, .72), 0 15px 28px rgba(0, 0, 0, .28), 0 0 22px rgba(60, 91, 255, .10), inset 0 1px 0 rgba(255,255,255,.07);
}
.admin-nav-button {
  position: relative;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid rgba(107, 137, 196, .35) !important;
  border-radius: 12px;
  color: #c9d7f5 !important;
  background: linear-gradient(180deg, rgba(31, 46, 77, .95), rgba(18, 29, 52, .98)) !important;
  box-shadow: 0 4px 0 #080f20, 0 7px 13px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07);
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.admin-nav-button:hover {
  transform: translateY(-2px);
  border-color: rgba(70, 220, 255, .78) !important;
  color: #fff !important;
  box-shadow: 0 6px 0 #080f20, 0 10px 18px rgba(0,0,0,.3), 0 0 15px rgba(44, 211, 255, .16);
  filter: brightness(1.1);
}
.admin-nav-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #080f20, inset 0 2px 5px rgba(0,0,0,.28);
}
.admin-nav-button.active {
  color: #fff !important;
  border-color: rgba(75, 224, 255, .82) !important;
  background: linear-gradient(120deg, #1766d7 0%, #4a4be0 55%, #773ce0 100%) !important;
  box-shadow: 0 5px 0 #182d7c, 0 9px 17px rgba(40, 73, 225, .35), 0 0 18px rgba(75, 106, 255, .3), inset 0 1px 0 rgba(255,255,255,.25);
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.admin-nav-button.active:hover {
  box-shadow: 0 6px 0 #182d7c, 0 11px 20px rgba(40, 73, 225, .4), 0 0 22px rgba(58, 204, 255, .25), inset 0 1px 0 rgba(255,255,255,.3);
}
.admin-nav-button span {
  color: #dffaff;
  border: 1px solid rgba(126, 224, 255, .2);
  background: linear-gradient(145deg, rgba(57, 86, 145, .75), rgba(25, 43, 80, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.admin-nav-button.active span {
  color: #fff;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.24);
}
@media(max-width:650px) {
  .admin-section-nav { gap: 8px; padding: 9px; }
  .admin-nav-button { min-height: 43px; padding: 9px 8px; font-size: 12px; }
}


/* Selector de colores del panel: una sola definición base, con detalles refinados en theme-ui.css. */
.admin-add-color-slot { display:flex; flex-direction:column; align-items:stretch; gap:8px; min-width:0; padding:0 0 2px; }
.admin-add-color-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; width:100%; }
.admin-add-color-caption { color:var(--muted,#9aaaca); font-size:12px; font-weight:800; letter-spacing:.025em; }
.admin-add-color-heading .button { width:auto; min-height:36px; padding:7px 11px; border-radius:10px; font-size:12px; flex:0 0 auto; }
.admin-add-color-slot .quick-color-palette { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; width:100%; max-width:100%; min-width:0; padding:10px; border:1px solid var(--border,#334567); border-radius:12px; background:var(--surface,#101a30); }
.admin-add-color-slot .quick-color-palette[hidden] { display:none !important; }
.quick-color-search-label { display:flex; flex-direction:column; gap:5px; width:100%; min-width:0; font-size:12px; }
.quick-color-search-label input { width:100%; min-width:0; min-height:36px; padding:7px 9px; font-size:13px; }
.quick-color-swatches { display:grid; grid-template-columns:repeat(auto-fit,minmax(72px,1fr)); align-items:start; gap:5px; width:100%; max-height:230px; min-width:0; overflow:auto; padding:1px; }
.admin-add-color-slot .quick-color-swatch { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; min-width:0; min-height:45px; gap:4px; padding:5px 3px; border:1px solid transparent; border-radius:8px; color:var(--text,#e8eefc); background:transparent; cursor:pointer; }
.admin-add-color-slot .quick-color-swatch:hover,
.admin-add-color-slot .quick-color-swatch:focus-visible { border-color:var(--accent,#536dfe); background:rgba(82,105,255,.12); outline:2px solid rgba(127,156,255,.35); outline-offset:1px; }
.admin-add-color-slot .quick-color-swatch.is-selected { border-color:var(--accent,#536dfe); background:rgba(84,112,220,.13); }
.admin-add-color-slot .quick-color-dot { display:block; width:20px; height:20px; flex:0 0 20px; border:2px solid rgba(255,255,255,.68); border-radius:50%; background:var(--quick-color); }
.admin-add-color-slot .quick-color-name { max-width:100%; overflow-wrap:anywhere; white-space:normal; text-align:center; font-size:10px; line-height:1.2; }
.quick-color-code { font:9px ui-monospace,monospace; color:#8fa3c7; }
.quick-color-no-results { grid-column:1/-1; margin:4px; color:#aab9d5; font-size:11px; }
.quick-color-status { margin:0; color:var(--muted,#9aaaca); font-size:11px; line-height:1.4; }
.base-color-manager { display:block; width:100%; min-width:0; }
.base-color-manager .variant-base-group { display:block; width:100%; margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
.base-color-manager .variant-base-group > .variant-config-group-heading,
.base-color-manager .variant-base-group > .variant-config-fields { display:none !important; }
.base-color-manager .variant-base-group .variant-color-section > .variant-add-color { display:none !important; }
.base-color-manager .variant-base-group .variant-color-section { display:grid; grid-template-columns:minmax(0,1fr); width:100%; min-width:0; margin-top:8px; padding-top:8px; }
.base-color-manager .variant-base-group .variant-color-section-title { margin:0; }
.base-color-manager .variant-base-group .variant-color-section .variant-color-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr)); align-items:start; gap:12px; width:100%; min-width:0; }
.base-color-manager .variant-base-group .variant-color-section .variant-color-list > .variants-empty-hint { grid-column:1/-1; margin:0; padding:9px 10px; border:1px dashed rgba(120,148,207,.34); border-radius:10px; color:var(--muted,#9aaaca); font-size:11px; }
.inline-color-card { min-width:0; margin:0; padding:8px 9px; border:1px solid rgba(105,132,192,.35); border-radius:12px; background:linear-gradient(145deg,rgba(23,39,70,.56),rgba(14,24,44,.64)); box-shadow:0 3px 0 rgba(4,9,22,.22),inset 0 1px 0 rgba(255,255,255,.035); }
.inline-color-main { display:grid; grid-template-columns:24px minmax(0,1fr) 42px 30px; align-items:end; gap:7px; min-width:0; }
.inline-color-dot { align-self:center; display:block; width:22px; height:22px; border:2px solid rgba(255,255,255,.78); border-radius:50%; background:var(--inline-color,#454952); box-shadow:0 2px 5px rgba(0,0,0,.32),0 0 0 2px rgba(106,132,210,.12); }
.inline-color-name-field,.inline-color-tone-field { display:flex; flex-direction:column; gap:4px; min-width:0; margin:0; color:var(--muted,#aebdda); font-size:12px; font-weight:750; }
.inline-color-name-field input { width:100%; min-width:0; min-height:34px; padding:6px 8px !important; font-size:13px; }
.inline-color-tone-field input[type="color"] { display:block; width:42px; height:34px; padding:3px; border:1px solid rgba(116,143,207,.45); border-radius:9px; background:rgba(9,18,36,.9); cursor:pointer; }
.inline-color-remove { min-width:30px; min-height:33px; padding:3px; align-self:end; border-radius:8px; }
.inline-color-details { margin-top:7px; border-top:1px solid rgba(116,143,207,.16); padding-top:5px; }
.inline-color-details > summary { color:#8fbaff; font-size:12px; font-weight:750; cursor:pointer; list-style-position:inside; }
.inline-color-details[open] > summary { margin-bottom:9px; }
.inline-color-details .variant-color-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; }
.inline-color-details .variant-color-fields > label { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:12px; }
.inline-color-details .variant-image-label { grid-column:1/-1; }
.inline-color-details .variant-image-preview { min-height:42px; gap:6px; padding:5px; }
.inline-color-details .variant-image-preview img { width:45px; height:45px; flex-basis:45px; }
.inline-color-details .admin-file-picker { width:auto; align-self:flex-start; min-height:33px; padding:6px 9px; font-size:11px !important; }
.inline-color-details .color-row-status { margin:5px 0 0; font-size:11px; }
.variant-config-group:not(.variant-base-group) .variant-color-list { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.variant-config-group:not(.variant-base-group) .inline-color-main { grid-template-columns:24px minmax(0,1fr) 42px 30px; }
@media(max-width:650px) {
  .admin-add-color-slot { gap:7px; }
  .admin-add-color-heading { align-items:flex-start; }
  .quick-color-palette { gap:5px; padding:7px; }
  .quick-color-swatches { grid-template-columns:repeat(auto-fit,minmax(58px,1fr)); }
  .admin-add-color-slot .quick-color-dot { width:20px; height:20px; }
  .base-color-manager .variant-base-group .variant-color-section .variant-color-list { grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); }
  .inline-color-card { padding:7px; }
  .inline-color-main { grid-template-columns:22px minmax(0,1fr) 38px 28px; gap:5px; }
  .inline-color-dot { width:20px; height:20px; }
  .inline-color-name-field input { min-height:32px; padding:5px 6px !important; font-size:12px; }
  .inline-color-tone-field input[type="color"] { width:38px; height:32px; }
}

/* Product analytics dashboard */
.dashboard-analytics-widget { grid-column: 1 / -1; }
.dashboard-analytics-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0 8px; }
.dashboard-analytics-summary > div { display:flex; flex-direction:column; gap:7px; padding:16px 18px; border:1px solid var(--line,rgba(130,155,200,.22)); border-radius:14px; background:linear-gradient(145deg,rgba(65,100,180,.13),rgba(17,28,49,.12)); }
.dashboard-analytics-summary span { color:var(--muted,#8ea1c1); font-size:.82rem; }
.dashboard-analytics-summary strong { font:800 1.8rem/1.1 Manrope,sans-serif; color:var(--text,#edf3ff); }
.dashboard-top-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:14px; }
.dashboard-top-product { display:flex; align-items:center; gap:12px; min-width:0; padding:12px; border:1px solid var(--line,rgba(130,155,200,.22)); border-radius:12px; background:rgba(8,17,34,.22); }
.dashboard-top-product-rank { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:9px; color:#b7c9ff; background:rgba(79,112,220,.18); font-weight:800; }
.dashboard-top-product-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.dashboard-top-product-info strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-top-product-info small { color:var(--muted,#8ea1c1); }
.dashboard-top-product-stats { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; color:var(--muted,#9aacca); font-size:.78rem; }
.dashboard-top-product-stats b { color:var(--text,#edf3ff); }
@media (max-width:700px) { .dashboard-analytics-summary,.dashboard-top-products { grid-template-columns:1fr; } .dashboard-top-product { flex-wrap:wrap; } }


/* Campo de especificaciones compacto con altura automática según el contenido. */
.admin-specs-field { grid-column:span 1; min-width:0; }
.admin-form #product-specs { display:block; width:100%; min-height:66px; height:auto; resize:none; overflow-y:hidden; line-height:1.55; }
@media(max-width:700px) { .admin-specs-field { grid-column:1 / -1; } }


/* JB TECH · legibilidad de colores y CTA de ayuda accesible. */
.product-card-colors,.product-card-color-list,.product-card-color-option { min-width:0; max-width:100%; }
.product-card-color-list { display:flex; flex-wrap:wrap; align-items:flex-start; gap:5px 8px; }
.product-card-color-option { display:inline-flex; flex:0 1 auto; align-items:center; gap:6px; }
.product-card-color-name { display:inline-block; min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; word-break:normal; line-height:1.3; }
.hero-ctas { display:flex; flex-wrap:wrap; align-items:stretch; gap:12px; }
.hero-ctas > .button-primary { flex:0 1 380px; width:min(100%,380px); }
.catalog-help-cta { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:20px; margin:34px 0 8px; padding:clamp(18px,3vw,30px); border:1px solid #d8e0f3; border-radius:18px; color:#1c2a46; background:linear-gradient(120deg,#fff 0%,#f2f6ff 58%,#eaf7ff 100%); box-shadow:0 10px 28px rgba(39,62,120,.07); }
.catalog-help-mark { display:grid; place-items:center; width:58px; height:58px; border:1px solid rgba(49,94,232,.28); border-radius:16px; color:#e9faff; background:linear-gradient(135deg,#08bcd8,#315ee8 58%,#7b3ce1); box-shadow:0 4px 0 #263c91,0 9px 18px rgba(49,94,232,.18); font-family:Manrope,sans-serif; font-size:22px; font-weight:800; }
.catalog-help-copy .eyebrow { margin-bottom:6px; }
.catalog-help-copy h2 { margin:0; font-size:clamp(18px,2.3vw,25px); line-height:1.25; }
.catalog-help-copy > p:last-child { margin:7px 0 0; color:#596783; font-size:13px; line-height:1.65; }
.catalog-help-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px; padding:12px 17px; border:1px solid #15966d; border-radius:12px; color:#fff !important; background:linear-gradient(120deg,#168f69,#0b7657); box-shadow:0 4px 0 #07513d,0 8px 16px rgba(8,115,82,.18); font-size:12px; font-weight:800; text-decoration:none; white-space:nowrap; transition:transform .18s,filter .18s,box-shadow .18s; }
.catalog-help-button:hover { transform:translateY(-2px); filter:brightness(1.06); }
html[data-theme="dark"] .catalog-help-cta { border-color:#2f4268; color:#edf3ff; background:linear-gradient(120deg,#101c32,#14274a 60%,#102a38); box-shadow:0 12px 28px rgba(0,0,0,.2); }
html[data-theme="dark"] .catalog-help-copy > p:last-child { color:#b8c6e1; }
html[data-theme="dark"] .catalog-help-cta .eyebrow { color:#91b9ff; }
@media(max-width:760px) {
  .hero-ctas > .button-primary { flex:1 1 100%; width:100%; }
  .catalog-help-cta { grid-template-columns:auto minmax(0,1fr); gap:13px; padding:17px; }
  .catalog-help-mark { width:46px; height:46px; border-radius:13px; font-size:19px; }
  .catalog-help-button { grid-column:1/-1; width:100%; white-space:normal; }
}
@media(max-width:390px) { .catalog-help-cta { grid-template-columns:minmax(0,1fr); text-align:center; } .catalog-help-mark { margin:0 auto; } }


/* JB TECH · mobile product-card density without hiding product information. */
@media (max-width:760px) {
  .product-grid { gap:9px 10px; }
  .product-card { border-radius:12px; }
  .product-image { aspect-ratio:0.92 / 1; height:auto; }
  .product-card-content { gap:5px; padding:9px; }
  .product-card h3 { font-size:13px; line-height:1.3; }
  .product-card-capacity { margin-bottom:5px; }
  .product-card .product-price { font-size:clamp(16px,4.2vw,20px); }
  .product-card .product-view-button { min-height:38px; padding:8px 7px; }
}
@media (max-width:380px) {
  .product-grid { gap:8px; }
  .product-card-content { padding:8px; }
  .product-card h3 { font-size:12.5px; }
  .product-card .product-view-button { font-size:11.5px; }
}


/* 2026-10-24: priorizar opciones de compra antes de la descripción extensa. */
.dialog-product-description { margin-top:18px; }
#variant-options-area + .dialog-product-description { margin-top:22px; }
@media (max-width:600px) {
  .dialog-detail { padding:22px 20px 28px; }
  .dialog-product-description { margin-top:18px; }
}


/* CAT-LOGO ADMIN · RAM/almacenamiento y colores dentro de la configuración principal. */
.primary-config-slot {
  width:100%;
  min-width:0;
  margin:14px 0 16px;
}
.primary-config-slot:empty { display:none !important; }
.primary-config-slot .variant-base-group {
  display:block;
  width:100%;
  margin:0;
  padding:12px;
  border:1px solid var(--accent,#5268f5);
  border-radius:15px;
  background:var(--surface,rgba(89,112,194,.055));
  box-shadow:0 5px 16px rgba(28,43,80,.06);
}
.primary-config-slot .variant-config-group-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
  padding:2px 2px 10px;
  border-bottom:1px solid rgba(119,143,220,.22);
}
.primary-config-slot .variant-config-group-heading > div {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.primary-config-slot .variant-config-group-heading strong {
  color:var(--ink);
  font-size:15px;
  line-height:1.3;
}
.primary-config-slot .variant-config-group-heading small {
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.primary-config-slot .variant-config-fields {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:12px 0 14px;
}
.primary-config-slot .variant-config-fields label {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
}
.primary-config-slot .variant-config-fields input,
.primary-config-slot .variant-config-fields select { width:100%; min-width:0; }
.primary-config-slot .variant-color-section {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  width:100%;
  min-width:0;
  margin-top:8px;
  padding-top:12px;
  border-top:1px solid rgba(119,143,220,.2);
}
.primary-config-slot .variant-color-section-title {
  margin:0;
  color:var(--ink);
  font-size:13px;
  font-weight:800;
}
.primary-config-slot .variant-color-list {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));
  align-items:start;
  gap:12px;
  width:100%;
  min-width:0;
}
.primary-config-slot .variant-color-list > .variants-empty-hint {
  grid-column:1/-1;
  margin:0;
  padding:10px 12px;
  border:1px dashed rgba(120,148,207,.4);
  border-radius:10px;
  color:var(--muted,#9aaaca);
  font-size:12px;
  line-height:1.5;
}
.primary-config-slot .variant-add-color {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  justify-self:start;
  min-height:40px;
  padding:9px 14px;
  border-radius:10px;
  font-size:13px;
}
@media(max-width:540px) {
  .primary-config-slot { margin:10px 0 13px; }
  .primary-config-slot .variant-base-group { padding:10px; border-radius:13px; }
  .primary-config-slot .variant-config-fields { grid-template-columns:minmax(0,1fr); gap:10px; }
  .primary-config-slot .variant-config-group-heading strong { font-size:14px; }
  .primary-config-slot .variant-config-group-heading small { font-size:11px; }
  .primary-config-slot .variant-color-list { grid-template-columns:minmax(0,1fr); gap:9px; }
  .primary-config-slot .variant-add-color { width:100%; }
}


/* CAT-LOGO · selector independiente para la vista consolidada del dashboard. */
.dashboard-overview-heading {
  align-items:flex-end;
  gap:18px;
}
.dashboard-overview-controls {
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
  min-width:0;
}
.dashboard-scope-control {
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:220px;
}
.dashboard-scope-control label {
  color:var(--muted);
  font-size:12px;
  font-weight:750;
  letter-spacing:.025em;
}
.dashboard-scope-control select {
  width:100%;
  min-height:42px;
  padding:9px 34px 9px 12px;
  border:1px solid var(--border);
  border-radius:11px;
  color:var(--ink);
  background:var(--surface);
  font:inherit;
  font-size:13px;
  font-weight:700;
}
.dashboard-overview-controls .dashboard-updated {
  align-self:center;
  white-space:nowrap;
}
@media(max-width:760px) {
  .dashboard-overview-heading {
    align-items:stretch;
    flex-direction:column;
    gap:12px;
  }
  .dashboard-overview-controls {
    align-items:stretch;
    flex-direction:column;
    gap:9px;
  }
  .dashboard-scope-control { width:100%; min-width:0; }
  .dashboard-overview-controls .dashboard-updated { align-self:flex-start; white-space:normal; }
}

/* CAT-LOGO ADMIN · corregir la tarjeta de configuración principal en el tema oscuro. */
html[data-theme="dark"] .primary-config-slot .variant-base-group {
  color:#edf3ff !important;
  border-color:#475b86 !important;
  background:linear-gradient(145deg,#182641 0%,#131e34 72%,#1b2440 100%) !important;
  box-shadow:0 7px 20px rgba(0,0,0,.24),inset 0 0 0 1px rgba(170,190,244,.05) !important;
}
html[data-theme="dark"] .primary-config-slot .variant-config-group-heading strong,
html[data-theme="dark"] .primary-config-slot .variant-config-fields label,
html[data-theme="dark"] .primary-config-slot .variant-color-section-title {
  color:#edf3ff !important;
}
html[data-theme="dark"] .primary-config-slot .variant-config-group-heading small {
  color:#b7c6e3 !important;
}
html[data-theme="dark"] .primary-config-slot .variant-config-group-heading,
html[data-theme="dark"] .primary-config-slot .variant-color-section {
  border-color:rgba(145,166,219,.25) !important;
}
html[data-theme="dark"] .primary-config-slot .variant-color-list > .variants-empty-hint {
  color:#c2cee8 !important;
  border-color:#465980 !important;
  background:rgba(9,17,32,.3) !important;
}
html[data-theme="dark"] .primary-config-slot .variant-config-fields input,
html[data-theme="dark"] .primary-config-slot .variant-config-fields select {
  color:#edf3ff !important;
  border-color:#405274 !important;
  background:#0e172b !important;
}
html[data-theme="dark"] .primary-config-slot .variant-config-fields input::placeholder {
  color:#8292b1 !important;
}
html[data-theme="light"] .primary-config-slot .variant-base-group {
  color:#1d2b49;
  border-color:#8295d0;
  background:linear-gradient(145deg,#ffffff 0%,#f7f9ff 72%,#f1f4ff 100%);
}


/* CAT-LOGO · reducir el espacio entre la bienvenida y el resumen en pantallas pequeñas. */
@media (max-width:760px) {
  .admin-welcome {
    margin-bottom:12px;
    padding-bottom:18px;
  }
  .admin-welcome + .dashboard-overview {
    margin-top:0;
  }
}


/* Acciones compactas de productos: botones solo con iconos, sin perder accesibilidad. */
.admin-product-buttons {
  align-items: center;
  gap: 8px;
}

.admin-mini-button.admin-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 9px;
}

.admin-icon-button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-mini-button.admin-icon-button.danger {
  border-color: #6b3d55;
  color: #ffb7c1;
  background: #382133;
  box-shadow: 0 2px 0 #241526;
}

.admin-mini-button.admin-icon-button.danger:hover {
  border-color: #a45a78;
  color: #fff0f3;
  background: #51283d;
}

.admin-mini-button.admin-icon-button:focus-visible {
  outline: 2px solid #91a8ff;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .admin-product-buttons {
    gap: 7px;
  }

  .admin-mini-button.admin-icon-button {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }
}


/* Flujo de estados del formulario y acciones compactas */
.workflow-form-actions{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap}
.workflow-action{width:46px;height:46px;min-width:46px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:13px;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.workflow-action svg,.admin-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.workflow-action:hover,.admin-icon-button:hover{transform:translateY(-2px);box-shadow:0 5px 13px rgba(15,23,42,.14)}
.workflow-action:focus-visible,.admin-icon-button:focus-visible{outline:3px solid rgba(59,130,246,.45);outline-offset:2px}
.workflow-action-save{color:#fff;background:#2563eb;border-color:#1d4ed8}
.workflow-action-publish{color:#fff;background:#15803d;border-color:#166534}
.workflow-action-draft{color:#fff;background:#7c3aed;border-color:#6d28d9}
.workflow-action-exclusive{color:#9a6700;background:#fff7cc;border-color:#eab308}
.workflow-action-exclusive.is-active,.admin-icon-button.is-exclusive{color:#854d0e;background:#facc15;border-color:#eab308}
.workflow-action-cancel{color:#b91c1c;background:#fff1f2;border-color:#fecdd3}
.admin-icon-button{width:40px;height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px}
.admin-icon-button.danger{color:#b91c1c}
@media(max-width:600px){.workflow-form-actions{gap:10px}.workflow-action{width:44px;height:44px;min-width:44px}.admin-icon-button{width:42px;height:42px;min-width:42px}}


/* Filtros adicionales de marca y ordenamiento */
.catalog-extra-filters{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.85fr);gap:14px;margin:0 0 20px;align-items:end}
.catalog-control-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--muted,#64748b);font-size:12px;font-weight:700}
.catalog-control-field input,.catalog-control-field select{width:100%;min-width:0;min-height:43px;padding:10px 12px;border:1px solid var(--border,#dfe5f2);border-radius:10px;background:var(--surface,#fff);color:var(--text,#1f2937);font:inherit;font-size:14px;outline-offset:2px}
.catalog-control-field input:focus,.catalog-control-field select:focus{border-color:var(--primary,#4f46e5);outline:2px solid color-mix(in srgb,var(--primary,#4f46e5) 18%,transparent)}
@media(max-width:600px){.catalog-extra-filters{grid-template-columns:1fr;gap:10px;margin-bottom:16px}.catalog-control-field input,.catalog-control-field select{min-height:45px}}

.live-search-wrap{position:relative;width:100%;min-width:0}
.live-search-wrap>input{width:100%}
.live-search-menu{position:absolute;z-index:50;top:calc(100% + 5px);left:0;right:0;max-height:240px;overflow-y:auto;border:1px solid var(--border,#dfe5f2);border-radius:10px;background:var(--surface,#fff);box-shadow:0 12px 28px rgba(20,28,45,.18)}
.live-search-menu[hidden]{display:none}
.live-search-option{display:block;width:100%;padding:11px 13px;border:0;border-bottom:1px solid var(--border,#dfe5f2);background:transparent;color:var(--text,#1f2937);text-align:left;font:inherit;font-size:14px;cursor:pointer}
.live-search-option:last-child{border-bottom:0}
.live-search-option:hover,.live-search-option:focus{background:var(--surface-muted,#f3f5fb);outline:0}

/* Compact brand dropdown: remains closed until the customer taps the control. */
.brand-filter-wrap{position:relative;width:100%;min-width:0}
.brand-filter-toggle,.brand-filter-search{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--border,#dfe5f2);border-radius:10px;background:var(--surface,#fff);color:var(--text,#1f2937);font:inherit;font-size:14px}
.brand-filter-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;text-align:left;cursor:pointer}
.brand-filter-toggle:focus-visible,.brand-filter-search:focus-visible,.brand-filter-option:focus-visible{outline:2px solid var(--primary,#4f46e5);outline-offset:2px}
.brand-filter-menu{position:absolute;z-index:90;top:calc(100% + 6px);left:0;right:0;min-width:180px;padding:10px;border:1px solid var(--border,#dfe5f2);border-radius:12px;background:var(--surface,#fff);color:var(--text,#1f2937);box-shadow:0 14px 34px rgba(10,20,40,.24)}
.brand-filter-menu[hidden]{display:none!important}
.brand-filter-search{padding:9px 11px}
.brand-filter-options{max-height:250px;overflow-y:auto;margin-top:8px}
.brand-filter-option{display:block;width:100%;padding:11px 10px;border:0;border-bottom:1px solid var(--border,#dfe5f2);background:transparent;color:var(--text,#1f2937);text-align:left;font:inherit;font-size:14px;cursor:pointer}
.brand-filter-option:last-child{border-bottom:0}
.brand-filter-option:hover,.brand-filter-option[aria-selected="true"]{background:var(--surface-muted,#eef2fb)}
.brand-filter-empty{margin:8px;padding:8px;color:var(--muted,#64748b);font-size:13px}
