:root {
  --blue-dark: #0053a6;
  --blue: #0078d4;
  --blue-soft: #e5f2ff;
  --green: #22c55e;
  --bg-page: #f5f7fb;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.06);
  --transition-fast: 0.16s ease-out;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.max-width { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* TOP STRIP */
.top-strip {
  background: var(--blue-dark);
  color: #e5f0ff;
  font-size: 11px;
}
.top-strip-inner {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-strip-group {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

/* Ajustes top strip en móvil */
@media (max-width: 640px) {
  .top-strip-inner {
    height: auto;
    padding: 6px 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .top-strip-group {
    gap: 10px;
  }
  .top-strip-group:nth-child(2) {
    font-size: 10px;
    opacity: 0.9;
  }
}

/* HEADER */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}
.logo-text-main { font-weight: 700; font-size: 20px; }
.logo-text-sub { font-size: 11px; color: var(--text-muted); }

/* Buscador */
.search-box {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
  border: 1px solid #e5e7eb;
}
.search-box input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  outline: none;
  padding: 8px 6px;
  color: var(--text-main);
}
.search-box button {
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Acciones derecha */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--text-muted);
}
.header-actions .small-link {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.cart-pill span.count {
  background: var(--blue);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
}

/* HEADER: tablet */
@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 10px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .search-box {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* HEADER: móvil */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding-top: 8px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .logo-area {
    width: 100%;
    justify-content: space-between;
  }

  .logo-text-main {
    font-size: 18px;
  }
  .logo-text-sub {
    font-size: 10px;
  }

  .search-box {
    width: 100%;
    order: 2;
  }

  .header-actions {
    width: 100%;
    order: 3;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  /* Ocultar el texto de atención al cliente en móvil para no saturar */
  .header-actions .small-link:first-child {
    display: none;
  }

  .cart-pill {
    margin-left: auto;
  }
}

/* NAV BAR */
.nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.nav-inner {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-link strong { color: var(--text-main); }
.nav-link a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}
.nav-link a:hover strong {
  color: var(--blue-dark);
}

/* NAV: tablet / móvil – scroll horizontal tipo “píldoras” */
@media (max-width: 880px) {
  .nav-inner {
    height: auto;
    padding: 6px 0 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link,
  .nav-inner > div {
    flex: 0 0 auto;
  }

  .nav-link a,
  .nav-inner > div > a {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #f9fafb;
    font-size: 12px;
  }

  .nav-link a:hover {
    background: #eef2ff;
    border-color: #d1e3ff;
  }
}


/* MAIN CONTENT */
main { flex: 1; padding: 18px 0 32px; }

/* HERO GRID */
.hero-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr;
  gap: 16px;
  margin-bottom: 26px;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero-main {
  background: linear-gradient(135deg, #dcebfd, #f5f7fb);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
@media (max-width: 720px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero-title {
  font-size: 22px;
  margin: 0 0 6px;
}
.hero-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hero-main button {
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  background: var(--blue-dark);
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
}
.hero-badge {
  font-size: 11px;
  color: #083061;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-right-box {
  text-align: right;
  font-size: 11px;
  color: #1f2937;
}
.hero-right-box strong {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

/* hero side tiles */
.hero-side {
  display: grid;
  grid-template-rows: 1.2fr 1fr;
  gap: 16px;
}
@media (max-width: 1024px) {
  .hero-side {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
}
.tile {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}
.tile-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.tile-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.tile button {
  align-self: flex-start;
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  background: var(--green);
  color: #ffffff;
}

.tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--blue-dark);
  margin-top: 8px;
}
.tile-links a { cursor: pointer; }

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
@media (max-width: 960px) { .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px) { .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .category-grid { grid-template-columns: minmax(0,1fr); } }

.cat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 12px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}
.cat-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  border-color: #d1e3ff;
}
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--blue-dark);
}
.cat-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.cat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* FEATURED PRODUCTS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.section-header h2 {
  margin: 0;
  font-size: 18px;
}
.section-header p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.section-actions {
  font-size: 12px;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1040px) { .products-row { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 840px) { .products-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .products-row { grid-template-columns: minmax(0,1fr); } }

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 10px;
  font-size: 12px;
}
.product-img {
  background: #f9fafb;
  border-radius: var(--radius-md);
  height: 120px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
}
.product-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  min-height: 32px;
}
.product-ref {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.product-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.badge {
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 10px;
}
.delivery {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}
.price {
  font-size: 12px;
}
.price strong {
  display: block;
  font-size: 16px;
}
.btn-buy {
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  background: var(--green);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FOOTER */
footer {
  margin-top: 26px;
  padding: 16px 0 22px;
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main ocupa todo el alto disponible */
main {
  flex: 1;
}

/* footer al fondo */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-muted);
  padding: 16px 0 22px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}
.nav-link a:hover strong {
  color: var(--primary-dark);
}


/* PROMO ESTUDIO */
.promo-estudio {
  background: #f0f9ff;
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
  margin-top: 32px;
}

.promo-estudio-inner {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .promo-estudio-inner {
    grid-template-columns: 1fr;
  }
}

.promo-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--text-main);
}

.promo-info p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.promo-info ul {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-main);
}

.promo-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e3a8a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 6px;
}

