/* SEVETCO - Estilos propios sobre Bootstrap 5 */

:root {
  --azul: #1f3864;
  --azul-claro: #eaeeF7;
  --fondo: #f4f6fa;
}

body {
  background: var(--fondo);
  font-family: "Segoe UI", Roboto, system-ui, Arial, sans-serif;
  color: #1a1a1a;
}

.icono-16 { width: 16px; height: 16px; }
.icono-18 { width: 18px; height: 18px; }
.icono-20 { width: 20px; height: 20px; }
.icono-24 { width: 24px; height: 24px; }

.btn-sevetco {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
}

.btn-sevetco:hover,
.btn-sevetco:focus {
  background: #2b4a80;
  border-color: #2b4a80;
  color: #fff;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--azul), #2f548e);
}

.login__tarjeta { width: min(440px, 100%); border: none; border-radius: 16px; }
.login__logo { width: 56px; height: 56px; margin: 0 auto; }

/* Ojo para ver u ocultar la contrasena en el ingreso. */
.campo-clave { position: relative; }
.campo-clave .form-control { padding-right: 44px; }
.ojo-clave {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  line-height: 0;
  cursor: pointer;
}
.ojo-clave img { width: 22px; height: 22px; opacity: .6; }
.ojo-clave:hover img { opacity: 1; }

.menu__logo { width: 30px; height: 30px; border-radius: 8px; }
.login__titulo { color: var(--azul); letter-spacing: 1px; }

.nav-pills .nav-link { color: var(--azul); }
.nav-pills .nav-link.active { background: var(--azul); }

.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.menu {
  background: var(--azul);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
}

.menu__marca { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.menu__marca img { width: 28px; height: 28px; filter: invert(1); }
.menu__marca span { font-weight: 700; font-size: 18px; letter-spacing: 1px; }

.menu__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }

.menu__nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #d6def0;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
}

.menu__nav button img { width: 18px; height: 18px; filter: invert(1); opacity: .85; }
.menu__nav button:hover { background: rgba(255, 255, 255, .10); }
.menu__nav button.activo { background: rgba(255, 255, 255, .20); color: #fff; font-weight: 600; }

.menu__pie { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 12px; margin-top: 12px; }
.menu__usuario { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.menu__usuario img { width: 32px; height: 32px; filter: invert(1); }
.menu__usuario img.foto-real {
  filter: none;
  border-radius: 50%;
  object-fit: cover;
}
.menu__usuario img.foto-real { width: 48px; height: 48px; }
.menu__usuario strong { font-size: 14px; }

/* Foto del usuario en las tablas del panel. */
.celda-usuario { display: flex; align-items: center; gap: 10px; }
.avatar-usuario {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eaeef7;
  flex: 0 0 auto;
}
.avatar-mascota {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eaeef7;
  flex: 0 0 auto;
}
.avatar-vacio { opacity: .5; }

/* Mapa dentro de los formularios del panel. */
.mapa-ruta {
  display: none;
  height: 260px;
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #eaeef7;
}
.mapa-ruta.visible { display: block; }
.menu__usuario small { font-size: 12px; color: #b9c6e2; }

.contenido { padding: 24px 28px 60px; overflow-x: auto; }

.cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.cabecera h2 { margin: 0; font-size: 22px; color: var(--azul); font-weight: 700; }

.tarjeta-resumen { border: 1px solid #dfe3ea; border-radius: 10px; background: #fff; }
.tarjeta-resumen img { width: 28px; height: 28px; }
.tarjeta-resumen__valor { font-size: 24px; font-weight: 700; color: var(--azul); line-height: 1; }
.tarjeta-resumen__etiqueta { font-size: 13px; color: #6b7280; }

.table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #6b7280;
}

.table td { vertical-align: middle; }

.linea-tiempo { list-style: none; margin: 0; padding: 0; }
.linea-tiempo li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #dfe3ea; }
.linea-tiempo img { width: 20px; height: 20px; margin-top: 2px; }
.linea-tiempo time { color: #6b7280; font-size: 12px; }

.aviso {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--azul);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  z-index: 1080;
  max-width: 340px;
}

.aviso--error { background: #b3261e; }

/* Cards de eventos y promociones (iguales a las de la app movil) */

.card-contenido {
  position: relative;
  min-height: 230px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.card-contenido__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, .9) 100%);
}

.card-contenido__texto {
  position: relative;
  padding: 18px;
  color: #fff;
}

.card-contenido__texto h5 {
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
}

.card-contenido__cuando { font-size: 13px; color: #ededed; }
.card-contenido__texto p { font-size: 14px; margin: 8px 0 0; color: #fff; }

.card-contenido__descuento {
  display: inline-block;
  margin-top: 10px;
  background: #2e7d53;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .menu__nav { flex-direction: row; flex-wrap: wrap; }
}

