:root {
  --salmu-navy: #0b1b2b;
  --salmu-navy-2: #122a44;
  --salmu-navy-3: #1b3a5f;
  --salmu-accent: #f5a623;
  --salmu-accent-2: #ffc24b;
  --salmu-accent-dark: #d97706;
  --salmu-ink: #1f2937;
  --salmu-muted: #6b7280;
  --salmu-light: #f6f8fb;
  --salmu-border: #e7ecf3;
  --salmu-success: #16a34a;
  --salmu-danger: #dc2626;
  --salmu-radius: 16px;
  --salmu-radius-sm: 10px;
  --salmu-shadow: 0 1px 3px rgba(11, 27, 43, .06), 0 8px 24px rgba(11, 27, 43, .08);
  --salmu-shadow-lg: 0 12px 32px rgba(11, 27, 43, .14);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f6f8fb;
  color: var(--salmu-ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -.01em;
}

/* ===================== NAVBAR ===================== */
.salmu-nav {
  background: linear-gradient(90deg, #0b1b2b 0%, #122a44 55%, #1b3a5f 100%);
  box-shadow: 0 2px 18px rgba(11, 27, 43, .35);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.salmu-nav .navbar-brand {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.salmu-nav .navbar-brand span {
  color: var(--salmu-accent);
}
.salmu-nav .nav-link {
  color: rgba(255, 255, 255, .85);
  font-size: .93rem;
  font-weight: 500;
}
.salmu-nav .nav-link:hover,
.salmu-nav .nav-link.active {
  color: var(--salmu-accent-2);
}
.salmu-nav .dropdown-menu {
  border: 0;
  box-shadow: var(--salmu-shadow-lg);
  border-radius: 12px;
  padding: .5rem;
}
.salmu-nav .dropdown-item {
  border-radius: 8px;
  padding: .45rem .8rem;
  font-size: .9rem;
}
.salmu-nav .dropdown-item:hover {
  background: #fdf3e2;
  color: var(--salmu-accent-dark);
}
.salmu-search {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  border-radius: 999px;
  padding-left: 1rem;
}
.salmu-search::placeholder {
  color: rgba(255, 255, 255, .55);
}
.salmu-search:focus {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .35);
  border-color: transparent;
}
.salmu-badge {
  background: var(--salmu-accent);
  color: var(--salmu-navy);
  font-size: .68rem;
  font-weight: 700;
  top: 2px;
}
.btn-cart-nav {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 999px;
  padding: .3rem .9rem;
}
.btn-cart-nav:hover {
  background: var(--salmu-accent);
  color: var(--salmu-navy);
}

/* ===================== HERO ===================== */
.salmu-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1b2b 0%, #16324f 55%, #1e4671 100%);
  color: #fff;
  border-radius: 20px;
  padding: 3rem 2.2rem;
  box-shadow: var(--salmu-shadow-lg);
}
.salmu-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245, 166, 35, .35), transparent 65%);
  border-radius: 50%;
}
.salmu-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 20%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(27, 90, 140, .45), transparent 70%);
  border-radius: 50%;
}
.salmu-hero > * { position: relative; z-index: 1; }
.repsol-badge {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: .45rem .7rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  line-height: 0;
}
.repsol-badge img {
  display: block;
  width: 170px;
  height: auto;
}
.hero-brand {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  z-index: 0 !important;
}
@media (max-width: 768px) {
  .hero-brand { width: 150px; right: .6rem; bottom: .4rem; }
  .hero-brand img { width: 150px; }
}
.salmu-hero .hero-eyebrow {
  display: inline-block;
  background: rgba(245, 166, 35, .18);
  color: var(--salmu-accent-2);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.salmu-hero h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
}
.salmu-hero p {
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
}
.btn-hero {
  background: var(--salmu-accent);
  border: 0;
  color: var(--salmu-navy);
  font-weight: 700;
  border-radius: 999px;
  padding: .6rem 1.5rem;
  box-shadow: 0 8px 20px rgba(245, 166, 35, .4);
}
.btn-hero:hover {
  background: var(--salmu-accent-2);
  color: var(--salmu-navy);
  transform: translateY(-1px);
}
.btn-hero-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  border-radius: 999px;
  padding: .6rem 1.4rem;
  font-weight: 500;
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* ===================== SECCIONES ===================== */
.section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.2rem;
}
.section-title h2 {
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--salmu-accent), transparent);
  border-radius: 2px;
}

