html {
    display: block;
    padding: 1.5rem;
    font-family: sans-serif;
    background-image: url(/img/Fondo%20Convocatoria.png);
    background-size: 100%;
    background-position: top;
    background-repeat: repeat;
}
form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: #f9f9f9;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.field-group {
    display: flex;
    flex-direction: column;
}
label {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 0.3rem;
}
i {
    color: #a2aebd;
}
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="file"], select {
    padding: 0.4rem;
    font-size: 0.875em;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}
input[readonly] {
    background: #eee;
}

select[disabled] {
    background: #eee;
    color: #000000;
}
button {
    padding: 0.7rem;
    background-color: #004085;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875em;
}
button:disabled {
    background: #aaa;
    cursor: not-allowed;
}
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Formato reutilizable para botones con ícono + texto: se define como
   caja flex explícita (no solo el texto/ícono) para que TODO el
   rectángulo del botón sea el área de clic. Además, TODOS los hijos
   (ícono, texto, cualquier span) quedan con pointer-events: none, así
   el click siempre se resuelve contra el <button> mismo sin importar
   sobre qué parte visual caiga - evitando que solo una porción (el
   glifo del ícono o el texto) responda y el resto se sienta "como
   imagen". */
.btn-full-click {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 44px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.btn-full-click * {
    pointer-events: none;
}

.btn-full-click:disabled {
    cursor: not-allowed;
}

.btn-imprimir {
    background-color: #050933;
}

.btn-imprimir:hover {
    background-color: #0a1050;
}
.file-info {
    font-style: italic;
    font-size: 0.875em;
}
.intro-text {
    font-size: 0.875em;
    color: #333;
    background: #eef2f7;
    padding-left: 1rem;
    padding-right: 1rem;
    border-left: 4px solid #004085;
    border-radius: 6px;
    text-align: justify;
}

.file-label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.file-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.file-wrapper input[type="file"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 38px;
  pointer-events: none; 
  z-index: 0;
}

.custom-file-btn {
  position: relative;
  z-index: 1; 
  padding: 0.5rem 1rem;
  background-color: #4f5a69;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-file-btn:hover {
  background-color: #003f7d;
}

.file-name {
  font-style: italic;
  font-size: 0.9rem;
  color: #333;
  /*overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;*/
  max-width: 350px;
}

.logo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h2 {
    text-align: center;
    margin-block-start: 0em;
    margin-block-end: 0em;
    font-size: 1.1em;
    color: #004085;
}