/* Estilos aislados para los botones de logos (hero y galería) */

/* Contenedor de los botones de marca */
.brand-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 20px 0 28px;
}

/* Mejora responsiva: permitir salto de línea en tablets/chico */
@media (max-width: 900px) {
  .brand-tabs { flex-wrap: wrap; }
}

/* Botones de logo (dos variantes usadas en home y gallery) */
.brand-tabs .tab,
.brand-tabs .tab-btn,
.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  box-sizing: border-box;
  width: 360px;   /* aumentado desde 300px */
  height: 260px;  /* aumentado desde 220px */
  padding: 16px;
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

/* Estados */
.brand-tabs .tab:hover,
.brand-tabs .tab-btn:hover,
.tab-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 212, 0, .15);
}

.brand-tabs .tab.active,
.brand-tabs .tab:focus-visible,
.brand-tabs .tab-btn:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

/* Imagen del logo dentro del botón */
.brand-tabs .tab img,
.brand-tabs .tab-btn img,
.tab-btn img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Tamaño máximo del logo (no del botón) */
.brand-tabs .tab img,
.brand-tabs .tab-btn img {
  max-height: 200px; /* aumentado desde 160px en desktop */
}

/* Responsive: reducir en pantallas chicas */
@media (max-width: 700px) {
  .brand-tabs .tab,
  .brand-tabs .tab-btn,
  .tab-btn {
    width: 280px;   /* aumentado desde 240px */
    height: 210px;  /* aumentado desde 180px */
    padding: 12px;
  }
  .brand-tabs .tab img,
  .brand-tabs .tab-btn img { max-height: 160px; /* aumentado desde 128px */ }
}

@media (max-width: 420px) {
  .brand-tabs {
    gap: 12px;
    flex-direction: column;   /* apilado vertical */
    align-items: center;
  }
  .brand-tabs .tab,
  .brand-tabs .tab-btn,
  .tab-btn {
    width: 100%;
    max-width: 300px;         /* encaja en móviles estrechos */
    height: auto;
    aspect-ratio: 16 / 10;    /* mantiene proporción del marco */
    padding: 12px;
    border-radius: 16px;
  }
  .brand-tabs .tab img,
  .brand-tabs .tab-btn img { max-height: 110px; /* aumentado desde 84px */ }
}

/* Contenedor de galería (masonry y carousels) */
.gallery { padding-top: 8px; }
.masonry { margin-bottom: 24px; }
.carousel { margin: 8px 0 24px; }
@media (max-width: 700px) {
  .brand-tabs { gap: 18px; margin: 14px 0 18px; }
}

/* Gallery: acento amarillo y estado activo más notorio */
#gallery-root .brand-tabs .tab-btn:hover,
#gallery-root .brand-tabs .tab-btn:focus-visible {
  border-color: var(--accent);
  outline-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, .18);
}

#gallery-root .brand-tabs .tab-btn[aria-selected="true"],
#gallery-root .brand-tabs .tab-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .26), 0 8px 26px rgba(0,0,0,.35);
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(180deg, rgba(255,212,0,.08), rgba(255,212,0,.02));
}

/* Dots del carrusel en Galería con amarillo */
#gallery-root .carousel .carousel-dots button.active {
  background: var(--accent);
}

/* Media tabs (Fotos/Videos) */
.media-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}
.media-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: #0f1118;
  color: var(--fg);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, transform .15s ease;
}
.media-tab:hover,
.media-tab:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,212,0,.18);
}
.media-tab.active,
.media-tab[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(255,212,0,.12), rgba(255,212,0,.04));
  border-color: var(--accent);
  color: var(--fg);
}