/* ========================================================
   CISMEDICA – Estilos MediBazar Style
   ======================================================== */

:root {
  --primary: #0e82fd;
  --primary-dark: #0066d6;
  --primary-light: #e8f3ff;
  --secondary: #00b894;
  --whatsapp: #25d366;
  --whatsapp-dark: #1db954;
  --dark: #1a1f2e;
  --dark-mid: #2d3348;
  --text: #333;
  --text-light: #6c757d;
  --text-muted: #adb5bd;
  --border: #e9ecef;
  --bg: #f8f9fa;
  --white: #fff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --transition: 0.22s ease;
  --font: 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar i { margin-right: 5px; color: var(--primary); }

/* ===================== HEADER ===================== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { height: 44px; width: auto; }
.logo__text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo__sub {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
  display: block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: -4px;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  color: var(--text);
  padding: 8px 13px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav__link:hover { color: var(--primary); background: var(--primary-light); }
.nav__link.active { color: var(--primary); font-weight: 600; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px 4px;
  transition: color var(--transition);
}
.nav__toggle:hover { color: var(--primary); }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(120deg, #e8f3ff 0%, #f0faff 50%, #e0f5ee 100%);
  padding: 0;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: stretch;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 460px;
  width: 100%;
}
.hero__content {
  padding: 60px 50px 60px 0;
}
.hero__tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero__title span { color: var(--primary); }
.hero__desc {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 420px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
}
.hero__img img {
  max-height: 380px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(14,130,253,0.15));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero__img-badge {
  position: absolute;
  bottom: 50px;
  left: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.hero__img-badge i { font-size: 1.5rem; color: var(--primary); }
.hero__img-badge strong { display: block; color: var(--dark); font-size: 0.95rem; }
.hero__img-badge span { color: var(--text-light); font-size: 0.78rem; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,130,253,0.35); }
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  padding: 10px 22px;
}
.btn--outline:hover { background: var(--primary); color: var(--white); transform: translateY(-1px); }
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn--whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,211,102,0.4); }
.btn--dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn--dark:hover { background: var(--dark-mid); }
.btn--sm { padding: 8px 16px; font-size: 0.82rem; }
.btn--block { width: 100%; justify-content: center; }

/* ===================== SECTIONS ===================== */
.section { padding: 72px 0; }
.section--gray { background: var(--bg); }
.section--dark { background: var(--dark); }
.section__head {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.section__tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 10px auto 0;
}
.section__desc { color: var(--text-light); font-size: 0.95rem; max-width: 520px; margin: 0 auto; }

/* ===================== CATEGORY PILLS ===================== */
.cat-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 120px;
  text-align: center;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-pill__icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  transition: background var(--transition);
}
.cat-pill:hover .cat-pill__icon, .cat-pill.active .cat-pill__icon {
  background: var(--primary);
  color: var(--white);
}
.cat-pill__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ===================== CATEGORY CARDS (full) ===================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.category-card__img-wrap {
  height: 190px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.category-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--transition);
}
.category-card:hover .category-card__img-wrap img { transform: scale(1.06); }
.category-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.category-card__body h3 { font-size: 1rem; color: var(--dark); font-weight: 700; }
.category-card__body p { color: var(--text-light); font-size: 0.85rem; flex: 1; line-height: 1.5; }
.category-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.category-card__count {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

/* ===================== PRODUCT CARDS ===================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  padding: 50px 0;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  z-index: 2;
}
.product-card__img {
  height: 200px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--transition);
}
.product-card:hover .product-card__img img { transform: scale(1.07); }
.product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card__cat {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card__body h3 {
  font-size: 0.92rem;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}
.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* ===================== PRODUCT DETAIL ===================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
  align-items: start;
}
.product-detail__gallery { position: sticky; top: 90px; }
.product-detail__main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 24px;
}
.product-detail__main-img img {
  max-height: 380px;
  width: 100%;
  object-fit: contain;
}
.product-detail__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-detail__thumb {
  width: 70px; height: 70px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  transition: border-color var(--transition);
}
.product-detail__thumb:hover, .product-detail__thumb.active { border-color: var(--primary); }
.product-detail__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail__info { display: flex; flex-direction: column; gap: 20px; }
.product-detail__category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-detail__category::before {
  content: '';
  display: inline-block;
  width: 18px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.product-detail__title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--dark);
  line-height: 1.3;
  font-weight: 800;
}
.product-detail__divider {
  height: 1px;
  background: var(--border);
}
.product-detail__desc {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
}
.product-detail__desc ul { padding-left: 18px; list-style: none; }
.product-detail__desc ul li {
  padding: 4px 0;
  position: relative;
  padding-left: 20px;
}
.product-detail__desc ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}
.product-detail__actions { display: flex; flex-direction: column; gap: 12px; }
.product-detail__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.trust-item i { color: var(--primary); font-size: 1rem; }

/* ===================== FEATURES STRIP ===================== */
.features-strip {
  background: var(--primary);
  padding: 28px 0;
}
.features-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.feature-item__icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-item__title { font-weight: 700; font-size: 0.92rem; }
.feature-item__sub { font-size: 0.78rem; color: rgba(255,255,255,0.75); }

/* ===================== BRANDS CAROUSEL ===================== */
.brands-carousel-wrap {
  overflow: hidden;
  position: relative;
  padding: 10px 0 20px;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: brands-scroll 22s linear infinite;
}
.brands-carousel-wrap:hover .brands-track {
  animation-play-state: paused;
}
@keyframes brands-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-logo-item {
  flex-shrink: 0;
  width: 178px;
  height: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.brand-logo-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.brand-logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter var(--transition);
}
.brand-logo-item:hover img {
  filter: grayscale(0%);
}

/* ===================== CONTACT QUICK ===================== */
.contact-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-quick h2 { font-size: 1.6rem; color: var(--dark); margin-bottom: 12px; font-weight: 800; }
.contact-quick > div:first-child p { color: var(--text-light); margin-bottom: 20px; }
.contact-quick__list { display: flex; flex-direction: column; gap: 10px; }
.contact-quick__list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.contact-quick__list a { color: var(--primary); font-weight: 600; }
.contact-quick__list a:hover { text-decoration: underline; }
.contact-quick__list i { color: var(--primary); width: 18px; text-align: center; }
.contact-quick__cta { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  padding: 52px 20px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.08;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.08;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; font-weight: 800; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto 22px; font-size: 0.95rem; position: relative; z-index: 1; }
.page-hero .btn { position: relative; z-index: 1; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ===================== RELATED ===================== */
.related-section { padding: 50px 0; background: var(--bg); }
.related-section h2 { font-size: 1.3rem; color: var(--dark); margin-bottom: 28px; font-weight: 700; }

/* ===================== CONTACT PAGE ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,130,253,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 8px; font-weight: 700; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item i { font-size: 1.2rem; color: var(--primary); margin-top: 3px; width: 22px; }
.contact-info-item p { font-size: 0.92rem; color: var(--text-light); }
.contact-info-item a { color: var(--primary); font-weight: 600; }
.contact-info-item a:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.footer__logo span { color: var(--primary); }
.footer__brand p { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer__brand .footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--primary); color: var(--white); }
.footer__col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
.footer__col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer__col a:hover { color: var(--white); padding-left: 4px; }
.footer__col a i { font-size: 0.7rem; color: var(--primary); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.footer__contact-item i { color: var(--primary); margin-top: 2px; width: 14px; }
.footer__contact-item a { color: rgba(255,255,255,0.6); }
.footer__contact-item a:hover { color: var(--white); }
.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform var(--transition);
  animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); }
.whatsapp-float i { font-size: 1.7rem; color: var(--white); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .features-strip__grid { grid-template-columns: repeat(2,1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__img { display: none; }
  .hero__content { padding: 50px 0; text-align: center; }
  .hero__desc { margin: 0 auto 28px; }
  .hero__actions { justify-content: center; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__gallery { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar__left { display: none; }
  .nav__toggle { display: block; }

  /* Overlay oscuro detrás del menú */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav-overlay.open { display: block; }

  /* Drawer deslizante desde arriba */
  .nav {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--white);
    z-index: 999;
    padding: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
  }
  .nav.open {
    transform: translateY(0);
  }

  /* Cabecera del drawer */
  .nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--dark);
  }  .nav__header-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
  }
  .nav__header-logo span { color: var(--primary); }
  .nav__close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
  }
  .nav__close:hover { background: rgba(255,255,255,0.2); }

  /* Links del drawer */
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 10px 12px 16px;
  }
  .nav__link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
  }
  .nav__link::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition);
  }
  .nav__link:hover, .nav__link.active {
    background: var(--primary-light);
    color: var(--primary);
  }
  .nav__link:hover::before, .nav__link.active::before { opacity: 1; }

  /* Botón hamburguesa animado */
  .nav__toggle { display: flex; align-items: center; justify-content: center; }
  .nav__toggle.open { border-color: var(--primary); color: var(--primary); }

  .header__inner { position: relative; flex-wrap: wrap; padding: 12px 20px; }
  .features-strip__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-quick { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .categories-grid { grid-template-columns: 1fr; }
  .cat-pills { gap: 8px; }
  .cat-pill { min-width: 90px; padding: 14px 12px; }
  .features-strip__grid { grid-template-columns: 1fr; }
}

