body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   
    background: #f4f6f8;
    margin: 0;
    padding: 0;
    color: #333;
  }
  
  
  header {
    background-color:rgb(249, 251, 252);
    color: rgb(5, 28, 158);
    padding: 1rem 2rem;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.2em;
    color: #333;
    border-bottom: 2px solid #007bff;
    margin: 20px 0 15px;
    padding-bottom: 5px;
  }
  .contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
  }
  
  .formulario {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1 1 400px;
    min-width: 300px;
  }
  .campos-agupados {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem; /* Espacio entre los campos */ 
  }
  .campo {
    /*margin-bottom: 1rem;*/
    flex: 0 0 calc(50% - 0.5rem); /* 50% del ancho menos la mitad del gap */
    box-sizing: border-box;
  }

input[type="submit"], input[type="button"] {
  background-color: #005f73;
  color: white;
  border: none;
  cursor: pointer;
}
  .formulario label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
  }
  
  .formulario input,
  .formulario select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
  }
  
  .formulario input[type="submit"]:hover, .formulario input[type="button"]:hover {
    background: #005ea2;
  }
  
  .resumen {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex: 1 1 250px;
    min-width: 250px;
  }
  
  .resumen p {
    font-size: 1.1rem;
  }
  .fondo {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.contenedor {
  flex: 1;
}

label {
  color: #222;
  font-size: 0.95rem;
}

input:focus,
select:focus {
  border-color: #0078d4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}
.formulario-50 {
    max-width: 600px;
    width: 100%;
  }
  
  @media (max-width: 768px) {
    .formulario-50 {
      max-width: 100%;
      padding: 1.5rem;

    }
    .formulario-50 textarea,  select, input[type="number"], input[type="date"] {
        max-width: 95%;
    }
  }


  
       /* Contenedor general */
.banner-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Contenedor interno de los logos */
.banner {
  display: flex;
  justify-content: space-between; /* Distribuye logos a los extremos */
  align-items: flex-start;
  width: 90%; /* O puedes poner 80% si quieres más separación aún */
  max-width: 1200px; /* No dejar que se estire infinito en pantallas grandes */
}

/* Agrupar el ministerio + incanal */
.logo-principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Logo incanal */
.logoinc img {
  width: 80%;
  height: 80%;
}

@media (max-width: 600px) {
  .contenedor {
    flex-direction: column;
    align-items: stretch;
  }

  .formulario, .resumen {
    width: 100%;
  }
}

.logout-link {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  background-color: #d9534f;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.logout-link:hover {
  background-color: #c9302c;
}
