/* ==========================================================================
   Proezas Group - Sistema de diseno "Bexon" (Corporate Business)
   Paleta y lenguaje visual tomados de:
   Bexon - Corporate Business HTML Template / assets/sass/utilities
   --------------------------------------------------------------------------
   Solo estilos: no cambia ninguna clase ni marcado de las vistas Blade.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* --- Colores Bexon --------------------------------------------------- */
  --bexon-primary:    #1e8a8a;   /* theme.primary  */
  --bexon-primary-dk: #176e6e;
  --bexon-dark:       #0c1e21;   /* theme.dark     */
  --bexon-dark-2:     #18292c;   /* theme.dark-2   */
  --bexon-dark-3:     #202e30;   /* theme.bg-3     */
  --bexon-body:       #364e52;   /* text.body      */
  --bexon-body-3:     #67787a;   /* text.body-3    */
  --bexon-bg:         #d8e5e5;   /* theme.bg       */
  --bexon-bg-2:       #cee0e0;   /* theme.bg-2     */
  --bexon-grey-1:     #ecf0f0;   /* grey.1         */
  --bexon-grey-2:     #a9b8b8;   /* grey.2         */
  --bexon-border:     #c9d1d1;   /* border.1       */
  --bexon-red:        #ff0004;

  /* --- Alias usados por los componentes -------------------------------- */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: var(--bexon-grey-1);
  --text: var(--bexon-dark);
  --text-muted: var(--bexon-body);
  --text-light: var(--bexon-body-3);
  --accent: var(--bexon-primary);
  --accent-hover: var(--bexon-primary-dk);
  --accent-light: #e8f2f2;
  --accent-border: rgba(30, 138, 138, 0.15);
  --border: var(--bexon-border);
  --border-light: #e2e9e9;

  --shadow-sm: 0 1px 2px rgba(12, 30, 33, 0.08);
  --shadow-md: 0 10px 30px rgba(12, 30, 33, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 30, 33, 0.16);

  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  --font-sans: 'Mona Sans', 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Mona Sans', 'DM Sans', system-ui, sans-serif;

  --header-h: 84px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

::selection { background: var(--bexon-primary); color: #fff; }

.container {
  width: min(1320px, 92vw);
  margin-inline: auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-shrink: 0;
}

.logo__mark {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--bexon-dark);
}

.logo__sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bexon-primary);
}

/* --- Navegacion --- */
.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bexon-dark);
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: auto;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--bexon-primary);
  transition: width 0.35s var(--ease);
}

.nav__link:hover { color: var(--bexon-primary); }

.nav__link:hover::after,
.nav__link--active::after {
  left: 0;
  right: auto;
  width: 100%;
}

.nav__link--active { color: var(--bexon-primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-user {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bexon-dark);
  padding-right: 0.25rem;
}

/* --- Boton circular (carrito / iconos) --- */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--bexon-dark);
  background: var(--bexon-grey-1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.icon-btn:hover {
  background: var(--bexon-primary);
  color: #fff;
  transform: translateY(-2px);
}

.icon-btn svg { width: 20px; height: 20px; }

.cart-badge { position: relative; }

.cart-badge__count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--bexon-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.icon-btn:hover .cart-badge__count { background: var(--bexon-dark); }

/* ==========================================================================
   BOTONES (pill Bexon: texto + icono circular que rota al pasar el mouse)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: var(--bexon-primary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.35s var(--ease), transform 0.3s var(--ease);
}

/* Cuando el boton trae flecha se vuelve el pill con icono de Bexon */
.btn-primary:has(svg) { padding: 5px 5px 5px 26px; }

.btn-primary svg {
  width: 44px;
  height: 44px;
  padding: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bexon-dark);
  color: #fff;
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn-primary:hover {
  background: var(--bexon-dark);
  transform: translateY(-2px);
}

.btn-primary:hover svg {
  background: #fff;
  color: var(--bexon-dark);
  transform: rotate(0deg);
}

/* Boton fantasma: el borde va por box-shadow para que no lo rompan los
   estilos inline `border-bottom: none` que trae el header. */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bexon-dark);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--bexon-border);
  white-space: nowrap;
  transition: box-shadow 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-ghost:hover {
  color: #fff;
  background: var(--bexon-dark);
  box-shadow: inset 0 0 0 1px var(--bexon-dark);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: var(--bexon-primary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.35s var(--ease), transform 0.3s var(--ease);
}

.btn-login:hover {
  background: var(--bexon-dark);
  transform: translateY(-2px);
}

.btn-login svg { width: 17px; height: 17px; }

/* Enlace con flecha (equivalente al .text-btn de Bexon) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bexon-dark);
  border: 0;
  padding-bottom: 0;
  transition: color 0.3s var(--ease);
}

/* Sin rotacion: este enlace se usa con flechas hacia ambos lados
   ("Ver todas" ->  y "Volver al inicio" <-). */
.link-arrow svg {
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  background: var(--bexon-dark);
  color: #fff;
  transition: transform 0.4s var(--ease), background 0.35s var(--ease);
}

.link-arrow:hover { color: var(--bexon-primary); }

.link-arrow:hover svg {
  background: var(--bexon-primary);
  transform: scale(1.08);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 6rem;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(30, 138, 138, 0.10) 0%, rgba(30, 138, 138, 0) 60%),
    linear-gradient(180deg, var(--bexon-grey-1) 0%, #ffffff 78%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(30, 138, 138, 0.07);
  filter: blur(40px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__content { position: relative; z-index: 1; }

/* Eyebrow con borde punteado, tal cual el .sub-title de Bexon */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bexon-dark);
  border: 1px dashed var(--bexon-border);
  border-radius: 4px;
  padding: 5px 12px;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bexon-primary);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--bexon-dark);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: normal;
  color: var(--bexon-primary);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--bexon-body);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__visual { position: relative; }

