/* =========================================================
   VARIABLES
========================================================= */

:root {
  --wine: #691235;
  --wine-dark: #4a0d26;
  --sub-wine: #460b21;
  --renap-wine: #a8244f;

  --text: #414141;
  --gray: #666666;

  /* Gris exacto aproximado de la tabla original */
  --table-gray: #9c9c9c;

  --border: #d7d7d7;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  margin: 0;
  padding: 0;

  scroll-behavior: smooth;
}


body {
  margin: 0;
  padding: 0;

  color: var(--text);
  background: #ffffff;

  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 300;

  overflow-x: hidden;
}


img {
  display: block;
  max-width: 100%;
}


button,
input {
  font: inherit;
}


a {
  color: inherit;
}


/* =========================================================
   CONTENEDOR PRINCIPAL

   La referencia original tiene un área de contenido más
   ancha que la versión anterior de 1000px.
========================================================= */

.site-container {
  width: calc(100% - 32px);
  max-width: 1136px;

  margin-right: auto;
  margin-left: auto;
}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;

  top: 0;

  width: 100%;

  margin: 0;
  padding: 0;

  z-index: 1000;
}


/* =========================================================
   PRIMERA BARRA
========================================================= */

.gov-navbar {
  width: 100%;

  height: 76px;
  min-height: 76px;

  margin: 0;
  padding: 0;

  border: 0;

  background: var(--wine);
}


.gov-navbar__inner {
  height: 76px;

  display: flex;
  align-items: center;
}


/* =========================================================
   LOGO GOBIERNO
========================================================= */

.gov-navbar__brand {
  display: flex;
  align-items: center;

  margin: 0;
  padding: 0;

  text-decoration: none;
}


.gov-navbar__brand img {
  width: auto;
  height: 47px;

  margin: 0;
}


/* =========================================================
   MENÚ SUPERIOR
========================================================= */

.gov-navbar__menu {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 24px;
}


.gov-navbar__menu a {
  margin: 0;
  padding: 0;

  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;

  text-decoration: none;
}


.gov-navbar__menu a:hover,
.gov-navbar__menu a:focus {
  color: #ffffff;

  text-decoration: underline;
}


/* =========================================================
   LUPA HEADER
========================================================= */

.search-link {
  width: 23px;
  height: 23px;

  display: flex;
  align-items: center;
  justify-content: center;
}


.search-icon {
  position: relative;

  display: block;

  width: 13px;
  height: 13px;

  border: 2px solid #ffffff;
  border-radius: 50%;
}


.search-icon::after {
  content: "";

  position: absolute;

  width: 7px;
  height: 2px;

  right: -6px;
  bottom: -3px;

  border-radius: 2px;

  background: #ffffff;

  transform: rotate(45deg);
  transform-origin: left center;
}


/* =========================================================
   SEGUNDA BARRA
========================================================= */

.sub-navbar {
  width: 100%;

  height: 45px;
  min-height: 45px;

  margin: 0;
  padding: 0;

  border: 0;

  background: var(--sub-wine);
}


.sub-navbar__inner {
  height: 45px;

  display: flex;
  align-items: center;
}


/* =========================================================
   CONOCER
========================================================= */

.sub-navbar__brand {
  display: inline-flex;
  align-items: center;

  margin: 0;
  padding: 0;

  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;

  text-decoration: none;
}


.sub-navbar__brand:hover,
.sub-navbar__brand:focus {
  color: #ffffff;

  text-decoration: none;
}


/* =========================================================
   RENAC / RENEC
========================================================= */

.sub-navbar__menu {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 25px;
}


.sub-navbar__menu a {
  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;

  text-decoration: none;
}


.sub-navbar__menu a:hover,
.sub-navbar__menu a:focus {
  text-decoration: underline;
}


/* =========================================================
   MENÚ MOBILE
========================================================= */

.menu-toggle {
  display: none;

  width: 42px;
  height: 38px;

  margin-left: auto;
  padding: 8px;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;

  background: transparent;

  cursor: pointer;
}


.menu-toggle span:not(.sr-only) {
  display: block;

  width: 100%;
  height: 2px;

  margin: 4px 0;

  background: #ffffff;
}