/* Ocultar header del drawer en escritorio */
.nav__header { display: none; }

/* --- Tablets apaisadas y medianas (601-900px) --- */
@media (max-width: 900px) and (min-width: 601px) {
  .section { padding: 52px 0; }
  .hero { min-height: 340px; }
  .hero__content { padding: 40px 0; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .features-strip { padding: 20px 0; }
  .features-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact-quick { gap: 28px; }
}

/* --- Móviles grandes (481-600px) --- */
@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .section__head { margin-bottom: 32px; }

  /* Hero */
  .hero { min-height: unset; }
  .hero__content { padding: 40px 0 36px; }
  .hero__tag { font-size: 0.7rem; padding: 4px 12px; }
  .hero__title { font-size: 1.6rem; }
  .hero__desc { font-size: 0.9rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  /* Page hero */
  .page-hero { padding: 36px 16px; }
  .page-hero h1 { font-size: 1.4rem; }
  .page-hero p { font-size: 0.88rem; }

  /* Features strip */
  .features-strip { padding: 20px 0; }
  .features-strip__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-item { gap: 10px; }
  .feature-item__icon { width: 40px; height: 40px; font-size: 1rem; }
  .feature-item__title { font-size: 0.82rem; }
  .feature-item__sub { display: none; }

  /* Cards */
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 32px 0; }
  .product-card__img { height: 150px; }
  .product-card__body { padding: 12px; gap: 8px; }
  .product-card__body h3 { font-size: 0.82rem; }
  .product-card__actions .btn { padding: 7px 10px; font-size: 0.75rem; }

  /* Pills categorías */
  .cat-pills { gap: 8px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .cat-pill { min-width: 82px; padding: 12px 10px; flex-shrink: 0; }
  .cat-pill__icon { width: 42px; height: 42px; font-size: 1.1rem; }
  .cat-pill__name { font-size: 0.72rem; }

  /* Contact quick */
  .contact-quick { gap: 24px; }
  .contact-quick h2 { font-size: 1.3rem; }
  .contact-quick__cta { min-width: unset; }
  .contact-quick__cta .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer__inner { gap: 24px; padding-bottom: 28px; }
  .footer__bottom { gap: 10px; padding: 16px 0; font-size: 0.78rem; }
  .footer__bottom img { height: 34px !important; }

  /* Producto detalle */
  .product-detail { padding: 32px 0; gap: 28px; }
  .product-detail__main-img { min-height: 220px; padding: 16px; }
  .product-detail__title { font-size: 1.3rem; }

  /* WhatsApp float */
  .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 16px; }
  .whatsapp-float i { font-size: 1.5rem; }

  /* Topbar — oculto completo en móvil pequeño */
  .topbar { display: none; }

  /* Brands carousel */
  .brand-logo-item { width: 130px; height: 88px; }
}