/* ===================== CARDS DE PRODUCTO ===================== */
.card-producto {
  border: 1px solid var(--salmu-border);
  border-radius: var(--salmu-radius);
  background: #fff;
  overflow: hidden;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-producto:hover {
  transform: translateY(-5px);
  box-shadow: var(--salmu-shadow-lg);
}
.card-producto .img-wrap {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.card-producto .img-wrap img {
  object-fit: contain;
  width: 100%;
  height: 180px;
  transition: transform .3s ease;
}
.card-producto:hover .img-wrap img {
  transform: scale(1.06);
}
.card-producto .card-body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.card-producto .card-title {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.card-producto .card-title a {
  color: var(--salmu-ink);
}
.card-producto .card-title a:hover {
  color: var(--salmu-accent-dark);
}
.card-producto .cat-chip {
  font-size: .7rem;
  color: var(--salmu-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.precio-desde {
  color: var(--salmu-accent-dark);
  font-weight: 800;
  font-size: 1.05rem;
}
.btn-card {
  background: #fff;
  border: 1.5px solid var(--salmu-accent);
  color: var(--salmu-accent-dark);
  font-weight: 600;
  border-radius: 999px;
  font-size: .82rem;
  padding: .4rem .8rem;
  margin-top: .3rem;
}
.btn-card:hover {
  background: var(--salmu-accent);
  color: var(--salmu-navy);
}

/* ===================== CHIPS DE CATEGORIA ===================== */
.cat-chip-card {
  display: block;
  background: #fff;
  border: 1px solid var(--salmu-border);
  border-radius: var(--salmu-radius-sm);
  padding: .9rem 1.1rem;
  color: var(--salmu-ink);
  font-weight: 600;
  font-size: .92rem;
  transition: all .15s ease;
}
.cat-chip-card:hover {
  border-color: var(--salmu-accent);
  color: var(--salmu-accent-dark);
  box-shadow: var(--salmu-shadow);
  transform: translateY(-2px);
}

/* ===================== FICHA PRODUCTO ===================== */
.ficha-img-wrap {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border: 1px solid var(--salmu-border);
  border-radius: 20px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.ficha-imagen {
  object-fit: contain;
  width: 100%;
  max-height: 460px;
}
.sku-selector label {
  border: 1.5px solid var(--salmu-border);
  border-radius: 12px;
  padding: .7rem 1rem;
  cursor: pointer;
  transition: all .12s ease;
  margin-bottom: .55rem;
}
.sku-selector label:hover {
  border-color: var(--salmu-accent);
  background: #fffaf0;
}
.sku-selector input:checked + label {
  border-color: var(--salmu-accent);
  background: #fff7e6;
  box-shadow: 0 0 0 1px var(--salmu-accent) inset;
}
.precio-actual {
  font-size: 2rem;
  font-weight: 800;
  color: var(--salmu-accent-dark);
  line-height: 1;
}
.btn-comprar {
  background: var(--salmu-accent);
  border: 0;
  color: var(--salmu-navy);
  font-weight: 700;
  border-radius: 14px;
  padding: .75rem 1.8rem;
  box-shadow: 0 10px 24px rgba(245, 166, 35, .35);
}
.btn-comprar:hover {
  background: var(--salmu-accent-2);
  color: var(--salmu-navy);
}
.btn-comprar:disabled {
  background: #d1d5db;
  box-shadow: none;
}

/* ===================== BOTONES GENERALES ===================== */
.btn-primary {
  background: var(--salmu-navy);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  padding: .5rem 1.3rem;
}
.btn-primary:hover {
  background: var(--salmu-navy-3);
}
.btn-outline-secondary {
  border-radius: 999px;
  font-weight: 500;
}
.btn-warning {
  background: var(--salmu-accent);
  border: 0;
  color: var(--salmu-navy);
  font-weight: 700;
  border-radius: 999px;
}
.btn-warning:hover {
  background: var(--salmu-accent-2);
  color: var(--salmu-navy);
}

/* ===================== BADGES ===================== */
.badge-agotado { background: var(--salmu-danger); color: #fff; }
.badge-disponible { background: var(--salmu-success); color: #fff; }
.badge-pill-soft {
  background: #fff7e6;
  color: var(--salmu-accent-dark);
  font-weight: 600;
  padding: .35em .8em;
  border-radius: 999px;
}

/* ===================== FRANJA DE CONFIANZA ===================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
}
.trust-item {
  background: #fff;
  border: 1px solid var(--salmu-border);
  border-radius: var(--salmu-radius-sm);
  padding: .9rem 1rem;
  display: flex;
  gap: .7rem;
  align-items: center;
  box-shadow: var(--salmu-shadow);
}
.trust-ico {
  font-style: normal;
  font-size: 1.35rem;
  color: var(--salmu-accent-dark);
}
.trust-item strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
}
.trust-item span {
  display: block;
  font-size: .78rem;
  color: var(--salmu-muted);
}

/* ===================== SOBRE LA EMPRESA ===================== */
.about-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, #0b1b2b 0%, #16324f 60%, #1e4671 100%);
  border-radius: 20px;
  padding: 2.2rem 2.2rem;
  color: #fff;
  box-shadow: var(--salmu-shadow-lg);
  align-items: center;
}
.about-text {
  position: relative;
  z-index: 1;
  flex: 1 1 340px;
}
.about-text h2 {
  font-weight: 700;
  font-size: 1.45rem;
  margin-bottom: .7rem;
}
.about-text p {
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
}
.about-text .hero-eyebrow {
  margin-bottom: .5rem;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.about-card {
  flex: 1 1 280px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}
.about-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .8rem;
  color: var(--salmu-accent-2);
}
.about-card li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin-bottom: .5rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .92);
}
.about-check {
  color: #4ade80;
  font-weight: 700;
}
.about-brand {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
}
@media (max-width: 768px) {
  .about-brand { position: static; margin-bottom: 1rem; }
}

@media (max-width: 768px) {
  .about-band { padding: 1.6rem 1.2rem; }
}

/* ===================== TARJETAS DE CATEGORIA (HOME) ===================== */
.cat-big-card {
  display: block;
  text-decoration: none;
  border-radius: var(--salmu-radius);
  overflow: hidden;
  height: 100%;
}
.cat-big-img {
  position: relative;
  display: block;
  height: 170px;
  background: linear-gradient(180deg, #f8fafc, #e8edf4);
  overflow: hidden;
}
.cat-big-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .9rem;
  transition: transform .35s ease;
}
.cat-big-card:hover .cat-big-img img {
  transform: scale(1.08);
}
.cat-big-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0) 40%, rgba(11, 27, 43, .78) 100%);
  transition: opacity .2s ease;
}
.cat-big-card:hover .cat-big-overlay {
  background: linear-gradient(180deg, rgba(11, 27, 43, .05) 30%, rgba(11, 27, 43, .85) 100%);
}
.cat-big-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  color: #fff;
}
.cat-big-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
}
.cat-big-count {
  display: block;
  font-size: .78rem;
  color: var(--salmu-accent-2);
}

