/* =========================================
   PENDIENTES - Tabla Responsive Extrema
   ========================================= */

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.tab-btn {
  font-family: 'Silkscreen', cursive;
  text-transform: uppercase;
  padding: 12px 28px;
  font-size: 15px;
  background: var(--white);
  color: var(--text);
  border: 3px solid var(--pink-dark);
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--text);
  transition: all 0.3s var(--ease-kawaii);
  white-space: nowrap;
}

.tab-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--text);
  background: var(--pink-soft);
}

.tab-btn.active {
  background: var(--pink-dark);
  color: white;
}

/* ==================== TABLA RESPONSIVE ==================== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: 28px;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.12);
}

.pendientes-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 5px double var(--pink-dark);
  border-radius: 28px;
  overflow: hidden;
  min-width: 60px; /* Para desktop */
}

.pendientes-table thead {
  background: var(--pink-soft);
}

.pendientes-table th {
  color: var(--pink-dark);
  padding: 20px 16px;
  text-align: left;
  font-family: 'Silkscreen', cursive;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border-bottom: 4px solid var(--pink-dark);
}

.pendientes-table td {
  padding: 16px 18px;
  border-bottom: 2px solid #ffe4f0;
  font-size: 15px;
  vertical-align: middle;
}

.pendientes-table tr {
  transition: all 0.35s var(--ease-kawaii);
}

.pendientes-table tr:hover {
  background: #fff0f8;
  transform: scale(1.012);
}

/* Estados */
.status {
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: bold;
  font-family: 'Silkscreen', cursive;
  display: inline-block;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.pending { background: #fff3d1; color: #c97a00; border: 2px solid #f5c05e; }
.inprogress { background: #d1f0ff; color: #1b7fd1; border: 2px solid #5eb8ff; }
.done { background: #d8f0d8; color: #2e8b3d; border: 2px solid #6bc96b; }

/* ==================== MODAL CHIQUITO CON IMAGEN CENTRADA ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.modal-content {
  background: var(--white);
  border: 5px double var(--pink-dark);
  border-radius: 28px;
  width: 50%;
  max-width: 440px;
  padding: 0;
  box-shadow: 12px 12px 0 rgba(0,0,0,0.15);
  position: relative;
  animation: popUp 0.45s var(--ease-kawaii);
  overflow: hidden;
}

/* Contenedor de imagen */
.modal-image-container {
  width: 100%;
  height: 145px;
  background: var(--pink-soft);
  border-bottom: 4px solid var(--pink-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Imagen pequeña y perfectamente centrada */
.modal-image {
  max-width: 200px;      /* Puedes bajar a 60% o 55% si quieres más pequeña */
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.modal-image:hover {
  transform: scale(1.08);
}

/* Placeholder centrado */
.modal-image-placeholder {
  width: 65%;
  height: 65%;
  background: linear-gradient(135deg, #ffe4f0, #f8b6cb);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 20px;
  box-sizing: border-box;
  font-family: 'Silkscreen', cursive;
  font-size: 1.25em;
  color: var(--pink-dark);
  line-height: 1.35;
  border-radius: 12px;
}

.modal-body {
  padding: 25px 28px 32px 28px;
}

.modal-content h3 {
  margin: 0 0 20px 0;
  color: var(--pink-dark);
  font-family: 'Silkscreen', cursive;
  text-align: center;
  font-size: 1.4em;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: var(--pink-dark);
  line-height: 1;
  transition: 0.2s;
  z-index: 10;
}

.close-btn:hover {
  transform: scale(1.3) rotate(90deg);
  color: #e55c8a;
}

@keyframes popUp {
  from { transform: scale(0.6) translateY(80px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ====================== RESPONSIVE EXTREMO ====================== */
@media (max-width: 900px) {
  .pendientes-table thead {
    display: none; /* Ocultamos encabezados */
  }

  .pendientes-table tr {
    display: block;
    margin-bottom: 18px;
    border: 4px double var(--pink-dark);
    border-radius: 24px;
    padding: 3px;
    background: var(--white);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
  }

  .pendientes-table td {
    display: block;
    text-align: right;
    position: relative;
    padding: 12px 14px;
    border: none;
    border-bottom: 2px solid #ffe4f0;
    font-size: 14.5px;
  }

  .pendientes-table td:last-child {
    border-bottom: none;
  }

  /* Etiquetas antes de cada dato */
  .pendientes-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 14px;
    font-family: 'Silkscreen', cursive;
    font-weight: bold;
    color: var(--pink-dark);
    font-size: 13px;
    text-transform: uppercase;
  }

  .pendientes-table tr:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  .pendientes-table td {
    font-size: 14px;
    padding: 11px 12px;
  }
  .status {
    padding: 6px 12px;
    font-size: 12.5px;
  }
}