.promo-actions {
  margin-top: 10px;
}

.promo-btn {
  background: var(--blue-dark);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promo-btn:hover {
  background: var(--blue);
}

.promo-side {
  display: flex;
  align-items: center;
}

.promo-side-box {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.promo-side-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.promo-side-box p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.promo-side-box a {
  text-decoration: none;
  color: var(--blue-dark);
  font-size: 12px;
}

/* PROMO ESTUDIO */
.promo-estudio {
  background: #f0f9ff;
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
  margin-top: 32px;
}

.promo-estudio-inner {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .promo-estudio-inner {
    grid-template-columns: 1fr;
  }
}

.promo-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--text-main);
}

.promo-info p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.promo-info ul {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-main);
}

.promo-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e3a8a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 6px;
}

.promo-actions {
  margin-top: 10px;
}

.promo-btn {
  background: var(--blue-dark);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promo-btn:hover {
  background: var(--blue);
}

.promo-side {
  display: flex;
  align-items: center;
}

.promo-side-box {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.promo-side-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.promo-side-box p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.promo-side-box a {
  text-decoration: none;
  color: var(--blue-dark);
  font-size: 12px;
}

/* PROMO ESTUDIO */
.promo-estudio {
  background: #f0f9ff;
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
  margin-top: 32px;
}

.promo-estudio-inner {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .promo-estudio-inner {
    grid-template-columns: 1fr;
  }
}

.promo-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--text-main);
}

.promo-info p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.promo-info ul {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-main);
}

.promo-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e3a8a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 6px;
}

.promo-actions {
  margin-top: 10px;
}

.promo-btn {
  background: var(--blue-dark);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.promo-btn:hover {
  background: var(--blue);
}

.promo-side {
  display: flex;
  align-items: center;
}

.promo-side-box {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}
.promo-side-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.promo-side-box p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.promo-side-box a {
  text-decoration: none;
  color: var(--blue-dark);
  font-size: 12px;
}

/* PROMO ESTUDIO – BLOQUE ESTUDIO ELÉCTRICO */
.promo-estudio {
  margin-top: 40px;
  padding: 36px 0 40px;
  background: radial-gradient(circle at top left, #e0f2fe 0, #eef2ff 30%, #f9fafb 70%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.promo-estudio-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .promo-estudio-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.promo-col-left h2 {
  margin: 4px 0 6px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-main);
}
.promo-col-left h2 span {
  display: block;
  font-weight: 500;
  font-size: 18px;
  color: var(--text-muted);
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 500;
}

.promo-lead {
  margin: 6px 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 540px;
}

/* Features */
.promo-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
@media (min-width: 780px) {
  .promo-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.promo-feature {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(4px);
}
.pf-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  font-size: 14px;
}
.pf-title {
  font-size: 13px;
  font-weight: 600;
}
.pf-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* Botones */
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 6px;
}

