/* ═══════════════════════════════════════════════════
   Farmacia Tañá — Página de marcas v1.4
   ═══════════════════════════════════════════════════ */

.is-hidden { display: none !important; }

.tana-brands-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ── 1. HERO ── */
.tana-hero {
  background: linear-gradient(135deg, var(--second_color, #3d2e45) 0%, #5a3d6a 100%);
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.tana-hero::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(181,135,209,0.1);
  border-radius: 50%;
  pointer-events: none;
}
.tana-hero__title {
  font-size: 26px; font-weight: 700; color: #fff;
  margin: 0 0 8px; line-height: 1.25; max-width: 600px;
}
.tana-hero__subtitle {
  font-size: 14px; color: rgba(255,255,255,0.75);
  margin: 0 0 20px; line-height: 1.5;
}
.tana-hero__badges { display: flex; flex-wrap: wrap; gap: 16px; }
.tana-hero__badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.9);
}
.tana-hero__badge-icon {
  width: 22px; height: 22px;
  background: rgba(181,135,209,0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; flex-shrink: 0;
}

/* ── 2. TOP MARCAS ── */
.tana-section-title {
  font-size: 20px; font-weight: 700;
  color: var(--color_font, #000); margin: 0 0 14px;
}
.tana-top-brands { margin-bottom: 28px; }
.tana-top-brands__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.tana-top-brands__card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px; background: #fff;
  border: 1px solid #eee; border-radius: 10px;
  text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.tana-top-brands__card:hover {
  border-color: var(--primary_color, #b587d1);
  box-shadow: 0 4px 16px rgba(61,46,69,0.08);
  text-decoration: none;
}
.tana-top-brands__img-wrap {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; background: #faf7fc;
  border-radius: 8px; overflow: hidden;
}
.tana-top-brands__img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tana-top-brands__name {
  font-size: 14px; font-weight: 600;
  color: var(--color_font, #000); text-align: center; line-height: 1.3;
}
.tana-top-brands__count {
  font-size: 12px; color: var(--primary_color, #b587d1); margin-top: 2px;
}

/* ── 3. GAMAS DESTACADAS (necesidades) ── */
.tana-needs { margin-bottom: 28px; }
.tana-needs__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
a.tana-needs__card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 16px; border-radius: 10px;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
a.tana-needs__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-decoration: none;
}
.tana-needs__icon { font-size: 24px; flex-shrink: 0; }
.tana-needs__text { flex: 1; min-width: 0; }
.tana-needs__title {
  font-size: 15px; font-weight: 600; display: block; margin-bottom: 2px;
}
.tana-needs__count { font-size: 12px; display: block; }
.tana-needs__arrow {
  font-size: 18px; flex-shrink: 0; opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}
a.tana-needs__card:hover .tana-needs__arrow {
  opacity: 1; transform: translateX(3px);
}

/* ── 4. CTA WHATSAPP ── */
.tana-cta-whatsapp {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: #faf7fc; border-radius: 10px;
  padding: 18px 22px; margin-bottom: 28px;
}
.tana-cta-whatsapp__title {
  font-size: 15px; font-weight: 600;
  color: var(--second_color, #3d2e45); margin: 0;
}
.tana-cta-whatsapp__subtitle { font-size: 13px; color: #8a6d9e; margin: 3px 0 0; }
.tana-cta-whatsapp__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 20px; text-decoration: none;
  white-space: nowrap; transition: background 0.2s;
}
.tana-cta-whatsapp__btn:hover { background: #1ebd5a; color: #fff; text-decoration: none; }
.tana-cta-whatsapp__btn svg { width: 16px; height: 16px; }

/* ── 5. LISTADO MARCAS A-Z ── */
.tana-all-brands { margin-bottom: 28px; }

.tana-brands-search { position: relative; margin-bottom: 16px; max-width: 400px; }
.tana-brands-search__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: #aaa; pointer-events: none;
}
.tana-brands-search__input {
  width: 100%; height: 40px; padding: 0 14px 0 40px;
  border: 1px solid #ddd; border-radius: 20px; font-size: 14px;
  color: var(--color_font, #000); background: #fff;
  outline: none; transition: border-color 0.2s;
}
.tana-brands-search__input:focus { border-color: var(--primary_color, #b587d1); }

.tana-brands-index { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.tana-brands-index__letter {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; font-size: 13px; font-weight: 600;
  color: var(--second_color, #3d2e45); background: #f0ecf3;
  border-radius: 8px; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.tana-brands-index__letter:hover,
.tana-brands-index__letter.active {
  background: var(--second_color, #3d2e45); color: #fff; text-decoration: none;
}

.tana-brands-block { margin-bottom: 24px; }
.tana-brands-block__letter {
  font-size: 18px; font-weight: 700;
  color: var(--second_color, #3d2e45); margin: 0 0 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--primary_color, #b587d1);
  display: inline-block;
}
.tana-brands-block__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px;
}

/* Miniatura marca */
.tana-brand-mini__link {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 8px; background: #fff; border: 1px solid #f0f0f0;
  border-radius: 8px; text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s; height: 100%;
}
.tana-brand-mini__link:hover {
  border-color: var(--primary_color, #b587d1);
  box-shadow: 0 2px 8px rgba(61,46,69,0.06); text-decoration: none;
}
.tana-brand-mini__img-wrap {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; background: #f9f9f9; border-radius: 6px; overflow: hidden;
}
.tana-brand-mini__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tana-brand-mini__placeholder {
  font-size: 18px; font-weight: 700;
  color: var(--primary_color, #b587d1); opacity: 0.5;
}
.tana-brand-mini__name {
  font-size: 12px; font-weight: 500; color: var(--color_font, #000);
  text-align: center; line-height: 1.3; word-break: break-word;
}

/* ── 6. TODAS LAS GAMAS ── */
.tana-all-gamas { margin-bottom: 28px; }
.tana-all-gamas__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.tana-all-gamas__card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #fff; border: 1px solid #f0f0f0;
  border-radius: 8px; text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tana-all-gamas__card:hover {
  border-color: var(--primary_color, #b587d1);
  box-shadow: 0 2px 8px rgba(61,46,69,0.06); text-decoration: none;
}
.tana-all-gamas__img-wrap {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #faf7fc; border-radius: 6px; overflow: hidden;
}
.tana-all-gamas__img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tana-all-gamas__name {
  font-size: 13px; font-weight: 600; color: var(--color_font, #000);
  display: block; line-height: 1.3;
}
.tana-all-gamas__count {
  font-size: 11px; color: var(--primary_color, #b587d1); display: block; margin-top: 1px;
}

/* ── 7. CAPTACIÓN ── */
.tana-capture { margin-bottom: 28px; }
.tana-capture__content {
  background: var(--second_color, #3d2e45); border-radius: 10px;
  padding: 22px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.tana-capture__title { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 3px; }
.tana-capture__subtitle { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }
.tana-capture__btn {
  display: inline-block; background: var(--primary_color, #b587d1);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 20px; text-decoration: none;
  white-space: nowrap; transition: background 0.2s;
}
.tana-capture__btn:hover { background: #a070c0; color: #fff; text-decoration: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 991px) {
  .tana-top-brands__grid { grid-template-columns: repeat(3, 1fr); }
  .tana-needs__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .tana-hero { padding: 24px 20px; border-radius: 0; margin-left: -15px; margin-right: -15px; }
  .tana-hero__title { font-size: 20px; }
  .tana-hero__badges { gap: 10px; }
  .tana-hero__badge { font-size: 12px; }

  .tana-top-brands__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tana-top-brands__card { padding: 14px 10px; }
  .tana-top-brands__img-wrap { width: 60px; height: 60px; }

  .tana-needs__grid { grid-template-columns: 1fr; gap: 8px; }
  a.tana-needs__card { padding: 14px 16px; }

  .tana-cta-whatsapp {
    flex-direction: column; text-align: center; gap: 12px; padding: 16px;
  }

  .tana-brands-search { max-width: 100%; }
  .tana-brands-index__letter { width: 28px; height: 28px; font-size: 12px; }
  .tana-brands-block__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tana-brand-mini__img-wrap { width: 50px; height: 50px; }
  .tana-brand-mini__name { font-size: 11px; }
  .tana-brand-mini__link { padding: 10px 6px; }

  .tana-all-gamas__grid { grid-template-columns: repeat(2, 1fr); }

  .tana-capture__content {
    flex-direction: column; text-align: center; gap: 12px; padding: 18px 16px;
  }
}

@media (max-width: 479px) {
  .tana-top-brands__grid { grid-template-columns: repeat(2, 1fr); }
  .tana-brands-block__grid { grid-template-columns: repeat(2, 1fr); }
  .tana-all-gamas__grid { grid-template-columns: 1fr; }
  .tana-hero__badges { flex-direction: column; gap: 6px; }
}