.hero__image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bexon-bg);
  box-shadow: var(--shadow-md);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hero__image-wrap:hover .hero__image { transform: scale(1.05); }

.hero__card {
  position: absolute;
  bottom: -1.75rem;
  left: -1.75rem;
  background: #fff;
  padding: 1.25rem 1.6rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 240px;
  border: 1px solid var(--border-light);
}

.hero__card-icon {
  width: 50px;
  height: 50px;
  background: var(--bexon-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.hero__card-icon svg { width: 24px; height: 24px; }

.hero__card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bexon-body-3);
  line-height: 1.4;
}

.hero__card-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bexon-dark);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ==========================================================================
   BARRA DE CONFIANZA
   ========================================================================== */
.trust-bar {
  background: var(--bexon-dark);
  padding: 1.6rem 0;
  border: 0;
}

.trust-bar__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.trust-bar__item svg {
  width: 20px;
  height: 20px;
  color: var(--bexon-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section { padding: 6rem 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bexon-dark);
  border: 1px dashed var(--bexon-border);
  border-radius: 4px;
  padding: 4px 11px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bexon-primary);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--bexon-dark);
}

.section-title em,
.section-title span { color: var(--bexon-primary); font-style: normal; }

/* ==========================================================================
   CATEGORIAS
   ========================================================================== */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  color: inherit;
  background: var(--bexon-grey-1);
}

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.category-card:hover .category-card__img {
  transform: perspective(400px) scale(1.12);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 30, 33, 0.88) 0%, rgba(12, 30, 33, 0.25) 45%, rgba(12, 30, 33, 0) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background 0.4s var(--ease);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(30, 138, 138, 0.9) 0%, rgba(12, 30, 33, 0.35) 55%, rgba(12, 30, 33, 0) 80%);
}

.category-card__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.3rem;
}

.category-card__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   PRODUCTOS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.85rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent-border);
}

.product-card__link { display: block; color: inherit; }

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bexon-grey-1);
  border-radius: 12px;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: perspective(0) scale(1);
  transition: transform 500ms var(--ease);
}

.product-card:hover .product-card__img {
  transform: perspective(400px) rotateX(0.09deg) scale(1.18);
}

/* Badge pill teal como en el .tj-product-badge de Bexon */
.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  border-radius: 40px;
  background: var(--bexon-primary);
  color: #fff;
}

.product-card__badge--sale { background: var(--bexon-red); }
.product-card__badge--new  { background: var(--bexon-primary); }

.product-card__wishlist {
  position: absolute;
  top: 14px;
  right: -50px;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bexon-dark);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 1px 2px rgba(1, 15, 28, 0.2);
  transition: all 0.35s var(--ease);
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
  visibility: visible;
  right: 14px;
}

.product-card__wishlist:hover {
  background: var(--bexon-dark);
  color: #fff;
}

.product-card__wishlist svg { width: 17px; height: 17px; }

.product-card__body { padding: 1.25rem 0.75rem 0.85rem; }