.promo-btn-primary,
.promo-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.promo-btn-primary {
  background: var(--blue-dark);
  color: #ffffff;
  border: none;
}
.promo-btn-primary:hover {
  background: var(--blue);
}

.promo-btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border: 1px solid rgba(148, 163, 184, 0.7);
}
.promo-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.8);
}

.promo-small-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Columna derecha */
.promo-col-right {
  display: flex;
  align-items: stretch;
}

.promo-side-card {
  width: 100%;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #0f172a, #020617 60%);
  color: #e5e7eb;
  padding: 16px 16px 14px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.32);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.psc-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.psc-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #eff6ff;
  font-size: 18px;
}
.psc-title {
  font-size: 14px;
  font-weight: 600;
}
.psc-sub {
  font-size: 11px;
  color: #9ca3af;
}

.psc-body p {
  margin: 2px 0 6px;
  font-size: 12px;
  color: #e5e7eb;
}
.psc-body ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #e5e7eb;
}
.psc-body li {
  margin-bottom: 3px;
}

/* Métricas */
.psc-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.psc-chip {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.psc-chip-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}
.psc-chip-value {
  font-size: 11px;
  color: #e5e7eb;
}

/* Link final */
.psc-link {
  margin-top: 6px;
  font-size: 12px;
  color: #bfdbfe;
  text-decoration: none;
}
.psc-link:hover {
  text-decoration: underline;
}

/* Ajuste logo + marca en móvil */
@media (max-width: 600px) {

  /* Compactar cabecera */
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ALINEAR TODO A LA IZQUIERDA */
    gap: 10px;
  }

  /* Logo + texto MUY pegado */
  .logo-area {
    display: flex;
    align-items: center;
    gap: 6px; /* antes 10–14px → ahora mucho menos */
    width: 100%;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
    border-radius: 8px;
  }

  .logo-text-main {
    font-size: 17px;
    line-height: 1.1;
  }

  .logo-text-sub {
    font-size: 10px;
    line-height: 1.1;
    margin-top: 1px;
  }

  /* Buscador más cerca del logo */
  .search-box {
    margin-top: -2px;
  }

  /* Acciones más compactas y a la derecha */
  .header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }
}


/* ===== FIX CABECERA < 766px ===== */
@media (max-width: 766px) {

  /* Cabecera en columna pero estable */
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* todo alineado a la izquierda */
    gap: 8px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  /* LOGO + MARCA: una sola línea, sin deformarse */
  .logo-area {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;         /* evita que el nombre salte abajo */
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }

  .logo-link {
    display: flex;
    align-items: center;
  }

  /* El segundo <a> (texto) en columna, pegado al icono */
  .logo-area .logo-link + .logo-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
    border-radius: 8px;
  }

  .logo-text-main {
    font-size: 18px;
    line-height: 1.1;
  }

  .logo-text-sub {
    font-size: 10px;
    line-height: 1.1;
    margin-top: 1px;
  }

  /* Buscador a ancho completo, pegado debajo del logo */
  .search-box {
    width: 100%;
    margin-top: 2px;
  }

  /* Acciones: login + carrito a la derecha, compactos */
  .header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-size: 11px;
    flex-wrap: nowrap;
  }

  /* Ocultamos “Atención al cliente” en móvil para ahorrar espacio */
  .header-actions .small-link:first-child {
    display: none;
  }

  .cart-pill {
    padding: 5px 10px;
    font-size: 11px;
  }
  .cart-pill span.count {
    padding: 1px 5px;
    font-size: 10px;
  }

  /* Nav tipo chips con scroll horizontal */
  .nav-inner {
    height: auto;
    padding: 6px 0 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .nav-link,
  .nav-inner > div {
    flex: 0 0 auto;
  }

  .nav-link a,
  .nav-inner > div > a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #f9fafb;
    font-size: 12px;
  }
}