/* ===================== CTA DE CATEGORIAS (HOME) ===================== */
.cat-big-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .35rem;
  height: 100%;
  min-height: 170px;
  background: linear-gradient(135deg, var(--salmu-accent) 0%, var(--salmu-accent-2) 100%);
  color: var(--salmu-navy);
  border-radius: var(--salmu-radius);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--salmu-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-big-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--salmu-shadow-lg);
  color: var(--salmu-navy);
}
.cat-big-cta .cta-arrow {
  font-style: normal;
  font-size: 1.5rem;
}

/* ===================== BENEFICIOS ===================== */
.benefit-item {
  background: #fff;
  border: 1px solid var(--salmu-border);
  border-radius: var(--salmu-radius);
  padding: 1.1rem 1.2rem;
  height: 100%;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  box-shadow: var(--salmu-shadow);
}
.benefit-ico {
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
}
.benefit-title {
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .2rem;
}
.benefit-text {
  font-size: .8rem;
  color: var(--salmu-muted);
}

/* ===================== PASOS ===================== */
.steps-item {
  background: #fff;
  border: 1px solid var(--salmu-border);
  border-radius: var(--salmu-radius);
  padding: 1.3rem;
  height: 100%;
  box-shadow: var(--salmu-shadow);
}
.steps-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--salmu-accent);
  color: var(--salmu-navy);
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  margin-bottom: .7rem;
}
.steps-title {
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: .3rem;
}
.steps-text {
  font-size: .86rem;
  color: var(--salmu-muted);
  margin: 0;
}

