  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      -webkit-text-size-adjust: 100%;
      scroll-behavior: smooth;
    }

    /* Footer siempre pegado abajo: body como columna flex de altura mínima
       igual al viewport + footer con margin-top:auto empuja el footer hasta
       el fondo cuando el contenido es corto (ej. /inicio con pocos estados),
       sin afectar el scroll normal cuando el contenido es más alto que la
       pantalla. header.css se carga en TODAS las páginas (login/inicio/
       estado), así que esta regla aplica global sin tocar cada vista. */
    body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    footer {
      margin-top: auto;
      flex-shrink: 0;
    }

  header {
      background: linear-gradient(180deg, rgb(105, 27, 60) 0%, rgb(105, 27, 60) 100%);
      position: sticky;
      top: 0;
      z-index: 40;
    }

    .header-in {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      justify-content: space-between;
    }

    .header-right-logo {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .header-right-logo img {
      width: auto;
      height: 35px;
    }

    /* Botón "Salir" que vive en el header mismo (visible en TODAS las
       páginas, incluida /inicio, que no tiene la barra de tabs donde antes
       vivía el único botón de salir). */
    .header-salir-btn {
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
      font-size: 12.5px;
      font-weight: 700;
      letter-spacing: .2px;
      color: #fff;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.5);
      border-radius: 8px;
      padding: 7px 14px;
      cursor: pointer;
      transition: all .15s;
    }

    .header-salir-btn:hover {
      background: #fff;
      color: #691B3C;
      border-color: #fff;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .brand h1 {
      font-family: 'Archivo', sans-serif;
      font-weight: 900;
      font-size: 20px;
      letter-spacing: 1.5px;
      color: #fff;
    }

    .brand p {
      font-size: 11px;
      color: #ffeef5;
      font-weight: 500;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      margin-top: 2px;
    }

  @media (max-width: 640px) {
     .header-right-logo img {
        height: 25px;
      }
  }

  @media (max-width: 480px) {
    .brand h1 {
        font-size: 12px;
      }

      .brand p {
        font-size: 8px;
      }

      .header-right-logo img {
        height: 21px;
      }
  }
/* Botón Salir / Iniciar sesión junto al título del encabezado (2026-10-05) */
.header-sesion-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.header-sesion-btn:hover { background: rgba(255,255,255,.15); }

/* ===== Encabezado rediseñado (2026-10-20): degradado vino, línea dorada inferior, título con acento y botones en pastilla ===== */
header { background: linear-gradient(120deg, #7C2349 0%, #691B3C 48%, #4D1230 100%); border-bottom: 3px solid #A87C36; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.header-in { padding: 14px 24px; }
.brand h1 { font-size: 22px; letter-spacing: 1.2px; padding-left: 14px; border-left: 4px solid #A87C36; line-height: 1.1; }
.brand p { margin-top: 5px; padding-left: 18px; color: #F0D9E3; font-size: 11px; font-weight: 600; letter-spacing: .8px; }
.header-sesion-btn { margin: 8px 8px 0 18px; padding: 5px 15px; border: none; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; transition: background .15s, color .15s; }
.header-sesion-btn + .header-sesion-btn { margin-left: 0; }
.header-sesion-btn:hover { background: #fff; color: #691B3C; }
.header-right-logo { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .2); }
.header-right-logo img { height: 38px; }
@media (max-width: 640px) {
  .header-right-logo { padding-left: 12px; }
  .header-right-logo img { height: 25px; }
  .brand h1 { font-size: 15px; }
}
@media (max-width: 480px) {
  .brand h1 { font-size: 12px; padding-left: 10px; }
  .brand p { padding-left: 14px; }
  .header-sesion-btn { margin-left: 14px; }
  .header-right-logo img { height: 21px; }
}

/* ===== Barra de desplazamiento rediseñada (2026-10-20): delgada, riel rosado claro, pulgar vino con borde de riel y dorado al pasar el cursor ===== */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: #F3E9EE; border-radius: 10px; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7C2349, #691B3C); border: 3px solid #F3E9EE; border-radius: 10px; min-height: 40px; min-width: 40px; }
  ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #B98A3E, #A87C36); }
  ::-webkit-scrollbar-thumb:active { background: #8E6528; }
  ::-webkit-scrollbar-corner { background: #F3E9EE; }
}
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #691B3C #F3E9EE; }
}
