@import url("./fonts.css");
@import url("./utils.css");

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  margin: 0;
}
#app {
  width: 100%;
  min-height: calc(100vh - 41px - 50px);
  min-height: calc(100svh - 41px - 50px);
  height: 100%;
  background: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.app-not-auth {
  min-height: 100vh !important;
  min-height: 100svh !important;
}
:root {
  --primary: #005199;
  --primary-light: #3d7bb1;
  --primary-dark: #024580;
  --orange: #ff883b;
  --secondary: #fff;
  --gray: #b8b8b8;
  --gray-dark: #231f2080;
  --yellow: #ffe01b;
  --dark: #231f20;
}

footer {
  display: flex;
  height: 41px;
  padding: 15px 0px 10px 0px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  align-self: stretch;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 80%; /* 16px */
  /* position: fixed; */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: var(--primary);
}
header {
  display: flex;
  width: 100%;
  padding: 10px 30px;
  justify-content: center;
  align-items: center;
  height: 50px;
  background: var(--primary);
}

/* TEST */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header > img {
  width: 100%;
  max-width: 216px;
  min-width: 150px;
  height: 40px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  & > ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
  }
}
.content-wrapper {
  width: 100%;
  max-width: 1440px;
}

#resultados {
  width: 100%;
}
.premio-card {
  border-radius: 10px;
  display: grid;
  grid-template-rows: 185px auto;
  gap: 10px;
  & > img {
    border-radius: 10px 10px 0 0;
  }
  & > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 4px;
  }
  & p {
    color: var(--dark, #231f20);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 80%; /* 12.8px */
  }
}
.swiper-slide {
  width: auto !important;
}
.swiper-wrapper {
  padding: 20px 0;
}
#resultados-wrapper {
  width: 100%;
}

.lista-premios {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  padding: 20px;
  width: 100%;
}

.chip {
  user-select: none; /* No selecciona texto */
  -webkit-user-drag: none; /* Evita arrastre en Safari/Chrome */
  -webkit-touch-callout: none; /* Elimina menú en iOS */
}

/* sm: ≥ 640px → 2 columnas */
@media (min-width: 640px) {
  .lista-premios {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-nav {
    & > ul {
      gap: 20px;
    }
  }
  .chip {
    color: var(--dark, #231f20);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 70%; /* 16.8px */
  }
}

/* lg: ≥ 1024px → 3 columnas */
@media (min-width: 1024px) {
  .lista-premios {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* xl: ≥ 1280px → 4 columnas */
@media (min-width: 1280px) {
  .lista-premios {
    grid-template-columns: repeat(4, 1fr);
  }
}
.main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  opacity: 0;
  max-width: 930px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  max-height: 80vh;
  justify-content: start !important;
  width: 90vw;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.premio-card-row {
  border-radius: 10px;
  display: grid;
  height: 180px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  & > img {
    border-radius: 10px 10px 0 0;
  }
  & > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 4px;
    &:last-child {
      align-items: start;
      justify-content: start;
      padding: 30px;
    }
  }
  & p {
    color: var(--dark, #231f20);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 80%; /* 12.8px */
  }
}

.premio-img-card {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  & > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.img-gift {
  width: 100%;
  height: 100%;
  object-fit: cover;
  & > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* HEADER NOTIFICATIONS */

.notifications-container {
  position: relative;
}
.notifications-minibar {
  width: 100%;
  height: 40px;
  background: linear-gradient(
      0deg,
      rgba(35, 31, 32, 0.1) 0%,
      rgba(35, 31, 32, 0.1) 100%
    ),
    var(--Blanco, #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.minibar-text {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--Gris, #231f20);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 18px */
  user-select: none;
}
button.minibar-text {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  box-sizing: content-box;
  background: #ffe01b;
  border: 2px solid var(--primary);
  color: white;
  border-radius: 100%;
  width: 10px;
  height: 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.notifications-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 440px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.notifications-panel.show {
  display: block;
}

.notifications-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.mark-all-read {
  background: none;
  border: none;
  color: #007bff;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.mark-all-read:hover {
  color: #0056b3;
}

.notifications-list {
  max-height: 250px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 40px;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  min-height: 92px;
  border-bottom: 1px solid #231f2080;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item.unread {
  position: relative;
}

.notification-item.unread::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #ff0000;
  border-radius: 999999999px;
  flex-shrink: 0;
}

.notification-icon {
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  & button {
    display: flex;
    height: 28px;
    width: fit-content;
    padding: 3px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    background: var(--Rojo-1, #df0209);
    color: white;
    border: none;
  }
}

.notification-title {
  color: var(--Gris, #231f20);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 19.2px */
  text-align: start;
}

.notification-text {
  color: var(--Gris, #231f20);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  text-align: start;
}

.notification-time {
  color: rgba(35, 31, 32, 0.5);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 14px */
  text-align: start;
}

.notifications-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.view-all-link {
  color: #007bff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}
.notification-container-show {
  background: black;
  border-radius: 8px;
  & .notification-badge {
    border-color: black !important;
  }
}
@media screen and (max-width: 768px) {
  .notifications-panel.show {
    display: block;
    position: fixed;
    left: 0;
    top: 50px;
    border-radius: 0;
    min-height: calc(100vh - 50px);
    min-height: calc(100svh - 50px);
    max-height: calc(100vh - 50px);
    max-height: calc(100svh - 50px);
    width: 100vw;
  }
  .body-show-notifications {
    overflow: hidden;
  }
}