/* ===== CABECERA MÓVIL: logo izq, login+carrito dcha, buscador debajo ===== */
@media (max-width: 766px) {

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr); /* col 1: logo, col 2: acciones */
    grid-template-rows: auto auto;             /* fila 1: logo+acciones, fila 2: buscador */
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  /* Logo: fila 1, col 1 */
  .logo-area {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Login + carrito: fila 1, col 2, alineado a la derecha */
  .header-actions {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    flex-wrap: nowrap;
  }

  /* (Opcional) ocultar "Atención al cliente" en móvil */
  .header-actions .small-link:first-child {
    display: none;
  }

  .cart-pill {
    padding: 5px 10px;
    font-size: 11px;
  }
  .cart-pill span.count {
    padding: 1px 5px;
    font-size: 10px;
  }

  /* Buscador: fila 2, ocupa las dos columnas, ancho completo */
  .search-box {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    width: 100%;
    margin-top: 0;
  }

  /* Nav en chips con scroll horizontal (si lo quieres mantener) */
  .nav-inner {
    height: auto;
    padding: 6px 0 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }
  .nav-link,
  .nav-inner > div {
    flex: 0 0 auto;
  }
  .nav-link a,
  .nav-inner > div > a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #f9fafb;
    font-size: 12px;
  }
}
/* ===== CABECERA MÓVIL: Logo izq / Login + Carrito juntos a la derecha ===== */
@media (max-width: 766px) {

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto; /* Izq: logo — Dcha: acciones */
    grid-template-rows: auto auto;  
    align-items: center;
    gap: 8px;
    padding: 8px 0 10px;
  }

  /* LOGO: columna izquierda */
  .logo-area {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* ACCIONES: login + carrito PEGADOS a la derecha */
  .header-actions {
    grid-column: 2 / 3;
    grid-row: 1 / 2;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;       /* separa login y carrito, pero juntos */
    flex-wrap: nowrap;
  }

  /* ocultamos atención al cliente */
  .header-actions .small-link:first-child {
    display: none;
  }

  /* tamaño compacto */
  .cart-pill {
    padding: 5px 10px;
    font-size: 11px;
  }
  .cart-pill .count {
    font-size: 10px;
    padding: 1px 5px;
  }

  /* BUSCADOR en la segunda fila, ancho completo */
  .search-box {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    width: 100%;
  }
}

.nav-link a.active,
.nav-link a.active strong {
  font-weight: 700 !important;
  color: var(--text-main) !important;
}

.nav-link a.active {
  border-bottom: 2px solid var(--blue-dark);
  padding-bottom: 3px;
}


/* ===== PÁGINA CONFIGURADOR POR PASOS ===== */

.wizard-page {
  padding: 20px 0 32px;
}

.wizard-inner {
  padding: 0 16px;
}

/* Hero */
.wizard-hero {
  margin-top: 18px;
  margin-bottom: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.wizard-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #4b5563;
  margin: 0 0 4px;
}

.wizard-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.wizard-lead {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 560px;
}

.wizard-cta-box {
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
}

.wizard-cta-text {
  margin: 0 0 8px;
  font-weight: 600;
}

.wizard-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.wizard-btn-primary:hover {
  background: #1d4ed8;
}

.wizard-cta-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #4b5563;
}

/* Lista de pasos */
.wizard-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}

.wizard-step {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 14px 16px 16px;
}

.wizard-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  margin-bottom: 8px;
}

.wizard-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.wizard-step-body h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.wizard-step-body > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Bloques dentro de cada paso */
.wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wizard-block {
  padding: 10px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}

.wizard-block h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.wizard-block ul {
  margin: 0;
  padding-left: 16px;
}

.wizard-block li {
  margin-bottom: 4px;
}

.wizard-note {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}

/* CTA final */
.wizard-bottom-cta {
  border-radius: 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 14px 16px 18px;
  font-size: 13px;
}

.wizard-bottom-cta h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.wizard-bottom-cta p {
  margin: 0 0 10px;
  color: #4b5563;
}

/* Responsive */
@media (max-width: 880px) {
  .wizard-hero {
    flex-direction: column;
  }
  .wizard-cta-box {
    max-width: 100%;
  }
  .wizard-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 600px) {
  .wizard-hero h1 {
    font-size: 20px;
  }
  .wizard-step-body h2 {
    font-size: 16px;
  }
}

