/* ============================================================
   AkRemates — index_new.css  (Diseño minimalista, 2026)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
  --primary: #1a6fba;
  --primary-dk: #144e85;
  --mixto: #1a6fba;
  --accent: #e07b00;
  --success: #2db574;
  --danger: #e04040;
  --warning: #ff9800;
  --info: #2196f3;
  --convocatoria: #bd7b50;
  --verificando: #1a6fba;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #f4f6f9;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --sidebar-w: 220px;
  --header-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-hov: 0 8px 28px rgba(0, 0, 0, .14);
  --transition: 0.22s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   HEADER
   ============================================================ */
.ak-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .07);
}

.ak-header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.ak-header__logo img {
  height: 64px;
  width: auto;
}

.ak-header__search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  gap: 8px;
  transition: border-color var(--transition);
}

.ak-header__search:focus-within {
  border-color: var(--primary);
}

.ak-header__search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: .9rem;
  color: var(--text);
  padding: 9px 0;
}

.ak-header__search input::placeholder {
  color: var(--text-muted);
}

.ak-header__search .search-icon {
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
}

.ak-header__spacer {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ak-header__subastas {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reniec-firma {
  height: 48px;
  width: 80px;
  overflow: hidden;
  position: relative;
  /* border-radius: 50%;
  border: 1.5px solid var(--border); */
  background: #fff;
  flex-shrink: 0;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
  transition: transform var(--transition);
}

.reniec-firma:hover {
  transform: scale(1.08);
  border-color: var(--primary);
}

.reniec-firma img {
  position: absolute;
  /* left: -18px; */
  /* top: -30px; */
  top: 14px;
  width: 80px;
}

.icon-pagos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gestionPago,
.pag_efe {
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
  display: flex;
  align-items: center;
}

.gestionPago:hover,
.pag_efe:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.gestionPago img,
.pag_efe img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.ak-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* User info (logged in) */
.ak-header__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.ak-header__user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

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

.btn-primary:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.ak-hero {
  position: relative;
  height: 170px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1b2d;
}

.ak-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.ak-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 30, 60, .6) 0%, rgba(20, 40, 80, .3) 100%);
}

.ak-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.ak-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

.ak-hero__subtitle {
  margin-top: 6px;
  font-size: .9rem;
  opacity: .88;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ak-hero__badge {
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 600;
  font-size: .82rem;
}

/* ============================================================
   LAYOUT: SIDEBAR + MAIN
   ============================================================ */
.ak-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - var(--header-h) - 170px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  gap: 24px;
  align-items: flex-start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.ak-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  /* top: calc(var(--header-h) + 16px); */
  top: calc(var(0.25rem) *24);
}

.ak-sidebar__title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.ak-sidebar__section {
  margin-bottom: 24px;
}

.ak-sidebar__section-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mandante checkbox list */
.ak-mandante-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ak-mandante-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border: 1.5px solid transparent;
}

.ak-mandante-item:hover {
  background: var(--bg);
}

.ak-mandante-item.active {
  background: #e8f1fb;
  border-color: var(--primary);
}

.ak-mandante-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.ak-mandante-item img {
  height:40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.ak-mandante-item span {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

/* Reset filter link */
.ak-sidebar__reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--primary);
  cursor: pointer;
  margin-top: 6px;
  opacity: .8;
  transition: opacity var(--transition);
}

.ak-sidebar__reset:hover {
  opacity: 1;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.ak-main {
  flex: 1;
  min-width: 0;
}

.ak-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.ak-main__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.ak-main__count {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

/* Category dropdown */
.ak-cat-dropdown {
  position: relative;
  display: inline-block;
}

.ak-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition);
  white-space: nowrap;
}

.ak-cat-btn:hover {
  border-color: var(--primary);
}

.ak-cat-btn svg {
  width: 14px;
  height: 14px;
}

.ak-cat-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 50;
  overflow: hidden;
}

.ak-cat-menu.open {
  display: block;
}

.ak-cat-menu a {
  display: block;
  padding: 9px 16px;
  font-size: .85rem;
  color: var(--text);
  transition: background var(--transition);
  cursor: pointer;
}

.ak-cat-menu a:hover {
  background: var(--bg);
  color: var(--primary);
}

.ak-cat-menu a.selected {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   LOT CARDS GRID
   ============================================================ */
.ak-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Single card ── */
.ak-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.ak-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hov);
}

/* Card image area */
.ak-card__img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #e9eef5;
}

.ak-card__img-wrap img {
  /*width: 100%; height: 100%;*/
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ak-card:hover .ak-card__img-wrap img {
  transform: scale(1.04);
}

/* Type badge (Presencial / Virtual) */
.ak-card__type {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}

.ak-card__type--presencial {
  background: var(--accent);
}

.ak-card__type--virtual {
  background: var(--primary);
}

.ak-card__type--mixto {
  background: var(--mixto);
}

/* Convocatoria badge */
.ak-card__convocatoria {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--convocatoria);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Mandante logo overlay on image */
.ak-card__mandante-img {
  position: absolute;
  bottom: 8px;
  left: 10px;
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .3));
  background: rgba(255, 255, 255, .85);
  border-radius: 4px;
  /* padding: 2px 5px; */
}