/* ===================== CTA ===================== */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #122a44 0%, #1b3a5f 100%);
  color: #fff;
  border-radius: 20px;
  padding: 2rem 2.2rem;
  box-shadow: var(--salmu-shadow-lg);
}

@media (max-width: 768px) {
  .cta-banner { padding: 1.5rem 1.2rem; }
  .cat-big-img { height: 130px; }
}

/* ===================== PANELES / CARTAS ===================== */
.panel {
  background: #fff;
  border: 1px solid var(--salmu-border);
  border-radius: var(--salmu-radius);
  box-shadow: var(--salmu-shadow);
}
.panel-body { padding: 1.3rem; }
.table-cart td, .table-cart th { vertical-align: middle; }
.pagination .page-link {
  border-radius: 10px;
  margin: 0 .15rem;
  color: var(--salmu-navy);
  font-weight: 500;
  border: 1px solid var(--salmu-border);
}
.pagination .page-item.active .page-link {
  background: var(--salmu-accent);
  border-color: var(--salmu-accent);
  color: var(--salmu-navy);
}

/* ===================== FOOTER ===================== */
.salmu-footer {
  background: linear-gradient(180deg, #0b1b2b, #08131f);
  color: #c3d0de;
  margin-top: 3rem;
}
.salmu-footer a { color: #c3d0de; }
.salmu-footer a:hover { color: var(--salmu-accent-2); }
.footer-brand {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: .35rem .6rem;
  line-height: 0;
}
.footer-brand img {
  width: 140px;
}

/* ===================== MASTER ===================== */
.master-side {
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}
.master-content {
  background: #fff;
  border-radius: var(--salmu-radius);
  border: 1px solid var(--salmu-border);
  box-shadow: var(--salmu-shadow);
  padding: 1.3rem;
}

/* ===================== VARIOS ===================== */
.breadcrumb { font-size: .85rem; }
.breadcrumb-item a { color: var(--salmu-accent-dark); text-decoration: none; }
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--salmu-border);
}
.form-control:focus, .form-select:focus {
  border-color: var(--salmu-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .2);
}
.alert { border-radius: 14px; border: 0; }
.alert-success { background: #ecfdf3; color: #166534; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-warning { background: #fff8e6; color: #92600a; }
.alert-info { background: #eff6ff; color: #1e40af; }

@media (max-width: 992px) {
  .master-side {
    position: static;
    height: auto;
    min-height: 0;
  }
}
@media (max-width: 768px) {
  .salmu-hero { padding: 2rem 1.4rem; border-radius: 14px; }
  .ficha-img-wrap { position: static; }
}