/* =========================================================
   CONTENIDO
========================================================= */

.page-content {
  width: 100%;

  margin: 0;
  padding: 33px 0 0;

  background: #ffffff;
}


/* =========================================================
   TÍTULO
========================================================= */

.title-container {
  width: 100%;

  margin: 0 0 33px;
  padding: 0 20px;

  text-align: center;
}


.page-title {
  width: 100%;

  margin: 0;
  padding: 0;

  color: #404040;

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 34px;
  font-weight: 600;

  line-height: 1.02;

  letter-spacing: -0.5px;

  text-align: center;
}


/* =========================================================
   TEXTO LEGAL
========================================================= */

.legal-text {
  width: 100%;

  color: #454545;

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 21px;
  font-weight: 300;

  line-height: 1.56;

  letter-spacing: -0.25px;

  text-align: justify;
}


.legal-text p {
  margin: 0 0 11px;
  padding: 0;
}


/* =========================================================
   PANEL RENAP
========================================================= */

.renap-panel {
  width: 100%;

  margin-top: 23px;
}


/* =========================================================
   BANNER RENAP
========================================================= */

.renap-banner {
  width: calc(100% - 170px);
  max-width: 950px;
  min-height: 76px;

  margin: 0 auto 14px;
  padding: 16px 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 28px;

  color: #ffffff;
  background: var(--renap-wine);

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 22px;
  font-weight: 700;

  line-height: 1.15;

  text-align: center;
}


/* =========================================================
   DESCRIPCIÓN RENAP
========================================================= */

.renap-description {
  width: 100%;

  margin: 0 0 22px;
  padding: 0;

  color: #3e3e3e;

  font-family: Arial, sans-serif;

  font-size: 12px;
  font-weight: 400;

  line-height: 1.4;
}


/* =========================================================
   FORMULARIO DE BÚSQUEDA
========================================================= */

.search-form {
  width: 100%;

  margin: 0;
  padding: 0 14px;
}


/* =========================================================
   CAMPO DE BÚSQUEDA
========================================================= */

.search-field {
  width: 100%;

  margin: 0;
  padding: 0;
}


/* =========================================================
   LUPA GRANDE
========================================================= */

.renap-search-icon {
  position: relative;

  display: block;

  width: 24px;
  height: 24px;

  margin: 0 0 18px 31px;

  border: 4px solid #080808;
  border-radius: 50%;
}


.renap-search-icon::after {
  content: "";

  position: absolute;

  width: 12px;
  height: 4px;

  right: -10px;
  bottom: -6px;

  border-radius: 3px;

  background: #080808;

  transform: rotate(45deg);
}


/* =========================================================
   LABEL
========================================================= */

.search-field label {
  display: block;

  margin: 0 0 1px;

  color: #737373;

  font-family: Arial, sans-serif;

  font-size: 12px;
  font-weight: 400;

  line-height: 1;
}


/* =========================================================
   INPUT
========================================================= */

.search-field input {
  width: 100%;
  height: 17px;

  margin: 0;
  padding: 0 2px 3px;

  border: 0;
  border-bottom: 1px solid #9c9c9c;
  border-radius: 0;

  outline: none;

  color: #333333;
  background: transparent;

  font-family: Arial, sans-serif;

  font-size: 14px;

  text-transform: uppercase;
}


.search-field input:focus {
  border-bottom-color: var(--wine);
}


/* =========================================================
   BOTÓN BUSCAR
========================================================= */

.btn-search {
  width: 95px;
  height: 44px;

  display: block;

  margin: 34px 0 25px auto;
  padding: 0;

  border: 1px solid var(--wine);
  border-radius: 1px;

  color: #8b2345;
  background: #ffffff;

  font-family: Arial, sans-serif;

  font-size: 15px;
  font-weight: 400;

  cursor: pointer;

  transition:
    color 0.15s ease,
    background 0.15s ease;
}


.btn-search:hover,
.btn-search:focus {
  color: #ffffff;
  background: var(--wine);

  outline: none;
}


/* =========================================================
   ÁREA RESULTADOS
========================================================= */

.results-panel {
  width: 100%;

  min-height: 455px;

  display: flex;
  flex-direction: column;

  margin: 0;
  padding: 0 14px;
}


