@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/*
 * Globals
 */


/* Custom default button */
.btn-light,
.btn-light:hover,
.btn-light:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from `body` */
}


/*
 * Base structure
 */

body {
  
  background-size: cover 100%;      /* Ajusta la imagen */
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;

}

.cover-container {
  max-width: 42em;
}


/*
 * Header
 */

.nav-masthead .nav-link {
  color: rgba(255, 255, 255, .5);
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}


    .login-card {
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0,0,0,.08);
    }
    .login-header {
      background-color: #3b81ca;
      height: 72px;
    }
    .btn-primary {
      background-color: #00a9c8;
      border: none;
    }
    .login-image {
      background-size: cover;
      background-position: center;
      min-height: 100%;
    }

     .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }
      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
      .b-example-divider {
        width: 100%;
        height: 3rem;
        background-color: #0000001a;
        border: solid rgba(0, 0, 0, 0.15);
        border-width: 1px 0;
        box-shadow:
          inset 0 0.5em 1.5em #0000001a,
          inset 0 0.125em 0.5em #00000026;
      }
      .b-example-vr {
        flex-shrink: 0;
        width: 1.5rem;
        height: 100vh;
      }

  
      .nav-scroller {
        position: relative;
        z-index: 2;
        height: 2.75rem;
        overflow-y: hidden;
      }
      .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
      }
      .btn-bd-primary {
        --bd-violet-bg: #712cf9;
        --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
        --bs-btn-font-weight: 600;
        --bs-btn-color: var(--bs-white);
        --bs-btn-bg: var(--bd-violet-bg);
        --bs-btn-border-color: var(--bd-violet-bg);
        --bs-btn-hover-color: var(--bs-white);
        --bs-btn-hover-bg: #6528e0;
        --bs-btn-hover-border-color: #6528e0;
        --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
        --bs-btn-active-color: var(--bs-btn-hover-color);
        --bs-btn-active-bg: #5a23c8;
        --bs-btn-active-border-color: #5a23c8;
      }
      .bd-mode-toggle {
        z-index: 1500;
      }
      .bd-mode-toggle .bi {
        width: 1em;
        height: 1em;
      }
      .bd-mode-toggle .dropdown-menu .active .bi {
        display: block !important;
      }

       .card-wrapper {
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 6px 24px rgba(0,0,0,.08);
    }

    .header-bar {
      background-color: #3b81ca;
      height: 72px;
    }

    .benefits {
      background-color: #3b81ca;
      color: #fff;
    }

    .benefits h3 {
      background-color: rgba(255,255,255,.25);
      border-radius: 999px;
      padding: 12px 24px;
      display: inline-block;
      font-weight: 500;
    }

    .benefits li {
      margin-bottom: 14px;
    }

    .check {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 2px solid #7ce3c6;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #7ce3c6;
      font-weight: bold;
      flex-shrink: 0;
    }

    .btn-primary {
      background-color: #00a9c8;
      border: none;
    }
/* Header */
.topbar {
  position: relative; /* 🔑 referencia para el menú */
  height: 72px;
  background: linear-gradient(90deg, #3b81ca 0%, #15b09b 100%);
}
.brand-icons .divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.4);
}

.points-card {
  background: #3b81ca;
  color: #fff;
  border-radius: 20px;
}

.progress {
  height: 8px;
  background: rgba(255,255,255,.3);
}

.progress-bar {
  width: 40%;
  background: #fff;
}

.btn-ticket {
  background: #5fbf6b;
  color: #fff;
  border-radius: 999px;
  padding: 14px;
  font-weight: 500;
}

.btn-ticket:hover {
  background: #5fbf6b;
  color: #fff;
  border-radius: 999px;
  padding: 14px;
  font-weight: 500;
}

/* Flecha */
.arrow {
  cursor: pointer;
  transition: transform 0.3s ease;
  font-size: 18px;
}

