/* Tamaño proporcional del logo en todas las pantallas */
.hero__logo{
  width: clamp(180px, 18vw, 260px);
  height: auto;
}

/* Tamaño más grande del modal de Banner */
#bannerModal .modal__panel {
  width: min(1000px, 96vw);
  max-width: 1100px;
}

#bannerModal .modal__body {
  max-height: min(70vh, 720px);
  overflow: auto;
}

#bannerModal textarea#bannerText {
  min-height: 180px; /* más alto por defecto */
  font-size: 15px;
  line-height: 1.35;
}

/* Layout del label + tabs en el modal */
#bannerModal .field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#bannerModal .banner-tabs {
  display: flex;
  gap: 0.5rem;
}

#bannerModal .banner-tab {
  min-width: 32px;
  height: 32px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid #444;
  background: transparent;
  color: #f9fafb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#bannerModal .banner-tab.is-active {
  background: #a855f7;
  border-color: #a855f7;
  color: #fff;
}

/* Puntitos del carrusel debajo del banner */
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.banner-dots.hidden {
  display: none;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #ffffff33;
  padding: 0;
  cursor: pointer;
}

.banner-dot.is-active {
  background: #a855f7;
  transform: scale(1.2);
}

.banner-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Animación del banner de derecha a izquierda */
#bannerMessage {
  position: relative;
  overflow: hidden;
}

.banner-slide {
  animation: banner-slide-left 0.45s ease-out;
}

@keyframes banner-slide-left {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ====== Home – botones de categorías con look admin ====== */
.cta-grid{
  width:min(980px, 100%);
  margin:1.5rem auto 0;
  display:grid;
  grid-template-columns:repeat(3, minmax(180px, 1fr));
  gap:14px;
}

.cta-grid .btn-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:12px 22px;
  border-radius:14px;
  background:linear-gradient(180deg, #ffd86a 0%, #e8b127 100%);
  border:1px solid #8e6a12;
  color:#111;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  text-decoration:none;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.6),
    0 3px 8px rgba(0,0,0,.35);
  transition:filter .15s ease, transform .05s ease, box-shadow .15s ease;
}

.cta-grid .btn-cta:hover{
  filter:brightness(1.05);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.6),
    0 6px 14px rgba(0,0,0,.35);
}

.cta-grid .btn-cta:active{
  transform:translateY(1px);
}

.cta-grid .btn-cta:focus-visible{
  outline:2px solid #ffd966;
  outline-offset:3px;
}

/* ====== Home – header mobile fino ====== */
@media (max-width: 768px) {
  .topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    gap: 0.4rem;
  }

  .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand__logo {
    width: 32px;           /* más chico todavía */
    height: auto;
    flex-shrink: 0;
  }

  .brand__cta {
    font-size: 0.6rem;     /* texto más chico */
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .actions .btn {
    font-size: 0.7rem;
    padding: 0.1rem 0.7rem;   /* botón más bajito */
    height: 28px;
    min-width: auto;
    white-space: nowrap;
  }

  /* Barra de sesión (logueadx): solo botón arriba a la derecha en celu */
  #sessionBar {
    position: absolute;
    top: 0.4rem;
    right: 0.75rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  #sessionBar .session__greeting {
    display: none;
  }

  #sessionBar .session__actions .btn {
    font-size: 0.7rem;
    padding: 0.1rem 0.7rem;
    height: 26px;
  }

  /* Resto del home se mantiene */
  .hero {
    padding: 1.3rem 1rem 2rem;
  }

  .title {
    font-size: 1.15rem;
    text-align: center;
    padding: 0 0.5rem;
  }

  .well {
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }

  .cta-grid {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    width: 100%;
  }

  .cta-grid .btn {
    width: 100%;
  }

  .cta-grid .btn-cta{
    min-height:50px;
    padding:10px 16px;
    border-radius:12px;
  }
}

/* Solo en mobile: acortar texto de "Administrar equipos" a "Administrar" */
@media (max-width: 768px) {
  #btnAdminEquipos {
    display: flex;                /* centrado con flex */
    align-items: center;
    justify-content: center;
    font-size: 0;                 /* oculto el texto original */
    padding: 0 1rem;
    height: 28px;
    min-width: auto;
  }

  #btnAdminEquipos::after {
    content: "Adm. equipos";
    font-size: 0.7rem;
    line-height: 1;
    display: inline-block;
  }
}