/* =========================================================
   CONTENEDOR TABLA
========================================================= */

.table-wrapper {
  width: 100%;

  margin: 0;

  overflow-x: auto;

  background: #ffffff;

  box-shadow:
    0 4px 11px rgba(0, 0, 0, 0.24);
}


/* =========================================================
   TABLA
========================================================= */

.renap-table {
  width: 100%;

  border-collapse: collapse;
  border-spacing: 0;

  table-layout: fixed;

  background: #ffffff;

  font-family: Arial, sans-serif;
}


/* =========================================================
   ANCHOS EXACTOS DE COLUMNAS

   Aproximación a las proporciones de la tabla de referencia:
   Folio      97px
   Tipo       63px
   Código     91px
   Título    165px
   Entidad   286px
   Siglas     79px
   Evaluador 325px
========================================================= */

.col-folio {
  width: 8.8%;
}


.col-tipo {
  width: 5.7%;
}


.col-codigo {
  width: 8.2%;
}


.col-titulo {
  width: 14.9%;
}


.col-entidad {
  width: 25.9%;
}


.col-siglas {
  width: 7.1%;
}


.col-evaluador {
  width: 29.4%;
}


/* =========================================================
   ENCABEZADOS
========================================================= */

.renap-table thead th {
  height: 73px;

  padding: 6px;

  border-right: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;

  color: #000000;
  background: var(--table-gray);

  font-size: 18px;
  font-weight: 700;

  line-height: 1.2;

  text-align: center;
  vertical-align: middle;
}


.renap-table thead th:last-child {
  border-right: 0;
}


/* =========================================================
   CELDAS GENERALES
========================================================= */

.renap-table tbody td {
  height: 46px;

  padding: 8px;

  border-top: 1px solid #dddddd;

  color: #333333;
  background: #ffffff;

  font-size: 13px;

  vertical-align: middle;
}


/* =========================================================
   FILA VACÍA
========================================================= */

.placeholder-row td {
  height: 46px !important;

  padding: 0 !important;

  border-right: 0 !important;

  background: #ffffff !important;

  font-weight: 400 !important;
}


/* =========================================================
   MENSAJE SIN RESULTADOS
========================================================= */

.empty-state {
  margin: 20px 0;
  padding: 14px;

  color: #777777;

  font-family: Arial, sans-serif;
  font-size: 14px;

  text-align: center;
}


.empty-state[hidden] {
  display: none;
}


/* =========================================================
   PAGINADOR
========================================================= */

.paginator {
  width: 100%;

  margin-top: auto;
  padding: 0 3px 18px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 28px;

  border-bottom: 1px solid #eeeeee;

  color: #7a7a7a;

  font-family: Roboto, Arial, sans-serif;

  font-size: 11px;
  font-weight: 400;
}


.paginator__actions {
  display: flex;
  align-items: center;

  gap: 2px;
}


.paginator button {
  width: 33px;
  height: 33px;

  margin: 0;
  padding: 0;

  border: 0;

  color: #b8b8b8;
  background: transparent;

  font-family: Arial, sans-serif;

  font-size: 25px;
  font-weight: 300;

  line-height: 1;

  cursor: default;
}


.paginator button:disabled {
  color: #bdbdbd;

  opacity: 1;
}


/* =========================================================
   FOOTER
========================================================= */

.main-footer {
  width: 100%;

  margin: 0;
  padding: 34px 0 28px;

  color: #ffffff;
  background: var(--wine);
}


/* =========================================================
   GRID FOOTER
========================================================= */

.footer-grid {
  display: grid;

  grid-template-columns:
    1.05fr
    1fr
    1fr
    1.12fr;

  column-gap: 45px;

  align-items: start;
}


/* =========================================================
   LOGO FOOTER
========================================================= */

.footer-logo img {
  width: 148px;
  height: auto;
}


/* =========================================================
   COLUMNAS FOOTER
========================================================= */

.footer-column {
  color: #ffffff;

  font-family: Arial, sans-serif;
}


.footer-column h3 {
  margin: 0 0 18px;
  padding: 0;

  color: #ffffff;

  font-size: 12px;
  font-weight: 700;

  line-height: 1.35;
}


