/* Estilos de Resoluciones Procompetencia */

:root{
  --brand:#0b2a66;
  --muted:#6c757d;
  --card-bg:#ffffff;
  --bg:#f6f8fb;
  overflow: visible;
}
.hero{
  background:linear-gradient(90deg,rgba(11,42,102,0.95),rgba(3,27,65,0.85));
  color:#fff;
  border-bottom-left-radius:16px;
  border-bottom-right-radius:16px;
  padding:2rem 1rem;
  margin-bottom:1.5rem;
  display:flex;flex-direction:column;gap:1rem;align-items:start;justify-content:center;
}
.hero-buttons{display:flex;gap:.5rem;flex-wrap:wrap}
.btn{
  background:none;border:1px solid currentColor;color:inherit;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.9rem;
}
.btn-primary{background:var(--brand);color:white;border:none}
.btn-outline{border-color:#ccc;color:#333}
.btn:hover{opacity:.9}


@media(min-width:768px){.grid{grid-template-columns:280px 1fr}}

.card{background:var(--card-bg);border-radius:12px;box-shadow:0 4px 14px rgba(20,30,60,0.06);padding:1rem}
.filters label{display:block;font-size:.85rem;color:var(--muted);margin-bottom:.25rem}
/*.filters input,.filters select{width:100%;padding:.5rem;border:1px solid #ccc;border-radius:6px;margin-bottom:.75rem}
.filters button{width:100%; margin-top: 1rem}*/

.meta{font-size:.85rem;color:var(--muted)}
.card-resolucion h5{font-size:1rem;margin-bottom:.25rem}
.actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}
.pdf-badge{background:#e24c3d;color:white;border-radius:4px;padding:2px 6px;font-size:.7rem;}
.badge{display:inline-block;background:#eee;border-radius:6px;padding:2px 8px;font-size:.75rem}

.footer{text-align:center;color:var(--muted);font-size:.85rem;padding:2rem 0}
.flex-between{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}

.cards{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:700px){.cards{grid-template-columns:1fr 1fr}}

.latest li{margin-bottom:.5rem}
.text-muted{color:var(--muted)}

.grid{display:grid;gap:1.5rem}


.filters {
  margin-top: 2rem;
  position: sticky;
  top: 100px; /* distancia desde el top de la pantalla */
  z-index: 10; /* para que esté sobre otros elementos si es necesario */
  background-color: #fff; /* si tu layout tiene fondo transparente */
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  select, input{
    width: 100% !important;
  }
  .btn-outline{
    margin-top: 20px;
    width: 100%;
  }
}
a:hover{
  text-decoration: none !important;
}

/*#res-buscar {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size:.85rem;
}*/

.resoluciones-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.res-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.res-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.res-title {
  color: #004a98;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.res-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

.res-excerpt {
  font-size: 0.85rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  text-overflow: -o-ellipsis-lastline;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -moz-box-orient: vertical;
  -moz-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .85rem;
}

.res-btn {
  display: inline-block;
  margin-top: 1rem;
  background: #004a98;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  /*float: right;*/
  display: block;
  text-align: center;
}

.res-btn:hover {
  background: #0060d1;
  color: white;
}

/* Spinner */
.res-spinner {
  text-align: center;
  margin: 2rem 0;
  color: #555;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.res-spinner-circle {
  width: 32px;
  height: 32px;
  border: 3px solid #ddd;
  border-top-color: #004a98;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.res-end {
  text-align: center;
  font-weight: bold;
  color: #555;
  margin: 20px 0;
}


@keyframes spin {
  to { transform: rotate(360deg); }
}