.product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bexon-primary);
  margin-bottom: 0.45rem;
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bexon-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  transition: color 0.3s var(--ease);
}

.product-card:hover .product-card__name { color: var(--bexon-primary); }

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.product-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bexon-dark);
  letter-spacing: -0.02em;
}

.product-card__price-old {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bexon-grey-2);
  text-decoration: line-through;
  margin-left: 0.45rem;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bexon-dark);
  background: var(--bexon-grey-1);
  padding: 4px 10px;
  border-radius: 40px;
}

.product-card__rating svg {
  width: 13px;
  height: 13px;
  color: #f0a500;
  fill: #f0a500;
}

/* ==========================================================================
   BANNER PROMOCIONAL (estilo CTA oscuro de Bexon)
   ========================================================================== */
.promo {
  position: relative;
  background: var(--bexon-dark);
  border-radius: 24px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
}

.promo::before {
  content: '';
  position: absolute;
  top: -45%;
  right: -6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 138, 138, 0.35) 0%, rgba(30, 138, 138, 0) 68%);
  pointer-events: none;
}

.promo::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 138, 138, 0.18) 0%, rgba(30, 138, 138, 0) 70%);
  pointer-events: none;
}

.promo__content { position: relative; z-index: 1; }

.promo__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 4px 11px;
  margin-bottom: 1.25rem;
}

.promo__label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bexon-primary);
  flex-shrink: 0;
}

.promo__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.9rem;
}

.promo__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  line-height: 1.7;
}

.promo__code {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.75rem;
  text-align: center;
}

.promo__code-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.promo__code-value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--bexon-primary);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter {
  background: var(--bexon-grey-1);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.newsletter__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bexon-dark);
  margin-bottom: 0.6rem;
}

.newsletter__desc {
  font-size: 0.98rem;
  color: var(--bexon-body);
  line-height: 1.7;
}

.newsletter__form {
  display: flex;
  gap: 0.6rem;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--bexon-dark);
  outline: none;
}

.newsletter__input::placeholder { color: var(--bexon-grey-2); }

.newsletter__btn {
  padding: 0.85rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: var(--bexon-primary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.35s var(--ease);
}

.newsletter__btn:hover { background: var(--bexon-dark); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  background: var(--bexon-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  margin-top: 0;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 138, 138, 0.18) 0%, rgba(30, 138, 138, 0) 70%);
  pointer-events: none;
}

