/* Importa tu hoja principal para mantener el layout general */
@import url('/style.css');

/* ===== Contenido principal ===== */
.main-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.title {
  padding: 10px;
  margin: -12px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #000;
}

/* ===== Tarjeta tabla + paginador ===== */
.table-card{
  background: #fff;
  border: 1px solid #cfe6fb;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 16px;
}

.data-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead th{
  text-align: left;
  background: #f0f7ff;
  color: #1f4e79;
  border-bottom: 1px solid #dbeafe;
  padding: 10px 8px;
}
.data-table tbody td{
  border-bottom: 1px solid #eef2f7;
  padding: 10px 8px;
}
.data-table tbody tr:hover{
  background: #f7fbff;
}

/* Columna acción: botón X */
.delete-btn{
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  color: #d93025;               /* rojo */
  font-weight: 700;
  line-height: 1;
}
.delete-btn:hover{ background: rgba(217,48,37,.08); }
.delete-btn:active{ transform: scale(.96); }

/* Paginador */
.pager{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}
.btn {
  background: #2d2d2d;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.pager-info{ font-weight: 600; }

/* ===== Modal ===== */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay.open{ display: flex; }

.modal{
  background: #fff;
  border: 4px solid #27a9f4;          /* contorno celeste como tu mock */
  border-radius: 28px;
  width: min(560px, calc(100% - 40px));
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 6px 32px rgba(0,0,0,.15);
}
.modal-text{ font-size: 18px; margin: 0 0 8px; }
.modal-note{ color: #333; margin: 0 0 18px; }

.modal-actions{
  display: flex;
  gap: 24px;
  justify-content: center;
}

.btn-light{
  background: #e7f2ff;
  color: #135a92;
  border: 1px solid #9ec9f0;
  border-radius: 12px;
  padding: 10px 18px;
}
.btn{
  border-radius: 12px;
  padding: 10px 18px;
}

/* util para accesibilidad (ocultar visual pero accesible para lectores de pantalla) */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Forzar a que la pregunta del modal sea visible */
.modal .modal-text{
  color: #333 !important;   /* evita que un estilo global la deje blanca */
  display: block;           /* por si algún reset la deja inline/colapsada */
  margin: 0 0 10px;         /* separación con la nota */
}
.modal .modal-text strong{
  color: #111;              /* resalta el nombre de la especie */
  font-weight: 600;
}

/* === Buscador tipo "pill" (idéntico a MOSTRAR) === */
.section-search {
  background: transparent;
  padding: 12px;
}
.nav-search {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.nav-search #input-search {
  width: 80%;
  height: 45px;
  padding: 0 75px;             /* deja espacio para los íconos */
  border: 0;
  border-radius: 999px;
  background: #2f2f2f;
  color: rgb(230, 230, 230);
  text-align: center;
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.25);
}
.nav-search #input-search::placeholder { color: #a8a8a8; }

#btn-filter, #btn-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cfe7ff;
  border-radius: 8px;
  cursor: pointer;
}
#btn-filter { left: 10px; }
#btn-search { right: 10px; }

/* En ACTUALIZAR no hay aside de filtros: oculto el botón izquierdo */
#btn-filter { display: none; }