/* normativas.css */

.normativas-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.normativas-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.normativas-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.form-group label {
    margin-bottom: 6px;
    color: #34495e;
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-search {
    padding: 10px 20px;
    background-color: #2d89ef;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-search:hover {
    background-color: #2361b4;
}

.normativas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.normativas-table th,
.normativas-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.normativas-table th {
    background-color: #f2f4f8;
    color: #2c3e50;
    font-weight: 600;
}

.link-visualizar {
    color: #2980b9;
    font-weight: 500;
    text-decoration: none;
}

.link-visualizar:hover {
    text-decoration: underline;
}

.btn-download {
    padding: 6px 12px;
    background-color: #7f8c8d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-download:hover {
    background-color: #636e72;
}

.btn-download:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

/* Descripci¨®n en tiempo real */
.form-group-descripcion {
  width: 100%;
  margin-bottom: 14px;
}

.form-group-descripcion input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group-descripcion input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

/* Fila de filtros en l¨ªnea */
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

/* Wrapper para input + bot¨®n X */
.input-descripcion-wrapper {
  position: relative;
  width: 100%;
}

.input-descripcion-wrapper input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 36px 8px 12px; /* espacio derecho para la X */
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.input-descripcion-wrapper input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

/* Bot¨®n X */
.btn-clear-input {
  display: none; /* oculto por defecto */
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #999;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.btn-clear-input:hover {
  color: #333;
}

  .input-clear-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
 
  .input-clear-wrapper input {
    padding-right: 2rem;
  }
 
  .btn-clear-input {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    display: none;
    z-index: 5;
  }
 
  .btn-clear-input:hover {
    color: #343a40;
  }
 
  .btn-clear-input.visible {
    display: block;
  }