/* --- Estilos base--- */
body, h1, h2, h3, h4, p, label, input, button {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Patria", "noso Sans", "Helvetica", "Arial", sans-serif;
  background-color: #fff;
  color: #4d1431; 
}

.header {
  border-bottom: 6px solid #4d1431; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5vw 3vw; 
  max-width: 1200px; 
  margin: 0 auto 30px; 
  flex-wrap: nowrap; 
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0; 
}
.logo-seal {
  width: 16vw; 
  max-width: 200px; 
  min-width: 80px; 
  height: auto;
}
.header-center {
  text-align: center;
  flex-grow: 1;
  max-width: 700px;
  padding: 0 10px; 
  min-width: 100px; 
}
.header-center .logo-comunicaciones {
  width: 100%;
  max-width: 650px; 
  height: auto;
  display: block; 
  margin: 0 auto;
}
.header-right {
  flex-shrink: 0; 
  text-align: right;
}
.header-right img {
  width: 12vw; 
  max-width: 150px;
  min-width: 60px; 
  height: auto;
}

.main {
  max-width: 850px; 
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.title-section {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  justify-content: space-between; 
}

.title-content-wrapper {
  display: flex;
  align-items: center;
  flex-grow: 1; 
}

.title-section h2 {
  font-size: 2.7rem;
  font-weight: 900;
  white-space: nowrap;
  margin-right: 12px;
}
.title-line {
  width: 3px;
  height: 75px;
  background-color: #731b2a;
  margin: 0 12px 0 0;
  display: flex; 
}

.title-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: #4d1431;
}
.title-info p {
  color: #a67c3d;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0;
}
.title-section a {
  white-space: nowrap;
  margin-left: 0; 
  padding-left: 10px; 
}


form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
input[type="text"] {
  width: 100%; 
  box-sizing: border-box; 
  height: 32px;
  font-size: 14px;
  padding: 0 8px;
  border: 1.3px solid #ccc;
  border-radius: 3px;
  outline-offset: -2px;
}
input[type="text"]:focus {
  border-color: #4d1431;
  outline: 2px solid #4d1431;
}
.buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
input[type="button"] {
  font-weight: 700;
  font-size: 1rem;
  color: #4d1431;
  background: white;
  border: 2px solid #731b2a;
  border-radius: 6px;
  padding: 0.5rem 1.8rem;
  cursor: pointer;
  min-width: 100px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
input:hover[type="button"] {
  background-color: #731b2a;
  color: white;
  border-color: #4d1431;
}


.busqueda-table {
  width: 90%; 
  max-width: 500px; 
  border-collapse: collapse; 
  margin: 15px auto; 
}
.busqueda-table th {
  text-align: center;
  padding-bottom: 20px; 
}
.busqueda-table td {
  padding: 10px 5px; 
  vertical-align: middle; 
}
.busqueda-table td:first-child {
  text-align: right;
  width: 35%; 
  font-weight: lighter;
}
.busqueda-table td:last-child {
  width: 65%; 
}
.busqueda-table input[type="text"] {
  width: 95%; 
  max-width: none;
}

.captcha-row {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 15px; 
  }
  
  .captcha-row label {
  font-weight: bold; 
  flex-shrink: 0; 
  }
  
  .captcha-row input[type="text"] {
  width: auto; 
  max-width: 100px; 
  flex-grow: 0;
  }
  
  .busqueda-table + div[align="center"] img {
  display: block; 
  margin: 0 auto 10px auto;
  }

/* Estilos para el Footer */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: url(img/bar.html); 
  background-repeat: repeat-x;
  background-position: center center;
  height: 30px;
  z-index: 10; 
}
.footer p {
  visibility: hidden; 
}


@media (max-width: 768px) {
  .header {
      padding: 10px 5px; 
  }
  .logo-seal {
      width: 70px; 
      min-width: 70px;
  }
  .header-right img {
      width: 50px; 
      min-width: 50px;
  }
  .header-center .logo-comunicaciones {
    max-width: 90%; 
  }

  .title-section {
      flex-direction: column; 
      align-items: center; 
      margin-bottom: 1.5rem;
      text-align: center;
      justify-content: center; 
  }
 
  .title-content-wrapper {
      flex-direction: column; 
      align-items: center; 
  }
  .title-section h2 {
      font-size: 2rem;
      margin-right: 0;
      margin-bottom: 5px;
  }
  .title-line {
      height: 3px;
      width: 50px; 
      margin: 5px auto 10px auto; 
  }
  .title-info {
      text-align: center; 
  }
  .title-info h3 {
      font-size: 1.1rem;
  }
  .title-info p {
      font-size: 0.9rem;
  }
  .title-section a {
      display: block; 
      margin-top: 10px;
      padding-left: 0; 
  }

 
  .busqueda-table {
      width: 95%; 
      display: block; 
  }
  .busqueda-table tr {
      display: flex;
      flex-direction: column; 
      margin-bottom: 10px;
  }
  .busqueda-table td {
      display: block;
      width: 100%;
      text-align: left !important; 
      padding: 2px 0;
  }
  .busqueda-table td:first-child {
      font-weight: bold; 
      width: 100%; 
      text-align: left !important;
  }
  .busqueda-table input[type="text"] {
      width: 98%; 
      margin-top: 5px;
  }
  .busqueda-table th {
      padding-bottom: 10px;
  }
  .buttons {
      flex-direction: column; 
      gap: 0.8rem;
  }
  input[type="button"] {
      width: 100%; 
      padding: 0.7rem 1rem;
      box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .captcha-row {
  flex-direction: column; 
  text-align: center;
  gap: 5px;
  }
}