/* ==============================
   BASE & GLOBAL
============================== */
html {
  overflow-x: clip;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fb;
}

.main-content-container * {
  font-family: 'Poppins', sans-serif !important;
}

img {
  transition: all 0.5s ease;
  max-width: 100%;
}

#page-header.fixed { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* Evitar scroll-x sin romper overflow vertical */
section,
.main-content-container {
  max-width: 100%;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1430px;
  }
}

/* ==============================
   SECTION TITLES
============================== */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: #111;
}

.section-title a {
  font-size: 14px;
  font-weight: 400;
}

.section-subtitle {
  color: #666;
  max-width: 500px;
  margin: 0 auto;
  font-size: 16px;
}

.categories-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  max-width: 810px;
  margin: 0 auto;
  line-height: 1.4;
}

.categories-title span {
  color: #d90429;
}

/* ==============================
   CAROUSEL + BENEFITS (Hero)
============================== */
.carousel-benefits-section {
  background: #f5f6f7;
}

.carousel-inner img {
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

/* Mobile: reduce hero slider height */
@media (max-width: 991px) {
  .carousel-inner img {
    height: 300px;
  }
}

@media (max-width: 575px) {
  .carousel-inner img {
    height: 220px;
  }
}

/* ==============================
   BENEFITS CARD
============================== */
.benefits-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.benefits-header {
  background: #bd0b25;
  color: #fff;
  padding: 18px 20px;
  gap: 12px;
  display: flex;
  align-items: center;
}

.benefits-header img {
  width: 40px;
  flex-shrink: 0;
}

.benefits-header h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
}

.benefits-body {
  padding: 20px;
}

.benefit-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 10px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.benefit-row:hover {
  background: #fafafa;
  transform: translateX(4px);
}

.benefit-row img {
  width: 30px;
  flex-shrink: 0;
}

.benefit-row p {
  margin: 0;
  font-size: 12px;
  color: #333;
}

.benefit-row span {
  color: #bd0b25;
  font-weight: 600;
}

.benefit-row:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tablet: benefits card stacks below carousel */
@media (max-width: 991px) {
  .benefits-card {
    margin-top: 1rem;
  }

  .benefit-row:hover {
    transform: none; /* evitar que se desplace en tÃ¡ctil */
  }
}