/* ===== WIZARD CONFIGURADOR ELECCONFIG ===== */

.wizard-page {
  padding: 20px 0 32px;
}

.wizard-inner {
  padding: 0 16px;
}

.wizard-hero {
  margin-top: 18px;
  margin-bottom: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.wizard-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b7280;
  margin: 0 0 4px;
}

.wizard-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.wizard-lead {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 560px;
}

.wizard-cta-box {
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
}

.wizard-cta-text {
  margin: 0 0 8px;
  font-weight: 600;
}

.wizard-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.wizard-btn-primary:hover {
  background: #1d4ed8;
}

.wizard-cta-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #4b5563;
}

/* Barra de progreso */

.wizard-progress {
  margin-bottom: 18px;
}

.wizard-progress-track {
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#2563eb,#22c55e);
  transition: width 0.2s ease-out;
}

.wizard-progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: #6b7280;
}

/* Formulario multipaso */

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wizard-step {
  display: none;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(15,23,42,0.06);
  padding: 14px 16px 16px;
}

.wizard-step.active {
  display: block;
}

.wizard-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  margin-bottom: 8px;
}

.wizard-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.wizard-step-body h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.wizard-step-body > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.wizard-block {
  padding: 10px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}

.wizard-block h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.wizard-block label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.wizard-block select,
.wizard-block input[type="number"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  font-size: 13px;
  box-sizing: border-box;
}

.wizard-block input[type="number"] {
  border-radius: 8px;
}

.wizard-note {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}

.wizard-inline-fields label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.wizard-field-margin {
  margin-top: 8px;
}

.wizard-step-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* radio bonito */

.wizard-radio {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 6px;
}

.wizard-radio input {
  margin-top: 2px;
}

.wizard-radio span {
  flex: 1;
}

/* error simple */

.wizard-error {
  border-color: #dc2626 !important;
}

/* Responsive */

@media (max-width: 880px) {
  .wizard-hero {
    flex-direction: column;
  }
  .wizard-cta-box {
    max-width: 100%;
  }
  .wizard-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 600px) {
  .wizard-hero h1 {
    font-size: 20px;
  }
  .wizard-step-body h2 {
    font-size: 16px;
  }
}

#protections-warning {
  margin-left: 4px;
  color: #b45309;   /* ámbar */
  font-weight: 500;
}

.wizard-alert {
  color: #d40000 !important;   /* rojo fuerte */
  font-weight: 600;
}

/* Foster a revisar */

html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

footer {
  margin-top: auto;
}

/* ===== POPUP GUARDAR CONFIGURACIÓN ===== */

.config-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none; /* se muestra con clase .is-visible */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.config-modal-backdrop.is-visible {
  display: flex;
}

.config-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 16px 18px 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  border: 1px solid #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.config-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.config-modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.config-modal-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
}

.config-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.config-modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.config-modal-field label {
  font-size: 12px;
  color: #6b7280;
}