.footer .container { position: relative; z-index: 1; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer__brand .logo__mark { color: #fff; }
.footer__brand .logo__sub { color: var(--bexon-primary); }

.footer__desc {
  font-size: 0.92rem;
  line-height: 1.75;
  margin-top: 1.25rem;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer__links li { margin-bottom: 0.8rem; }

.footer__links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--bexon-primary);
  padding-left: 5px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__payments {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.payment-icon {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.payment-icon:hover {
  background: var(--bexon-primary);
  color: #fff;
}

/* ==========================================================================
   MODAL / FORMULARIOS DE AUTENTICACION
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 30, 33, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  width: min(460px, 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
  overflow: hidden;
}

.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal__header {
  padding: 2.25rem 2.25rem 0;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bexon-dark);
  background: var(--bexon-grey-1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.modal__close:hover { background: var(--bexon-dark); color: #fff; }
.modal__close svg { width: 18px; height: 18px; }

.modal__logo { margin-bottom: 1.75rem; }

.modal__title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bexon-dark);
  margin-bottom: 0.45rem;
}

.modal__subtitle {
  font-size: 0.95rem;
  color: var(--bexon-body);
  line-height: 1.65;
}

.modal__body { padding: 2rem 2.25rem 2.25rem; }

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bexon-dark);
  margin-bottom: 0.5rem;
}

.form-input-wrap { position: relative; }

.form-input {
  width: 100%;
  padding: 0.9rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--bexon-dark);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-input:focus {
  border-color: var(--bexon-primary);
  box-shadow: 0 0 0 3px var(--accent-border);
}

.form-input::placeholder { color: var(--bexon-grey-2); }

textarea.form-input { min-height: 120px; resize: vertical; }
select.form-input { cursor: pointer; }

.form-input-wrap .form-input { padding-right: 2.9rem; }

.form-toggle-pw {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bexon-body-3);
  padding: 0.25rem;
}

.form-toggle-pw svg { width: 18px; height: 18px; }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--bexon-body);
  cursor: pointer;
}

.form-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--bexon-primary);
  cursor: pointer;
}

.form-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bexon-primary);
}

.form-link:hover { text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  background: var(--bexon-primary);
  border-radius: var(--radius-pill);
  transition: background 0.35s var(--ease), transform 0.3s var(--ease);
  margin-bottom: 1.5rem;
}

.btn-submit:hover {
  background: var(--bexon-dark);
  transform: translateY(-2px);
}

.modal__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.modal__divider::before,
.modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.modal__divider span {
  font-size: 0.78rem;
  color: var(--bexon-body-3);
  white-space: nowrap;
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bexon-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-social:hover {
  background: var(--bexon-grey-1);
  border-color: var(--bexon-dark);
}

.btn-social svg { width: 18px; height: 18px; }

.modal__footer-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--bexon-body);
}

.modal__footer-text a {
  font-weight: 600;
  color: var(--bexon-primary);
}

.modal__footer-text a:hover { text-decoration: underline; }

/* ==========================================================================
   ALERTAS Y MENSAJES
   ========================================================================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.93rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.alert--success {
  background: var(--accent-light);
  color: var(--bexon-primary-dk);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--bexon-primary);
}

.alert--error {
  background: #fdeded;
  color: #b3120f;
  border: 1px solid #f6d3d3;
  border-left: 3px solid var(--bexon-red);
}

.form-error {
  color: #b3120f;
  font-size: 0.83rem;
  font-weight: 500;
  margin-top: 0.4rem;
}

.link-danger {
  color: #b3120f;
  font-weight: 600;
  font-size: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.link-danger:hover { color: var(--bexon-red); text-decoration: underline; }

/* ==========================================================================
   DETALLE DE PRODUCTO
   ========================================================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.product-detail__gallery { position: relative; }

.product-detail__main {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bexon-grey-1);
}

.product-detail__thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.product-detail__thumbs img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.product-detail__thumbs img:hover {
  border-color: var(--bexon-primary);
  transform: translateY(-3px);
}

.product-detail__info .section-title { margin-bottom: 0.5rem; }

.product-detail__sku,
.product-detail__stock,
.product-detail__note {
  color: var(--bexon-body-3);
  font-size: 0.92rem;
  margin: 0.6rem 0;
}

.product-detail__note a {
  color: var(--bexon-primary);
  font-weight: 600;
}

.product-detail__note a:hover { text-decoration: underline; }

.product-detail__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bexon-dark);
  margin: 1.25rem 0;
}

.product-detail__desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--bexon-body);
  padding: 1.5rem 0;
  margin: 0.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.product-detail__form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.product-detail__form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bexon-dark);
  align-self: center;
}

/* ==========================================================================
   CARRITO Y CHECKOUT
   ========================================================================== */
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 2.5rem;
  align-items: start;
}

.cart-items {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bexon-grey-1);
}

.cart-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bexon-dark);
  margin-bottom: 0.3rem;
}

.cart-item p {
  font-size: 0.85rem;
  color: var(--bexon-body-3);
  line-height: 1.5;
}

.cart-item form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-item strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bexon-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cart-summary,
.checkout-layout aside {
  background: var(--bexon-grey-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.cart-summary h2,
.checkout-layout aside h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bexon-dark);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary p {
  font-size: 1rem;
  color: var(--bexon-body);
  margin-bottom: 1.5rem;
}

.cart-summary strong { color: var(--bexon-dark); font-size: 1.3rem; font-weight: 800; }

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: var(--bexon-body);
}

.checkout-item:last-of-type {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--bexon-dark);
}

/* ==========================================================================
   PAGINACION
   ========================================================================== */
.pagination-wrap {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination-wrap svg { width: 16px; height: 16px; }

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  margin: 0 3px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50%;
  color: var(--bexon-dark);
  background: var(--bexon-grey-1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.pagination-wrap a:hover {
  background: var(--bexon-primary);
  color: #fff;
}

.pagination-wrap nav > div:first-child { display: none; }

/* ==========================================================================
   MENU MOVIL
   ========================================================================== */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bexon-grey-1);
  color: var(--bexon-dark);
}