.footer-column p {
  margin: 0 0 14px;

  color: #ffffff;

  font-size: 14px;
  font-weight: 400;

  line-height: 1.45;
}


.footer-column ul {
  margin: 0;
  padding: 0;

  list-style: none;
}


.footer-column li {
  margin: 0 0 7px;
  padding: 0;
}


.footer-column a {
  color: #ffffff;

  font-size: 14px;
  font-weight: 400;

  line-height: 1.35;

  text-decoration: none;
}


.footer-column a:hover,
.footer-column a:focus {
  text-decoration: underline;
}


.footer-column p a {
  text-decoration: underline;
}


.footer-underlined {
  text-decoration: underline !important;
}


/* =========================================================
   REDES
========================================================= */

.follow-title {
  margin-top: 23px !important;

  font-size: 12px !important;
  font-weight: 700 !important;
}


.social-links {
  display: flex;
  align-items: center;

  gap: 12px;

  margin: 12px 0 19px;
}


.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
}


.social-links img {
  width: 22px;
  height: 22px;

  object-fit: contain;
}


/* =========================================================
   079
========================================================= */

.phone-logo {
  display: inline-block;
}


.phone-logo img {
  width: 150px;
  height: auto;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .site-container {
    width: calc(100% - 40px);
  }


  /* -----------------------------------------
     BOTÓN MOBILE
  ----------------------------------------- */

  .menu-toggle {
    display: block;
  }


  /* -----------------------------------------
     MENÚ GOBIERNO
  ----------------------------------------- */

  .gov-navbar__menu {
    position: absolute;

    top: 76px;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 12px 20px;

    background: var(--wine);

    z-index: 100;
  }


  /* -----------------------------------------
     MENÚ CONOCER
  ----------------------------------------- */

  .sub-navbar__menu {
    position: absolute;

    top: 45px;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 12px 20px;

    background: var(--sub-wine);

    z-index: 100;
  }


  .gov-navbar__menu.is-open,
  .sub-navbar__menu.is-open {
    display: flex;
  }


  .gov-navbar__menu a,
  .sub-navbar__menu a {
    padding: 10px 0;
  }


  /* -----------------------------------------
     TÍTULO
  ----------------------------------------- */

  .page-title {
    font-size: 29px;

    line-height: 1.1;
  }


  /* -----------------------------------------
     TEXTO
  ----------------------------------------- */

  .legal-text {
    font-size: 19px;
  }


  /* -----------------------------------------
     BANNER
  ----------------------------------------- */

  .renap-banner {
    width: 86%;
    max-width: none;

    font-size: 20px;
  }


  /* -----------------------------------------
     TABLA
  ----------------------------------------- */

  .renap-table {
    min-width: 950px;
  }


  /* -----------------------------------------
     FOOTER
  ----------------------------------------- */

  .footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    row-gap: 35px;
  }

}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 600px) {

  .site-container {
    width: calc(100% - 28px);
  }


  /* =======================================================
     HEADER
  ======================================================= */

  .gov-navbar {
    height: 64px;
    min-height: 64px;
  }


  .gov-navbar__inner {
    height: 64px;
  }


  .gov-navbar__brand img {
    height: 39px;
  }


  .gov-navbar__menu {
    top: 64px;
  }


  /* =======================================================
     CONTENIDO
  ======================================================= */

  .page-content {
    padding-top: 26px;
  }


  .title-container {
    margin-bottom: 26px;
    padding: 0;
  }


  .page-title {
    font-size: 24px;

    line-height: 1.15;
  }


  .page-title br {
    display: none;
  }


  /* =======================================================
     TEXTO
  ======================================================= */

  .legal-text {
    font-size: 16px;

    line-height: 1.55;

    text-align: left;
  }


  .legal-text p {
    margin-bottom: 16px;
  }


  /* =======================================================
     RENAP
  ======================================================= */

  .renap-panel {
    margin-top: 28px;
  }


  .renap-banner {
    width: 100%;
    max-width: none;
    min-height: 65px;

    padding: 14px 18px;

    border-radius: 20px;

    font-size: 18px;
  }


  .renap-description {
    font-size: 12px;

    line-height: 1.5;
  }


  /* =======================================================
     BUSCADOR
  ======================================================= */

  .search-form {
    padding: 0;
  }


  .renap-search-icon {
    margin-left: 20px;
  }


  .btn-search {
    margin-right: 0;
  }


  /* =======================================================
     RESULTADOS
  ======================================================= */

  .results-panel {
    min-height: 400px;

    padding: 0;
  }


  .renap-table {
    min-width: 900px;
  }


  /* =======================================================
     PAGINACIÓN
  ======================================================= */

  .paginator {
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px 18px;
  }


  /* =======================================================
     FOOTER
  ======================================================= */

  .footer-grid {
    grid-template-columns: 1fr;

    row-gap: 32px;
  }

}