/* Card body */
.ak-card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.ak-card__lote {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ak-card__category {
  color: var(--primary);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: 0.02em;
}

.ak-card__desc {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ak-card__dates {
  display: flex;
  gap: 12px;
  font-size: .75rem;
  color: var(--text-muted);
  align-items: center;
  flex-wrap: wrap;
}

.ak-card__dates span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Status button */
.ak-card__footer {
  margin-top: auto;
  padding-top: 8px;
}

.ak-card__status {
  width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ak-card__status--pending {
  background: transparent;
  border: 1.5px solid #d0d5dd;
  color: var(--text-muted);
}

.ak-card__status--open {
  background: #e9f9f2;
  border: 1.5px solid var(--success);
  color: var(--success);
  cursor: pointer;
}

.ak-card__status--open:hover {
  background: var(--success);
  color: #fff;
}

.ak-card__status--closed {
  background: #fdecea;
  border: 1.5px solid var(--danger);
  color: var(--danger);
}

.ak-card__status--closed:hover {
  background: var(--danger);
  color: #fff;
}

.ak-card__status--schedule {
  background: #fff7e6;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.ak-card__status--schedule:hover {
  background: var(--accent);
  color: #fff;
}

.ak-card__status--desierta {
  background: #fdecea;
  border: 1.5px solid var(--warning);
  color: var(--warning);
}

.ak-card__status--desierta:hover {
  background: var(--warning);
  color: #fff;
}

.ak-card__status--suspendida {
  background: #fdecea;
  border: 1.5px solid var(--danger);
  color: var(--danger);
}

.ak-card__status--suspendida:hover {
  background: var(--danger);
  color: #fff;
}

.ak-card__status--postergada {
  background: #fdecea;
  border: 1.5px solid var(--danger);
  color: var(--danger);
}

.ak-card__status--postergada:hover {
  background: var(--danger);
  color: #fff;
}

.ak-card__status--verificando {
  background: #fff7e6;
  border: 1.5px solid var(--verificando);
  color: var(--verificando);
}

.ak-card__status--verificando:hover {
  background: var(--verificando);
  color: #fff;
}

/* status dot */
.ak-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ak-status-dot--pending {
  background: #94a3b8;
}

.ak-status-dot--open {
  background: var(--success);
}

.ak-status-dot--closed {
  background: var(--danger);
}

.ak-status-dot--schedule {
  background: var(--accent);
}

/* Empty state */
.ak-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.ak-empty svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  opacity: .4;
}

.ak-empty p {
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ak-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.ak-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.ak-page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #e8f1fb;
}

.ak-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.ak-page-btn--prev,
.ak-page-btn--next {
  gap: 4px;
  padding: 0 18px;
}

.ak-page-btn--prev svg,
.ak-page-btn--next svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ak-footer-new {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ak-footer-new__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ak-footer-new__links a {
  font-size: .82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.ak-footer-new__links a:hover {
  color: var(--primary);
}

.ak-footer-new__copy {
  font-size: .75rem;
  color: var(--text-muted);
  opacity: .7;
}

/* ============================================================
   USER DROPDOWN MENU
   ============================================================ */
.ak-user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 200;
  overflow: hidden;
}

.ak-user-menu.open {
  display: block;
}

.ak-user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}

.ak-user-menu__item:hover {
  background: var(--bg);
}

.ak-user-menu__item--danger {
  color: var(--danger);
}

.ak-user-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ============================================================
   MODALS: PAGO EFECTIVO
   ============================================================ */
.pago-efec {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.pago-efec .pago-efec-body {
  background-color: #fff;
  border-radius: var(--radius);
  left: 50%;
  max-width: 420px;
  padding: 45px 40px;
  position: relative;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.pago-efec .sal-efe-top {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  position: absolute;
  right: 15px;
  top: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition);
}

.pago-efec .sal-efe-top:hover {
  background-color: var(--bg);
  color: var(--danger);
  transform: rotate(90deg);
}

.pago-efec .img-pe {
  margin: 0 auto 24px;
  width: 150px;
}

.pago-efec .tper {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.pago-efec .solicite {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  line-height: 1.4;
}

.pago-efec .sal-efe-btn {
  background-color: var(--danger);
  border-radius: 999px;
  color: #fff;
  padding: 14px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(224, 64, 64, 0.3);
}

.pago-efec .sal-efe-btn:hover {
  background-color: #c03030;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 64, 64, 0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .ak-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ak-layout {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .ak-sidebar {
    width: 100%;
    position: static;
  }

  .ak-mandante-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ak-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .ak-header {
    padding: 0 16px;
    gap: 10px;
  }

  .ak-hero__title {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .ak-grid {
    grid-template-columns: 1fr;
  }

  .ak-header__search {
    display: none;
  }

  .ak-header__subastas {
    display: none;
  }
}