/* cas2025.css (reemplazar todo el archivo) */
html, body {
  height: 100%;
  background-color: #fff;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Zona de trabajo centrada 1000px */
.container-1000 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}
.logo-header {
  max-height: 40px;       /* altura mÃ¡xima para que no se coma todo el header */
  height: auto;
  width: auto;
  margin-right: 12px;
  flex-shrink: 0;
  display: block;
}
/* Header */
.header-bar {
  background-color: #0173C7;
  color: #fff;
  height: 70px;
  display: flex;
  align-items: left;
}
.header-bar .container-1000 {
  display:flex;
  align-items:left;
  padding: 10px;
}
.header-bar h1 {
  font-size: 24px;
  margin: 0;
  text-align: left;
}

/* Subtitulo: fondo full width, contenido centrado a 1000px */
.subtitulo {
  background: #e6e6e6;
  color: #000;
  padding: 13px 0;
  height: 50px;
}
.subtitulo .container-1000 { padding-left:12px; }
.subtitulo .titulo {
  font-size: 24px;
  margin: 0;
  text-align: left; /* forzar alineaciÃ³n izquierda dentro del bloque */
  line-height: 29px;
}

/* Parameters layout: mobile-first grid to guarantee exact 3 rows on small screens */
.parameters-grid {
  max-width: 1000px;
  margin: 16px auto;
  padding: 0 12px;
  box-sizing: border-box;
  display: grid;
  gap: 10px;

  /* MOBILE layout: 3 columns (so first row has 3 items), second row 3 items, third row full */
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "anio mes entidad"
    "cap-img cap-inp cap-btn"
    "consult consult consult";
}

/* Named areas */
.parameters-grid .anio         { grid-area: anio; }
.parameters-grid .mes          { grid-area: mes; }
.parameters-grid .entidad      { grid-area: entidad; }
.parameters-grid .cap-img-wrap { grid-area: cap-img; display:flex; align-items:center; }
.parameters-grid .cap-input    { grid-area: cap-inp; }
.parameters-grid .cap-reload   { grid-area: cap-btn; }
.parameters-grid .consult      { grid-area: consult; }

/* Controls styling */
.parameters-grid select,
.parameters-grid input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #cfcfcf;
  background: #fff;
}

/* Captcha image */
.captcha-img {
  height: 40px;
  border: 1px solid #ccc;
  display: block;
}



/* Desktop: single row (>=992px) => switch to 7 columns so all in one line */
@media (min-width: 992px) {
  .parameters-grid {
    grid-template-columns: auto auto auto auto auto auto auto;
    grid-template-areas: "anio mes entidad cap-img cap-inp cap-btn consult";
    align-items: center;
  }

  /* prevent shrinking too much on desktop */
  .parameters-grid select,
  .parameters-grid input[type="text"] {
    min-width: 140px;
  }

  .captcha-img { height:40px; width:auto; }

  /* On desktop make Consultar auto width and align right */
  .parameters-grid .consult { justify-self: end; width: auto; }
  .parameters-grid .cap-reload { width: auto; }
}



		
		

/* Footer fixed */
.footer-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
  background-color: #141414;
  color: #fff;
  text-align: center;
  line-height: 50px;
  z-index: 9999;
}

/* Buttons styles */
.btn-reload {
  background-color: #6f7b86;  /* gris bootstrap */
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 400;
}
.btn-reload:hover {
  background-color: #404b54; /* gris mÃ¡s oscuro al pasar el mouse */
  color: #fff !important;
}

/* BotÃ³n Consultar (azul institucional) */
.btn-consultar {
  background-color: #0173c7; /* azul corporativo */
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 400;  
}
.btn-consultar:hover {
  background-color: #005593; /* azul mÃ¡s oscuro al pasar el mouse */
  color: #fff !important;
}


.numero {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    vertical-align: left;
}


/* Grilla de resultados compacta */
.result-section .table {
    margin-bottom: 0;
/*
    width: 100%;
    font-size: 12px;
    line-height: 1.2;
*/
}

/* Encabezados */
.result-section .table thead th {
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

/* Registros */
.result-section .table tbody td {
    padding: 4px 8px;
    vertical-align: middle;
}

/* Filas compactas */
.result-section .table tbody tr {
    height: 26px;
}

/* Ãrea de desplazamiento */
.result-section {
    height: 450px;
    max-height: 450px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: auto;
    width: 100%;
}

/* Grilla sin líneas de bordes */
.result-section .table,
.result-section .table th,
.result-section .table td {
    border: none;
}

/* Enlace de la descripción */
.result-section .enlace-descripcion {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
}

/* Efecto al pasar el cursor */
.result-section .enlace-descripcion:hover {
    color: #005a9e;
}


.result-section .table tbody tr td {
    border-bottom: 1px solid #e6e6e6;
    border-top: none;
}

/* Sin línea debajo del último registro */
.result-section .table tbody tr:last-child td {
    border-bottom: none;
}

.oculto {
    display: none;
}


.informacion-adicional {
    margin-top: 15px;
    font-size: 12px;
}

.informacion-adicional a,
.informacion-adicional a:link,
.informacion-adicional a:visited,
.informacion-adicional a:hover,
.informacion-adicional a:focus,
.informacion-adicional a:active {
    color: #005A9E;
    text-decoration: none;
    font-size: 12px;
}

/* Cambio de color al pasar el cursor */
.informacion-adicional a:hover {
    color: #003F70;
}


/* Título centrado */
.page-title {
    width: 100%;
    margin: 20px 0 44px;
    text-align: center;
    font-size: 26px;
    font-weight: 400;
    color: #111;
}

/* Contenedor de las tarjetas */
.cards-container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
}

/* El formulario y la tarjeta comparten el mismo ancho */
.cards-container form {
    flex: 0 0 340px;
    width: 340px;
    min-width: 0;
    margin: 0;
    display: flex;
}

/* El HTML usa button.section */
.cards-container button.section {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 158px;
    margin: 0;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    background-color: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    color: #222;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
}

/* Los textos reales son párrafos: p.nomOpcion y p */
.cards-container button.section p {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.4;
}

.cards-container button.section p.nomOpcion {
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
}

.cards-container button.section p:not(.nomOpcion) {
    font-size: 14px;
}

/* Foco accesible */
.cards-container button.section:focus-visible {
    outline: 2px solid #005a9e;
    outline-offset: 2px;
}

/* Efecto al pasar el cursor */
.cards-container button.section:hover {
    background-color: #0875c9;
    border-color: #0875c9;
    color: #fff;
}

/* Pantallas intermedias */
@media (max-width: 1100px) and (min-width: 768px) {
    .cards-container {
        flex-wrap: wrap;
        gap: 14px;
    }
}

/* Móviles: las tres tarjetas tienen el mismo ancho */
@media (max-width: 767px) {
    .page-title {
        margin: 20px 0 28px;
        font-size: 24px;
    }

    .cards-container {
        width: 100%;
        padding: 0 16px;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .cards-container form {
        flex: 0 1 auto;
        width: 100%;
        max-width: 340px;
    }

    .cards-container button.section {
        width: 100%;
        min-width: 0;
        min-height: 140px;
        padding: 12px 8px;
    }

    .cards-container button.section p.nomOpcion {
        font-size: clamp(15px, 4.5vw, 20px);
        white-space: nowrap;
    }

    .cards-container button.section p:not(.nomOpcion) {
        font-size: 14px;
    }
}