/* =========================================================
   RESULTADOS REALES
========================================================= */

.renap-table tbody tr:not(.placeholder-row) td {
  height: 58px;

  padding: 8px;

  border-top: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;

  color: #000000;
  background: #f2f2f2;

  font-family: Arial, sans-serif;

  font-size: 13px;
  font-weight: 700;

  line-height: 1.25;

  text-align: left;
  vertical-align: top;

  white-space: normal;

  word-break: normal;
  overflow-wrap: break-word;
}


.renap-table tbody tr:not(.placeholder-row) td:last-child {
  border-right: 0;
}


/* =========================================================
   FILA VACÍA INFERIOR
========================================================= */

.placeholder-row td {
  height: 46px !important;

  padding: 0 !important;

  border-right: 0 !important;

  color: transparent !important;
  background: #ffffff !important;

  font-weight: 400 !important;
}


/* =========================================================
   BOTÓN BUSCAR CARGANDO
========================================================= */

.btn-search:disabled {
  color: #777777;
  background: #eeeeee;

  border-color: #b7b7b7;

  cursor: wait;

  opacity: 0.7;
}


/* =========================================================
   BLOQUEAR SCROLL DURANTE CARGA
========================================================= */

body.is-loading {
  overflow: hidden;
}


/* =========================================================
   OVERLAY DE CARGA
========================================================= */

.loading-overlay {
  position: fixed;

  inset: 0;

  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    rgba(0, 0, 0, 0.79);
}


.loading-overlay[hidden] {
  display: none !important;
}


/* =========================================================
   CONTENIDO DEL LOADER
========================================================= */

.loading-content {
  min-width: 170px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: #ffffff;

  text-align: center;
}


.loading-content p {
  margin: 8px 0 0;

  color: #ffffff;

  font-family: Arial, sans-serif;

  font-size: 12px;
  font-weight: 400;

  line-height: 1;
}


/* =========================================================
   LOADER CENTRAL
========================================================= */

.renap-loader {
  position: relative;

  width: 75px;
  height: 75px;

  animation:
    renap-loader-spin
    1.45s
    linear
    infinite;
}


/* =========================================================
   CÍRCULO CENTRAL
========================================================= */

.renap-loader__center {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 27px;
  height: 27px;

  border-radius: 50%;

  background: #b7b7b7;

  transform:
    translate(-50%, -50%);

  box-shadow:
    0 0 0 1px
    rgba(255, 255, 255, 0.10);
}


.renap-loader__center::after {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background: #ef3a3a;

  transform:
    translate(-50%, -50%);
}


/* =========================================================
   PUNTOS ROJOS
========================================================= */

.renap-loader__dot {
  position: absolute;

  display: block;

  border-radius: 50%;

  background: #e72323;

  box-shadow:
    0 0 4px
    rgba(231, 35, 35, 0.35);
}


.renap-loader__dot--1 {
  top: 7px;
  left: 31px;

  width: 10px;
  height: 10px;
}


.renap-loader__dot--2 {
  top: 38px;
  left: 9px;

  width: 9px;
  height: 9px;
}


.renap-loader__dot--3 {
  top: 52px;
  right: 12px;

  width: 7px;
  height: 7px;
}


/* =========================================================
   ANIMACIÓN
========================================================= */

@keyframes renap-loader-spin {

  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }

}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .renap-loader {
    animation-duration: 3s;
  }

}