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

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

    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;
    }

    .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;
      }
  }
.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); }

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; }
}

@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; }
}

.header-sesion-grupo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 0 18px; }
.header-sesion-grupo .header-sesion-btn, .header-sesion-grupo .header-sesion-btn + .header-sesion-btn { margin: 0; white-space: nowrap; }
@media (max-width: 640px) {
  .header-sesion-grupo { margin-left: 14px; }
  .header-sesion-grupo .header-sesion-btn { padding: 6px 13px; font-size: 11px; }
}
@media (max-width: 480px) {
  .header-sesion-grupo { margin-left: 14px; }
}
@media (max-width: 640px) {
  header .header-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tit logo" "sub logo" "ses ses"; align-items: center; column-gap: 12px; row-gap: 0; }
  header .header-in .brand, header .header-in .brand > div { display: contents; }
  header .header-in .brand h1 { grid-area: tit; align-self: end; }
  header .header-in .brand p { grid-area: sub; align-self: start; margin-top: 5px; }
  header .header-in .header-right-logo { grid-area: logo; }
  header .header-in .header-sesion-grupo { grid-area: ses; margin: 12px 0 0; gap: 8px; }
  header .header-in .header-sesion-grupo .header-sesion-btn { flex: 0 0 auto; }
}
.header-sesion-grupo:not(:has(*)) { display: none !important; }

.header-enlace-btn { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; padding: 7px 16px; border: 1px solid rgba(194, 154, 82, .85); border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 11.5px 'Inter', sans-serif; letter-spacing: .03em; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.header-enlace-btn:hover, .header-enlace-btn:focus-visible { background: #fff; color: #691B3C; outline: none; }
@media (max-width: 640px) {
  header .header-in { grid-template-areas: "tit logo" "sub logo" "ses ses" "ext ext"; }
  header .header-in .header-enlace-btn { grid-area: ext; justify-self: start; margin: 10px 0 0 14px; }
}