.menu-toggle svg { width: 22px; height: 22px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .categories { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .section { padding: 4.5rem 0; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-layout aside { position: static; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: 3rem 0 4.5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; }
  .hero__card { left: 1rem; bottom: -1.25rem; min-width: 0; padding: 1rem 1.25rem; }

  .trust-bar__list { justify-content: flex-start; }

  .categories { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .promo {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    text-align: center;
    justify-items: center;
  }

  .promo__label { justify-content: center; }
  .promo__desc { max-width: 100%; }

  .newsletter { grid-template-columns: 1fr; padding: 2.25rem; }
  .newsletter__form { flex-direction: column; border-radius: var(--radius-lg); }
  .newsletter__input { text-align: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__desc { max-width: 100%; }

  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .cart-item { grid-template-columns: 72px 1fr; gap: 1rem; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-items { padding: 0.5rem 1rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.25rem 0; }
  .products-grid { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr 1fr; }
  .header__actions .btn-login span { display: none; }
  .btn-login { padding: 0.75rem; border-radius: 50%; }
  .modal__header { padding: 1.75rem 1.5rem 0; }
  .modal__body { padding: 1.5rem; }
  .promo { padding: 2rem 1.5rem; }
  .promo__code { padding: 1.5rem 1.75rem; }
}

/* ==========================================================================
   MIS PEDIDOS - listado
   ========================================================================== */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.order-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.75rem;
  background: var(--bexon-grey-1);
  border-bottom: 1px solid var(--border-light);
}

.order-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bexon-body-3);
  margin-bottom: 0.2rem;
}

.order-card__id {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bexon-dark);
}

.order-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.75rem;
}

.order-card__products {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}

.order-card__thumbs {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.order-card__names {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bexon-dark);
  line-height: 1.5;
}

.order-card__names span {
  display: block;
  font-weight: 500;
  color: var(--bexon-body-3);
  font-size: 0.85rem;
}

.order-card__thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #fff;
  background: var(--bexon-grey-1);
  margin-right: -14px;
  transition: transform 0.3s var(--ease);
}

.order-card__thumb:last-child { margin-right: 0; }
.order-card:hover .order-card__thumb { transform: translateY(-3px); }

.order-card__thumb--more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bexon-dark);
  background: var(--bexon-bg);
}

.order-card__meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.order-card__meta-item dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bexon-body-3);
  margin-bottom: 0.25rem;
}

.order-card__meta-item dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bexon-dark);
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-light);
}

.order-card__total {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.order-card__total-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bexon-body-3);
}

.order-card__total-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bexon-dark);
}

/* --- Pastilla de estado --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill--pendiente  { color: #9a6100; background: #fdf3e2; border-color: #f2e0be; }
.status-pill--procesando { color: #1b6a94; background: #e8f2f8; border-color: #cbe1ee; }
.status-pill--enviado    { color: var(--bexon-primary-dk); background: var(--accent-light); border-color: var(--accent-border); }
.status-pill--entregado  { color: #1f7a4d; background: #e7f4ed; border-color: #c8e6d6; }
.status-pill--cancelado  { color: #b3120f; background: #fdeded; border-color: #f6d3d3; }

/* --- Estado vacio --- */
.empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--bexon-grey-1);
  border: 1px dashed var(--border);
  border-radius: 24px;
}

.empty-state__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bexon-primary);
  border: 1px solid var(--border-light);
}

.empty-state__icon svg { width: 38px; height: 38px; }

.empty-state__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bexon-dark);
  margin-bottom: 0.6rem;
}

.empty-state__text {
  font-size: 1rem;
  color: var(--bexon-body);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ==========================================================================
   MIS PEDIDOS - detalle
   ========================================================================== */
.order-detail {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.order-detail__main,
.order-detail__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.order-detail__aside .order-panel { background: var(--bexon-grey-1); }

.order-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.order-panel__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bexon-dark);
}

.order-detail__aside .order-panel__title {
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.order-panel__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bexon-dark);
  background: var(--bexon-grey-1);
  padding: 4px 12px;
  border-radius: 40px;
}

/* --- Linea de tiempo --- */
.order-steps {
  display: flex;
  list-style: none;
  padding: 0.5rem 0 0;
}

.order-step {
  flex: 1;
  position: relative;
  text-align: center;
  min-width: 0;
}

.order-step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--border);
}

.order-step:first-child::before { display: none; }

.order-step.is-done::before,
.order-step.is-current::before { background: var(--bexon-primary); }

.order-step__dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: #fff;
  transition: all 0.3s var(--ease);
}

.order-step__dot svg { width: 15px; height: 15px; }

.order-step.is-done .order-step__dot {
  background: var(--bexon-primary);
  border-color: var(--bexon-primary);
}

.order-step.is-current .order-step__dot {
  background: var(--bexon-dark);
  border-color: var(--bexon-dark);
  box-shadow: 0 0 0 5px rgba(30, 138, 138, 0.16);
}