.config-modal-field input,
.config-modal-field select {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

.config-modal-hint {
  font-size: 12px;
  color: #6b7280;
  background: #eff6ff;
  border-radius: 8px;
  padding: 6px 8px;
  border: 1px solid #dbeafe;
}

.config-modal-status {
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.config-modal-status.ok {
  color: #15803d;
}

.config-modal-status.error {
  color: #b91c1c;
}

.config-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Reutilizamos estilos de botones generales si ya existen,
   pero por si acaso dejamos algo básico: */
.config-modal .btn-primary,
.config-modal .btn-secondary {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}

.config-modal .btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
}

.config-modal .btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* ===== POPUP GUARDAR CONFIGURACIÓN ===== */

.config-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.config-modal-backdrop.active {
  display: flex;
}

.config-modal {
  background: #fff;
  border-radius: 14px;
  width: 420px;
  max-width: 95%;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.config-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.config-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.config-modal-field {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.config-modal-field label {
  font-size: 13px;
  margin-bottom: 4px;
}

.config-modal-field input,
.config-modal-field select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.config-modal-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.config-modal-status {
  margin-top: 8px;
  font-size: 13px;
  color: #2563eb;
  min-height: 16px;
}

.config-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.config-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.config-modal-backdrop.active {
  display: flex;
}

.config-modal {
  background: #fff;
  border-radius: 14px;
  width: 420px;
  max-width: 95%;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(15,23,42,0.35);
}

.config-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.config-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.config-modal-field {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.config-modal-field label {
  font-size: 13px;
  margin-bottom: 4px;
}

.config-modal-field input,
.config-modal-field select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.config-modal-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.config-modal-status {
  margin-top: 8px;
  font-size: 13px;
  min-height: 16px;
}

.config-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.addcart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.addcart-modal {
  background: white;
  width: 520px;
  max-width: 90%;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.addcart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.addcart-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.addcart-body {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.addcart-img {
  width: 90px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.addcart-details h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.addcart-price {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-top: 10px;
}

.addcart-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
/* Icono / texto cuenta (invitado) */

.account-trigger-guest{
  display:flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:#1f2937;
  font-size:13px;
}

.account-trigger-guest .account-ico{
  width:26px;
  height:26px;
  border-radius:999px;
  border:2px solid #1d4ed8;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  position:relative;
}

.account-trigger-guest .account-ico::after{
  content:'!';
  position:absolute;
  bottom:-4px;
  right:-4px;
  width:14px;
  height:14px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.account-trigger-text{
  line-height:1.1;
}
.account-trigger-text small{
  font-size:11px;
  color:#6b7280;
}

/* Menú desplegable */

.account-menu{
  position:relative;
}

.account-trigger{
  display:flex;
  align-items:center;
  gap:6px;
  border:none;
  background:transparent;
  cursor:pointer;
  font:inherit;
  color:#1f2937;
}

.account-trigger .account-ico{
  width:26px;
  height:26px;
  border-radius:999px;
  border:2px solid #22c55e;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}

.account-arrow{
  font-size:10px;
  color:#6b7280;
}

/* dropdown */

.account-dropdown{
  position:absolute;
  right:0;
  top:120%;
  width:260px;
  background:#ffffff;
  border-radius:8px;
  box-shadow:0 15px 35px rgba(15,23,42,.18);
  border:1px solid #e5e7eb;
  overflow:hidden;
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .15s ease-out, transform .15s ease-out;
  z-index:40;
}

.account-menu.open .account-dropdown{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.account-dd-header{
  background:#d9f99d;
  color:#166534;
  padding:8px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
}

.account-dd-close{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:14px;
  color:#166534;
}

.account-dd-nav a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:7px 10px;
  font-size:13px;
  text-decoration:none;
  color:#111827;
  border-top:1px solid #e5e7eb;
  background:#ffffff;
}

.account-dd-nav a:hover{
  background:#f3f4f6;
}

.account-dd-nav a.logout-link{
  color:#b91c1c;
}

/* Estado NO logueado: "Inicia sesión o conviértete en cliente" */
.account-trigger-guest{
  display:flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:#1f2937;
  font-size:13px;
}

.account-trigger-guest .account-ico{
  width:26px;
  height:26px;
  border-radius:999px;
  border:2px solid #1d4ed8;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  position:relative;
}

.account-trigger-guest .account-ico::after{
  content:'!';
  position:absolute;
  bottom:-4px;
  right:-4px;
  width:14px;
  height:14px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.account-trigger-text{
  line-height:1.1;
}
.account-trigger-text small{
  font-size:11px;
  color:#6b7280;
}

/* Menú logueado */

.account-menu{
  position:relative;
}

.account-trigger{
  display:flex;
  align-items:center;
  gap:6px;
  border:none;
  background:#eef2ff;
  border-radius:6px;
  padding:6px 10px;
  cursor:pointer;
  font-size:13px;
  color:#111827;
}

.account-trigger:hover{
  background:#e0e7ff;
}

.account-ico{
  width:22px;
  height:22px;
  border-radius:999px;
  background:#4f46e5;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
}

.account-arrow{
  font-size:10px;
  color:#6b7280;
}

/* Dropdown oculto por defecto */

.account-dropdown{
  position:absolute;
  right:0;
  top:110%;
  min-width:260px;
  background:#ffffff;
  border-radius:8px;
  border:1px solid #e5e7eb;
  box-shadow:0 15px 35px rgba(15,23,42,0.18);
  overflow:hidden;
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity .15s ease-out, transform .15s ease-out;
  z-index:50;
}

/* Cuando el menú está "open" */

.account-menu.open .account-dropdown{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.account-dd-header{
  padding:8px 10px;
  background:#d9f99d;
  color:#166534;
  font-size:13px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.account-dd-close{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:14px;
  color:#166534;
}

.account-dd-nav a{
  display:block;
  padding:7px 10px;
  font-size:13px;
  color:#111827;
  text-decoration:none;
  border-top:1px solid #e5e7eb;
  background:#ffffff;
}

.account-dd-nav a:hover{
  background:#f3f4f6;
}

.account-dd-nav a.logout-link{
  color:#b91c1c;
}


/* OFFCANVAS CARRITO */
.cart-pill {
  border: none;
  background: #ffffff;
  cursor: pointer;
}

/* contenedor general */
.cart-offcanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
}

.cart-offcanvas.open {
  pointer-events: auto;
}

/* fondo oscuro */
.cart-offcanvas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.35);
  opacity: 0;
  transition: opacity .15s ease-out;
}

/* panel */
.cart-offcanvas-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100%;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(15,23,42,0.25);
  transform: translateX(100%);
  transition: transform .2s ease-out;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
}

.cart-offcanvas.open .cart-offcanvas-backdrop {
  opacity: 1;
}

.cart-offcanvas.open .cart-offcanvas-panel {
  transform: translateX(0);
}

/* header panel */
.cart-offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-offcanvas-title {
  font-size: 18px;
  font-weight: 700;
}

.cart-offcanvas-sub {
  font-size: 12px;
  color: #6b7280;
}

.cart-offcanvas-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

/* body */
.cart-offcanvas-body {
  font-size: 13px;
  color: #111827;
}

.cart-offcanvas-text {
  margin: 0 0 14px;
}

.cart-offcanvas-mini {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
}

/* botones dentro del panel */
.cart-offcanvas-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cart-offcanvas-checkout-btn:hover {
  background: #1d4ed8;
}

.cart-offcanvas-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #2563eb;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.cart-offcanvas-secondary-btn:hover {
  background: #e0f2fe;
}

.cart-offcanvas-items{
  margin-top:8px;
  max-height:320px;
  overflow-y:auto;
  border-top:1px solid #e5e7eb;
  padding-top:8px;
  font-size:13px;
}

.cart-offcanvas-loading{
  font-size:12px;
  color:#6b7280;
}

.cart-offcanvas-item-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:6px 0;
  border-bottom:1px dashed #e5e7eb;
  gap:8px;
}

.cart-offcanvas-item-left{
  max-width:70%;
}

.cart-offcanvas-item-title{
  font-weight:500;
}

.cart-offcanvas-item-meta{
  font-size:11px;
  color:#6b7280;
}

.cart-offcanvas-item-right{
  text-align:right;
  white-space:nowrap;
}

.cart-offcanvas-item-delete{
  border:none;
  background:transparent;
  font-size:13px;
  color:#ef4444;
  cursor:pointer;
  padding:0 0 0 4px;
}

.cart-offcanvas-summary{
  margin-top:10px;
  border-top:1px solid #e5e7eb;
  padding-top:8px;
  font-size:13px;
}

.cart-offcanvas-summary-row{
  display:flex;
  justify-content:space-between;
  margin-bottom:4px;
}

.cart-offcanvas-summary-row.total{
  font-weight:600;
  margin-top:4px;
}

.cart-offcanvas-footer-actions{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:12px;
}

.cart-offcanvas-secondary-btn-danger{
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
}
.cart-offcanvas-secondary-btn-danger:hover{
  background:#fecaca;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: #ffffff;          /* blanco limpio */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 4px rgba(0,0,0,0.08);
}



.logo-mark-img {
  max-width: 80%;
  max-height: 80%;
  display: block;
  object-fit: contain;
}