.arrow.open {
  transform: rotate(180deg);
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Menu */
.menu-popup {
  position: absolute;
  top: 72px;               /* debajo del header */
  right: 24px;
  width: 260px;
  background: #3b81ca;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 1000;
  overflow: hidden;
}

/* Links */
.menu-popup a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.menu-popup a:hover {
  background-color: rgba(255,255,255,.15);
}
.menu-popup {
  animation: fadeDown .25s ease;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dinámica */
.dynamic-card {
  background: #5fbf6b;
  color: #fff;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.dynamic-images img {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 90px;
}

/* Acciones */
.action-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
/* Quick */
.quick-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.quick-card img {
  width: 42px;
  margin-bottom: 10px;
}

/* Upload */
.upload-box {
  background: #9b9b9b;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #fff;
  position: relative;
}
.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* Sidebar */
.points-sidebar {
  background: #3b81ca;
  color: #fff;
  padding: 24px;
  border-radius: 16px;
}
.point-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.point-item.blue { background:#fff; color:#3b81ca; }
.point-item.green { background:#15b09b; }
.point-item.teal { background:#00a9c8; }
.point-item.light { background:#7ce3c6; color:#1b4f72; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-success {
  background: #61c16d;
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  width: 420px;
}
.check-circle {
  font-size: 48px;
  border: 3px solid #fff;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background:none;
  border:none;
  font-size:18px;
  color:#fff;
}
.card-wrapper {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }

    .header-bar {
      background: #3b81ca;
      height: 70px;
    }

    .ticket-row {
      background: #f2f2f2;
color: #3b81ca !important;
      border-radius: 10px;
      padding: 16px 20px;
      margin-bottom: 14px;
      box-shadow: 0 2px 6px rgba(0,0,0,.06);
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr 0.5fr 0.8fr;
      align-items: center;
    }

    .status-approved {
      color: #28a745;
    }

    .status-rejected {
      color: #dc3545;
    }

    .points {
      font-weight: 700;
      color: #3b81ca;
    }

    .modal-header {
      background: #3b81ca;
      color: #fff;
    }

    .ticket-image {
      max-width: 100%;
      border-radius: 10px;
    }

    .icon-status {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 40px;
      color: #fff;
      margin-bottom: 15px;
    }

    .icon-approved {
      background: #5cb85c;
    }

    .icon-rejected {
      background: #dc3545;
    }

    /* CARD */
.ticket-card-mobile {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

/* TOP */
.ticket-top {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: .95rem;
  color: #3b81ca !important;

}

/* MIDDLE */
.ticket-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

/* STATUS */
.ticket-status {
  font-weight: 600;
  font-size: .95rem;
}

.ticket-status.approved {
  color: #4CAF50;
}

.ticket-status.rejected {
  color: #E53935;
}

/* BUTTON */
.btn-view {
  border: 2px solid #3b81ca;
  background: #f4f7ff;
  color: #4c7cff;
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 600;
}

.btn-view.rejected {
  border-color: #E53935;
  background: #fdeaea;
  color: #E53935;
}

/* POINTS */
.ticket-points {
  margin-top: 12px;
  text-align: right;
  font-size: 1.4rem;
  font-weight: 700;
}

.ticket-points.approved {
  color: #3b81ca !important;
}

.ticket-points.rejected {
  color: #9e9e9e;
}


/* VIEW BUTTON */
.btn-view {
  border: 2px solid #3b81ca;
  background: #f4f7ff;
  color: #3b81ca;
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 600;
}

/* POINTS */
.ticket-points {
  margin-top: 12px;
  text-align: right;
  font-size: 1.5rem;
  font-weight: 700;
}

.ticket-points.approved {
  color: #4c7cff;
}

.ticket-points.rejected {
  color: #9e9e9e;
}
@media (max-width: 767px) {
  .ticket-row-header {
    display: none;
  }
}
/* =========================
   VISIBILIDAD RESPONSIVA
   ========================= */

/* Por defecto: desktop */
.ticket-card-mobile {
  display: none;
  background-color: #f2f2f2;
}

/* Mobile */
@media (max-width: 767px) {
  .ticket-row {
    display: none;
  }

  .ticket-card-mobile {
    display: block;
  }
}

/* =========================
   ICONOS DE ESTADO - MODALES
   ========================= */

.icon-status {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;      /* 👈 esto los centra */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 50%;
}

/* APROBADO */
.icon-approved {
  background: #e8f5e9;
  color: #2e7d32;
}

/* RECHAZADO */
.icon-rejected {
  background: #fdecea;
  color: #c62828;
}

.bg-primary {

  background-color: #3b81ca !important;
}

.text-primary {
    color: #3b81ca !important;
}
.btn-success{
  background-color: #57bb69 !important;
}
a {
    color: #3b81ca ;
}
.form-control {
    font-size: 1rem;
    background: #f2f2f2;
    color: #cfd1d1;
}

.form-control::placeholder {
    color: #cfd1d1;
}
.text-muted2{
  color: #3b81ca !important;
  box-shadow: none !important;
}
.ticket-row2{
    background: none;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.5fr 0.8fr;
    align-items: center;
}
@media (max-width: 767px) {
    .ticket-row2 {
        display: none;
    }
}

/* Título */
.ranking-title {
  font-size: 36px;
  font-weight: 700;
  color: #3f7fc4;
}

/* Header */
.ranking-header {
  font-size: 14px;
  color: #6c8fb4;
  padding: 0 20px;
  margin-bottom: 12px;

    background: none;
    
}

/* Item */
.ranking-item {
  display: flex;
  align-items: center;
  background: #f2f2f2;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

/* Columnas */
.col-pos { width: 90px; }
.col-name { flex: 1; font-weight: 500; color:#3f7fc4; }
.col-state { width: 160px; color:#6c8fb4; }
.col-points {
  width: 120px;
  text-align: right;
  font-weight: 700;
  color:#3f7fc4;
}

/* Badge */
.badge-rank {
  width: 36px;
  height: 36px;
  background: #3f7fc4;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
/* =========================
   RESPONSIVE – MOBILE
========================= */
@media (max-width: 767.98px) {

  .ranking-title {
    font-size: 26px;
    text-align: center;
  }

  /* Ocultar encabezados */
  .ranking-header {
    display: none;
  }

  .ranking-item {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  /* Posición */
  .col-pos {
    width: auto;
    margin-right: 12px;
  }

  .badge-rank {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Nombre ocupa todo */
  .col-name {
    flex: 1 0 100%;
    font-size: 16px;
    margin: 6px 0;
  }

  /* Estado y puntos en línea */
  .col-state {
    width: auto;
    font-size: 13px;
  }

  .col-points {
    width: auto;
    margin-left: auto;
    font-size: 14px;
  }
}
@media (max-width: 767.98px) {
  .ranking-header {
    display: none;
  }
}