/* --- Móviles pequeños (≤ 390px — iPhone SE, Galaxy S) --- */
@media (max-width: 390px) {
  body { font-size: 14px; }
  .container { padding: 0 14px; }

  .logo__text { font-size: 1.3rem; }
  .logo__sub { display: none; }

  .hero__title { font-size: 1.4rem; }
  .hero__content { padding: 32px 0; }

  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card__img { height: 180px; }

  .cat-pills { gap: 6px; }
  .cat-pill { min-width: 74px; padding: 10px 8px; }

  .btn { padding: 10px 18px; font-size: 0.85rem; }
  .btn--sm { padding: 7px 12px; font-size: 0.78rem; }

  .features-strip__grid { grid-template-columns: 1fr; }
  .feature-item { gap: 12px; }
  .feature-item__sub { display: none; }

  .section { padding: 36px 0; }
  .page-hero { padding: 28px 14px; }

  .footer__inner { grid-template-columns: 1fr; }
}

/* --- Landscape en móvil (altura < 500px) --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 280px; }
  .hero__content { padding: 24px 0; }
  .hero__title { font-size: 1.4rem; }
  .hero__desc { display: none; }
  .page-hero { padding: 24px 16px; }
  .page-hero p { display: none; }
  .nav { max-height: 85vh; overflow-y: auto; }
}

/* --- Evitar overflow horizontal en cualquier pantalla --- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