.order-step__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bexon-body-3);
  line-height: 1.35;
}

.order-step.is-done .order-step__label,
.order-step.is-current .order-step__label { color: var(--bexon-dark); }

.order-cancelled {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: #fdeded;
  border: 1px solid #f6d3d3;
  border-left: 3px solid var(--bexon-red);
  color: #8f1512;
  font-size: 0.93rem;
  line-height: 1.6;
}

.order-cancelled svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* --- Articulos del pedido --- */
.order-items {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.order-item {
  display: grid;
  grid-template-columns: 76px 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.order-item:first-child { padding-top: 0; }
.order-item:last-child { border-bottom: 0; padding-bottom: 0; }

.order-item__img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bexon-grey-1);
  border: 1px solid var(--border-light);
}

.order-item__name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bexon-dark);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  transition: color 0.3s var(--ease);
}

a.order-item__name:hover { color: var(--bexon-primary); }

.order-item__sku {
  font-size: 0.82rem;
  color: var(--bexon-body-3);
}

.order-item__qty {
  font-size: 0.88rem;
  color: var(--bexon-body);
  white-space: nowrap;
}

.order-item__subtotal {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bexon-dark);
  white-space: nowrap;
}

/* --- Datos de envio --- */
.order-info dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bexon-body-3);
  margin-bottom: 0.25rem;
}

.order-info dd {
  font-size: 0.93rem;
  color: var(--bexon-dark);
  line-height: 1.6;
  margin-bottom: 1.1rem;
  word-break: break-word;
}

.order-info dd:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .order-detail { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .order-card__head,
  .order-card__body,
  .order-card__foot { padding-left: 1.25rem; padding-right: 1.25rem; }

  .order-card__body { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .order-card__meta { gap: 1.75rem; }

  .order-panel { padding: 1.25rem; }

  .order-steps { flex-direction: column; gap: 1.1rem; text-align: left; }
  .order-step { display: flex; align-items: center; gap: 0.85rem; }
  .order-step::before {
    top: -1.1rem;
    bottom: auto;
    left: 16px;
    right: auto;
    width: 2px;
    height: 1.1rem;
  }
  .order-step__dot { margin: 0; }

  .order-item {
    grid-template-columns: 64px 1fr;
    gap: 0.9rem 1rem;
  }
  .order-item__img { width: 64px; height: 64px; }
  .order-item__qty,
  .order-item__subtotal { grid-column: 2; }

  .empty-state { padding: 3rem 1.25rem; }
}

/* ==========================================================================
   MODULO A - Descuentos por cliente
   ========================================================================== */

/* Distintivo de "tu precio" en tarjetas y carrito */
.price-tag { margin-bottom: 0.6rem; }

.price-tag__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 9px;
  border-radius: 40px;
  background: var(--accent-light);
  color: var(--bexon-primary-dk);
  border: 1px solid var(--accent-border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Desglose completo en la ficha de producto */
.discount-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--bexon-primary);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
}

.discount-box__title {
  font-size: 0.9rem;
  color: var(--bexon-primary-dk);
  margin-bottom: 0.85rem;
}

.discount-box__title strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.discount-box__rows { display: flex; flex-direction: column; gap: 0.45rem; }

.discount-box__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.discount-box__rows dt {
  font-size: 0.88rem;
  color: var(--bexon-body);
}

.discount-box__rows dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bexon-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.discount-box__rows dd.is-discount { color: var(--bexon-primary-dk); }

.discount-box__rows .is-total {
  padding-top: 0.55rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--accent-border);
}

.discount-box__rows .is-total dt { font-weight: 700; color: var(--bexon-dark); }
.discount-box__rows .is-total dd { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }

/* Bloque de totales en carrito y checkout */
.totals {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
  color: var(--bexon-body);
}

.totals__row span:last-child {
  font-weight: 600;
  color: var(--bexon-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.totals__row--discount,
.totals__row--discount span:last-child { color: var(--bexon-primary-dk); }

.totals__row--grand {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.totals__row--grand span { font-size: 1.05rem; font-weight: 700; color: var(--bexon-dark); }
.totals__row--grand span:last-child { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }

/* Precio por linea en el carrito */
.cart-item__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cart-item__price strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bexon-dark);
}

.cart-item__price-old {
  font-size: 0.85rem;
  color: var(--bexon-grey-2);
  text-decoration: line-through;
}