/* ==============================
   FEATURED CATEGORIES
============================== */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.category-card {
  display: block;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 25px 15px;
  text-decoration: none;
  color: #222;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: #d90429;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.category-card img {
  height: 110px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 767px) {
  .category-card {
    padding: 18px 10px;
  }
  .category-card img {
    height: 80px;
  }
  .category-card p {
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .categories-title {
    font-size: 1.3rem;
  }
  .category-card img {
    height: 70px;
  }
}

/* ==============================
   NEW / REFURBISHED SPLIT
============================== */
.nr-wrapper {
  display: flex;
  width: 100%;
}

.nr-half {
  width: 50%;
  position: relative;
}

.nr-card {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nr-bg {
  position: absolute;
  height: 220px;
  width: 95%;
  background: #e9ecef;
  border-radius: 30px;
  bottom: 4px;
}

.nr-half:first-child .nr-bg { left: 0; }
.nr-half:last-child  .nr-bg { right: 0; }

.nr-img {
  position: relative;
  max-height: 310px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.nr-half:first-child .nr-img { transform: translateX(-10%); }
.nr-half:last-child  .nr-img { transform: translateX(10%); }

.nr-card:hover .nr-img {
  transform: translateY(-5px) scale(1.03);
}

.nr-content {
  position: absolute;
  bottom: 80px;
  z-index: 3;
  text-align: center;
}

.nr-half:first-child .nr-content {
  left: 75%;
  transform: translateX(-50%);
}

.nr-half:last-child .nr-content {
  right: 75%;
  transform: translateX(50%);
}

.nr-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.btn-nr {
  background: #d90429;
  color: #fff;
  padding: 10px 30px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-nr:hover { color: #fff; }

/* Tablet/Mobile: apila en columna, centra todo */
@media (max-width: 768px) {
  .nr-wrapper {
    flex-direction: column;
  }

  .nr-half {
    width: 100%;
  }

  .nr-bg {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 90%;
  }

  .nr-img {
    transform: none !important;
    max-height: 240px;
  }

  /* Centra el content en ambos lados */
  .nr-half:first-child .nr-content,
  .nr-half:last-child  .nr-content {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    bottom: 16px;
    width: max-content;
  }

  .nr-card {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .nr-card { height: 240px; }
  .nr-img { max-height: 200px; }
  .nr-content h3 { font-size: 16px; }
  .btn-nr { padding: 8px 22px; font-size: 14px; }
}

/* ==============================
   FEATURED CARD (producto principal)
============================== */
.featured-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  height: 100%;
}

.featured-card:hover {
  transform: translateY(-6px);
}

.featured-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.featured-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-img {
  transform: scale(1.05);
}

.featured-qv {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: #d90429;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  transition: 0.3s;
  white-space: nowrap;
}

.featured-card:hover .featured-qv {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.featured-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.price {
  font-size: 22px;
  font-weight: 600;
  color: #111;
}

/* Tablet: featured card centra su contenido */
@media (max-width: 991px) {
  .featured-card {
    text-align: center;
    margin-bottom: 1rem;
  }

  .featured-card .d-flex {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 12px;
  }

  .featured-img {
    max-height: 260px;
  }
}

/* ==============================
   PRODUCT SLIDER & CARDS
============================== */
.products-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.slider-btn:hover {
  background: #d90429;
  color: #fff;
}

.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }

.product-card {
  min-width: 260px;
  background: #fff;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.img-wrapper img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  transition: 0.4s;
}

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

.quick-view {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: #d90429;
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  transition: 0.3s;
  border: none;
  white-space: nowrap;
}

.product-card:hover .quick-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.brand  { font-size: 12px; color: #888; margin-top: 10px; }
.title  { font-size: 14px; font-weight: 500; margin: 5px 0 10px; color: #222; }

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discount {
  background: #d90429;
  color: #fff;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 6px;
}

.msrp { font-size: 12px; color: #999; }

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-outline {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  transition: 0.3s;
}

.btn-outline:hover { background: #f1f1f1; }

.btn-main {
  background: #d90429;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  transition: 0.3s;
}

.btn-main:hover { background: #b00321; }

.compare {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
  text-decoration: none;
}

.compare:hover { color: #d90429; }

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-cart {
  background: linear-gradient(135deg, #d90429, #a1031f);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-cart:hover {
  background: #b00321;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 4, 41, 0.3);
}

/* ==============================
   MODERN CARD (hospital beds / stretchers)
============================== */
.modern-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  overflow: hidden;
  transition: all 0.35s ease;
  border: 1px solid #f1f1f1;
  height: 100%;
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.modern-card .img-wrapper {
  background: #f7f8fa;
  border-radius: 16px;
  padding: 20px;
}

.modern-card img {
  height: 180px;
  object-fit: contain;
  transition: 0.4s;
}

.modern-card:hover img {
  transform: scale(1.06);
}

.modern-card .quick-view {
  bottom: 15px;
}

.card-body {
  padding: 10px 5px 5px;
  text-align: center;
}

.card-body .price-row {
  justify-content: center;
}

.badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #010101;
  color: #fff;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  z-index: 111;
}

.hospital-beds .row {
  row-gap: 30px;
}

@media (max-width: 767px) {
  .modern-card img { height: 150px; }
  .modern-card .img-wrapper { padding: 14px; }
}

@media (max-width: 575px) {
  .modern-card img { height: 130px; }
}

/* ==============================
   PROCEDURE CHAIRS / EXAM TABLES sections
   Centra el texto en tablet y mobile
============================== */
@media (max-width: 991px) {
  .procedure-chairs .section-title,
  .exam-tables .section-title,
  .hospital-beds .section-title,
  .stretchers-section .section-title {
    text-align: center;
  }

  .procedure-chairs .section-title .d-flex,
  .exam-tables .section-title .d-flex {
    justify-content: center !important;
    flex-wrap: wrap;
  }
}

/* ==============================
   FEATURED AUTOCLAVES BANNER
============================== */
.featured-autoclaves {
  overflow: hidden;
}

.featured-autoclaves img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.featured-autoclaves img:hover {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .featured-autoclaves img {
    border-radius: 0;
  }
}

/* ==============================
   BRANDS SLIDER
============================== */
.brands-slider {
  overflow: hidden;
  position: relative;
}

.brands-slider::before,
.brands-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brands-slider::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.brands-slider::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 50px;
  width: max-content;
  animation: scrollLeft 50s linear infinite;
}

.brands-slider:hover .brands-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-item {
  flex: 0 0 auto;
}

.brand-item img {
  height: 80px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.35s ease;
}

.brand-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .brand-item img { height: 55px; }
  .brands-track { gap: 30px; }
}

/* ==============================
   USA DELIVERIES SECTION
============================== */
.usa-deliveries-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #1c1f26, #111317);
  color: #fff;
  overflow: hidden;
}

.section-title-xl {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
}

.btn-primary-modern {
  display: inline-block;
  background: linear-gradient(135deg, #ff003c, #c4002f);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 60, 0.35);
  color: #fff;
}

.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 0, 60, 0.15), transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
  pointer-events: none;
}

.usa-deliveries-section .container {
  position: relative;
  z-index: 2;
}

/* Tablet/Mobile: centra todo el contenido */
@media (max-width: 991px) {
  .usa-deliveries-section {
    padding: 70px 0;
    text-align: center;
  }

  .section-text {
    margin: 0 auto;
    max-width: 100%;
  }

  .btn-primary-modern {
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  .usa-deliveries-section {
    padding: 50px 0;
  }

  .section-title-xl {
    font-size: 1.6rem;
  }

  .section-text {
    font-size: 14px;
  }

  .bg-glow {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
  }
}

/* ==============================
   STRETCHERS SECTION
============================== */
.stretchers-section {
  background: #fafafa;
}

/* ==============================
   MODAL
============================== */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.product-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  max-width: 750px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-body {
  display: flex;
  gap: 30px;
  align-items: center;
}

.modal-body img {
  width: 260px;
  object-fit: contain;
  flex-shrink: 0;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .modal-body {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .modal-body img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .modal-content {
    padding: 20px 16px;
    width: 96%;
  }
}

/* ==============================
   CENTRADO GLOBAL EN TABLET / MOBILE
   Textos, iconos, SVGs siempre centrados
============================== */
@media (max-width: 991px) {

  /* Titles & subtitles */
  .section-title,
  .categories-title,
  .section-subtitle {
    text-align: center !important;
  }

  /* USA deliveries text left col */
  .usa-deliveries-section .col-lg-6:first-child {
    text-align: center;
  }
  .usa-deliveries-section .section-text {
    margin: 0 auto;
  }

  /* Benefits header */
  .benefits-header {
    justify-content: center;
    text-align: center;
  }

  /* Cualquier SVG standalone (iconos decorativos) */
  svg:not([class*="carousel"]):not([class*="slider"]) {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {

  /* Todos los textos de cards */
  .featured-content,
  .card-body {
    text-align: center !important;
  }

  /* Price rows centradas */
  .price-row {
    justify-content: center;
  }

  /* Actions centradas */
  .actions {
    justify-content: center;
  }

  /* Section spacing reducido */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Titulos de secciÃ³n con padding lateral */
  .section-title {
    padding: 0 8px;
  }
}

@media (max-width: 575px) {
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .section-title {
    font-size: 1.3rem;
  }

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


/* ==============================
   RESPONSIVE CARD SIZES â€” mÃ¡s pequeÃ±os en tablet/mÃ³vil
============================== */

/* ==============================
   TIPOGRAFÃA RESPONSIVE COMPLETA
   Escala suave desde desktop hasta mÃ³vil pequeÃ±o
============================== */

/* Section titles */
.section-title {
  font-size: clamp(1.25rem, 4vw, 2rem);
  line-height: 1.3;
}

.categories-title {
  font-size: clamp(1.15rem, 3.5vw, 2rem);
  line-height: 1.4;
}

.section-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  line-height: 1.6;
}

/* Section title inline link */
.section-title a {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

/* Featured card */
.featured-content h3 {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  line-height: 1.35;
}

.price {
  font-size: clamp(1rem, 3vw, 1.375rem);
  font-weight: 700;
}

/* Product cards */
.product-card .title {
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  line-height: 1.3;
}

.product-card .brand {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
}

.product-card .price {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
}

/* Modern card (hospital beds / stretchers) */
.modern-card .title {
  font-size: clamp(0.8rem, 2vw, 1rem);
  line-height: 1.3;
}

.modern-card .brand {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
}

/* Benefits card */
.benefits-header h2 {
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
}

.benefit-row p {
  font-size: clamp(0.7rem, 1.8vw, 0.75rem);
  line-height: 1.5;
}

/* USA Deliveries */
.section-title-xl {
  font-size: clamp(1.5rem, 5vw, 2.625rem);
  line-height: 1.2;
}

.section-text {
  font-size: clamp(0.85rem, 2vw, 1rem);
  line-height: 1.65;
}

/* NR section titles */
.nr-content h3 {
  font-size: clamp(0.90rem, 3vw, 0.25rem);
}

/* Buttons â€” no demasiado grandes en mÃ³vil */
@media (max-width: 575px) {
  .btn-cart {
    font-size: 12px;
    padding: 8px 14px;
  }

  .btn-nr {
    font-size: 13px;
    padding: 8px 20px;
  }

  .btn-primary-modern {
    font-size: 13px;
    padding: 10px 18px;
  }

  .quick-view,
  .featured-qv {
    font-size: 11px;
    padding: 6px 14px;
  }

  /* Titles con menos margin */
  .mb-5 {
    margin-bottom: 2rem !important;
  }
}

/* ==============================
   HOSPITAL BEDS & STRETCHERS â€” 2 cols en mÃ³vil
============================== */
@media (max-width: 575px) {
  .hospital-beds .col-md-4,
  .stretchers-section .col-md-4 {
    /* Bootstrap col-md-4 ya va al 100% en xs,
       forzamos 2 columnas para que no sea tan grande */
    flex: 0 0 50%;
    max-width: 50%;
  }

  .hospital-beds .row,
  .stretchers-section .row {
    row-gap: 14px !important;
  }

  .modern-card .img-wrapper {
    padding: 8px;
  }
}

/* ==============================
   SLIDER ARROWS â€” tamaÃ±o y posiciÃ³n final
============================== */
@media (max-width: 991px) {
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
    bottom: 2px;
  }

  .slider-btn.prev { left: calc(50% - 42px); }
  .slider-btn.next { right: calc(50% - 42px); }
}

@media (max-width: 575px) {
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
    bottom: 0;
  }

  .products-slider {
    padding-bottom: 44px;
  }
}

/* ==============================
   SLIDER â€” DESKTOP (transform-based)
============================== */
.products-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  /* Cursor drag en desktop */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.slider-track:active { cursor: grabbing; }

.product-card {
  min-width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-6px); }

.slider-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover { background: #d90429; color: #fff; }
.slider-btn.prev  { left: -6px; }
.slider-btn.next  { right: -6px; }

/* ==============================
   SLIDER â€” TABLET (â‰¤991px)
   Scroll nativo con scroll-snap: 2 cards visibles
============================== */
@media (max-width: 991px) {
  .products-slider {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    /* Ocultar scrollbar visualmente */
    scrollbar-width: none;
    padding-bottom: 0;
    /* Importante: quitar el overflow:hidden del desktop */
    overflow: auto;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .products-slider::-webkit-scrollbar { display: none; }

  /* El track ahora es un row que el nav scroll maneja */
  .slider-track {
    /* Sin transform â€” scroll nativo */
    transform: none !important;
    transition: none !important;
    cursor: default;
    /* Scroll snap */
    scroll-snap-type: x mandatory;
    -webkit-scroll-snap-type: x mandatory;
    overflow-x: visible;
    width: max-content;
    gap: 12px;
    padding: 4px 2px 8px;
  }

  .product-card {
    /* ~45% del viewport = 2 cards visibles */
    min-width: clamp(140px, 44vw, 200px);
    max-width: clamp(140px, 44vw, 200px);
    scroll-snap-align: start;
    padding: 12px 10px;
    border-radius: 14px;
  }

  /* Flechas ocultas en tablet/mobile â€” el scroll tÃ¡ctil es suficiente */
  .slider-btn { display: none; }
}

/* ==============================
   SLIDER â€” MOBILE pequeÃ±o (â‰¤575px)
   ~1.5 cards visibles
============================== */
@media (max-width: 575px) {
  .product-card {
    min-width: clamp(130px, 56vw, 175px);
    max-width: clamp(130px, 56vw, 175px);
    padding: 10px 8px;
    border-radius: 12px;
  }
}

/* ==============================
   "View Product" en slider cards
============================== */
.btn-view-product {
  display: block;
  margin-top: 10px;
  padding: 7px 10px;
  background: #d90429;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
  font-family: 'Poppins', sans-serif;
}

.btn-view-product:hover {
  background: #b00321;
  color: #fff;
}

/* featured-card btn-cart como <a> */
a.btn-cart {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

a.btn-cart:hover { color: #fff; }

/* modern-card btn-cart como <a> */
a.btn-cart.w-100 {
  display: block;
}

/* ==============================
   IMG WRAPPER dentro del slider
============================== */
.product-card .img-wrapper {
  border-radius: 10px;
  overflow: hidden;
  background: #f7f8fa;
  margin-bottom: 8px;
}

.product-card .img-wrapper img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s ease;
  display: block;
}

.product-card:hover .img-wrapper img { transform: scale(1.06); }

@media (max-width: 991px) {
  .product-card .img-wrapper img { height: 100px; padding: 6px; }
}

@media (max-width: 575px) {
  .product-card .img-wrapper img { height: 85px; padding: 5px; }
}

/* ==============================
   TIPOGRAFÃA CARDS SLIDER
============================== */
.product-card .brand  { font-size: 11px; color: #999; margin: 6px 0 2px; }
.product-card .title  {
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  font-weight: 500;
  color: #222;
  line-height: 1.3;
  margin: 0 0 6px;
  /* Limitar a 2 lÃ­neas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price  { font-size: clamp(0.85rem, 2vw, 1rem); font-weight: 700; }
.product-card .msrp   { font-size: 10px; color: #aaa; display: block; margin-top: 2px; }
.product-card .discount {
  background: #d90429;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
}

/* ==============================
   FEATURED CARD â€” layout en mobile
============================== */
@media (max-width: 991px) {
  /* En tablet/mobile: featured card va encima del slider como fila completa */
  .col-lg-5.col-lg-5 { /* solo en contexto de procedure-chairs/exam-tables */
    margin-bottom: 1rem;
  }
  .featured-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    padding: 16px;
  }
  .featured-img-wrapper {
    flex: 0 0 140px;
    width: 140px;
  }
  .featured-img {
    max-height: 160px;
    margin-bottom: 0;
  }
  .featured-content { flex: 1; text-align: left; }
  .featured-content h3 { font-size: 0.9rem; }
  .featured-content .d-flex { flex-wrap: wrap; gap: 8px; }
  .featured-qv { display: none; } /* ocultar quick view en tablet */
}

@media (max-width: 575px) {
  .featured-img-wrapper { flex: 0 0 110px; width: 110px; }
  .featured-img { max-height: 130px; }
  .featured-content h3 { font-size: 0.82rem; }
  .price { font-size: 0.95rem; }
}

/* ==============================
   HOSPITAL BEDS & STRETCHERS
   modern-cards â€” 2 cols en mobile
============================== */
@media (max-width: 575px) {
  .hospital-beds .col-md-4,
  .stretchers-section .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .hospital-beds .row,
  .stretchers-section .row {
    row-gap: 12px !important;
  }
  .modern-card {
    padding: 10px;
    border-radius: 14px;
  }
  .modern-card .img-wrapper {
    padding: 8px;
    border-radius: 10px;
  }
  .modern-card img {
    height: 100px;
  }
  .card-body { padding: 8px 4px 4px; }
  .card-body .title { font-size: 0.72rem; }
  .card-body .price { font-size: 0.85rem; }
  .badge-top { font-size: 9px; padding: 3px 5px; }
}


/* ==============================
   MODAL â€” rediseÃ±o compacto y funcional
============================== */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.product-modal.active { display: flex; }

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  width: min(92vw, 560px);   /* nunca mÃ¡s de 560px */
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.28s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* Close button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f1f1;
  transition: background 0.2s;
}
.close-modal:hover { background: #e0e0e0; }

/* Body layout: image left, info right */
.modal-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 280px;
}

/* Image panel */
.modal-body img#modalImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f8fa;
  padding: 24px 16px;
  border-radius: 20px 0 0 20px;
  display: block;
}

/* Info panel */
.modal-body > div:last-child {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

#modalTitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin: 0;
}

#modalPrice {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #d90429;
  margin: 0;
}

#modalLink {
  display: inline-block;
  background: #d90429;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.25s, transform 0.2s;
  width: fit-content;
}
#modalLink:hover {
  background: #b00321;
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile modal: stacked */
@media (max-width: 575px) {
  .modal-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .modal-body img#modalImg {
    height: 180px;
    border-radius: 20px 20px 0 0;
    padding: 20px;
  }
  .modal-body > div:last-child {
    padding: 16px 20px 20px;
  }
  #modalLink { width: 100%; text-align: center; }
}

/* ==============================
   NR SECTION â€” labels visibles sobre la imagen
============================== */
.nr-label {
  display: inline-block;
  background: rgb(255 255 255 / 0%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 10px;
  border: 1px solid rgb(255 255 255 / 58%);
  box-shadow: 0 4px 16px rgb(255 255 255 / 25%);
}

/* ==============================
   GENERAL POLISH â€” mejoras globales
============================== */

/* Carousel hero â€” bordes redondeados */
.carousel-inner.rounded-4 {
  border-radius: 16px !important;
  overflow: hidden;
}

/* Category cards â€” sombra mÃ¡s suave */
.category-card {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

/* Featured autoclaves banner â€” border radius */
.featured-autoclaves .container {
  border-radius: 16px;
  overflow: hidden;
}
.featured-autoclaves img {
  border-radius: 16px;
  display: block;
}

/* Section header divider accent */
.section-header::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #d90429;
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Benefit rows â€” hover mÃ¡s sutil */
.benefit-row:hover {
  background: #fff5f5;
}

/* Brands slider â€” fade masks */
.brands-slider::before { width: 60px; }
.brands-slider::after  { width: 60px; }

/* NR section â€” smooth hover on cards */
.nr-card {
  transition: box-shadow 0.3s ease;
}
.nr-card:hover {
}

/* Smooth link transitions throughout */
a { transition: color 0.2s ease, opacity 0.2s ease; }

/* Section padding more breathing room on desktop */
@media (min-width: 992px) {
  .py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

/* Scroll to top feel */
html { scroll-behavior: smooth; }

/* ==============================
   MOBILE MENU â€” hamburger + nav panel
============================== */

/* Hamburger button */
.page-header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.page-header__menu-btn:hover,
.page-header__menu-btn:focus {
  background: rgba(0,0,0,0.06);
  outline: none;
}

/* The 3 bars via the <span> child */
.page-header__menu-btn span,
.page-header__menu-btn span::before,
.page-header__menu-btn span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-header__menu-btn span {
  position: relative;
}

.page-header__menu-btn span::before {
  position: absolute;
  top: -7px;
}

.page-header__menu-btn span::after {
  position: absolute;
  top: 7px;
}

/* Animate to X when active */
.page-header__menu-btn.is-active span {
  background: transparent;
}
.page-header__menu-btn.is-active span::before {
  transform: translateY(7px) rotate(45deg);
}
.page-header__menu-btn.is-active span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* â”€â”€ Nav Panel (mobile) â”€â”€ */
@media (max-width: 991px) {

  #nav-panel {
    /* Hidden by default on mobile */
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-top: 2px solid #d90429;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 12px 0 20px;
    animation: slideDown 0.25s ease;
  }

  #nav-panel.nav-panel--open {
    display: block !important;
    visibility: visible;
    z-index: 999999999;
    height: auto;
    width: 100%;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Make header position: relative so nav-panel is positioned below it */
  .page-header {
    position: relative;
  }

  /* Nav items stacked */
  .nav-main__list {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 16px;
    gap: 0;
  }

  .nav-main__item {
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-main__item:last-child { border-bottom: none; }

  .nav-main__link {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
  }
  .nav-main__link:hover { color: #d90429; }

  /* Submenu toggle row */
  .nav-main__item .d-flex {
    padding: 0;
  }

  .nav-main__btn {
    padding: 12px 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-main__btn .fa-chevron-down {
    transition: transform 0.25s ease;
    font-size: 12px;
  }

  /* Dropdown â€” hidden by default */
  .nav-dropdown {
    display: none;
    padding: 8px 0 12px 12px;
    background: #fafafa;
    border-radius: 8px;
    margin: 0 0 8px;
  }

  .nav-dropdown--open {
    display: block !important;
  }

  /* Dropdown links */
  .nav-dropdown__links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-list__item { list-style: none; }

  .nav-list__link {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
  }

  .nav-list__link:hover {
    background: #fff0f0;
    color: #d90429;
  }

  /* Hide dropdown image/content in mobile */
  .nav-dropdown__content { display: none; }

  /* Secondary nav (Brands, Sales) */
  #main-navigation-secondary .nav-main__list {
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 4px;
  }
}