* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ccffcc;
    /**/
}

header {
    padding: 1rem;
    display: flex;
    background-color: #000b6b;
    color: #ffffff;
    gap: 5px;
    padding-left: 20px;
}

.logo {
    width: 100px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

header .contenido {
    text-align: left;
    font-size: 0.5rem;
    padding-top: 1.5rem;
    padding-left: .2rem;
}

main {
    margin-top: 10px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

form h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color:  #ffffff;
}

form {
    display: flex;
    flex-direction: column;
    background-color: #0047ab;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px black;
    max-width: 700px;
    width: 100%;
    border: 1px solid #0018f3;
    color:  #ffffff;
}

.contenedor--flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px;
}

hr {
    border: 1px solid #ccc;
}

input,
select {
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid  #ffffff;
    transition: border-color 0.3s;
    flex: 1;
}

input:focus,
select:focus {
    border-color: #0047ab;
    outline: none;
}

.submit {
    margin-top: 10px;

    display: inline-flex;
    align-items: center;
    background-color: #000b6b;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit:hover {
    background-color: #0b3064;
}

.submit input[type="submit"] {
    background: none;
    border: none;
    color: white;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: auto;
}

.submit::after {
    content: '';
    background-image: url('https://img.icons8.com/material-rounded/48/ffffff/sent.png');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-left: 5px;
}

.subtitulo {
    text-align: center;
    font-size: 1rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.checkbox-group {
    border: none;
    display: flex;
    flex-direction: column;
    color: #fff;
    margin-top: 10px;
}

.checkbox-group legend {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.checkbox-group label {
    display: flex;
    font-weight: 400;
}

input[type="file"] {
    display: none;
}

.label--file {
    border: 2px dashed  #ffffff;
    border-radius: 12px;
    padding: 20px 20px;
    display: block;
    cursor: pointer;
    transition: 0.3s ease;
    color:  #ffffff;
}

input[type="file"]::file-selector-button {
    background-color: red;
}


.contenedor--flex-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contenedor-seminarios,
.contenedor-archivo {
    flex: 1;
    min-width: 300px;
}

.titulo-seccion {
    font-weight: bold;
    margin-bottom: 10px;
    color:  #ffffff;
}

.checkbox-item {
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: white;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #ffd700; 
}



.contenedor-archivo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 15px;
    margin-bottom: 1.5rem;
}

.label-archivo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #007BFF;
    color:  #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.label-archivo:hover {
    background-color: #0056b3;
}

.label-archivo img {
    filter: brightness(0) invert(1);
    /* Asegura que el ícono sea blanco */
}

#archivo:focus-visible+.label-archivo {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.flex{
    flex: 1;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
}

.modal-contenido {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cerrar-modal {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contenedor-seminarios {
  background-color: #0047ab;
  padding: 1rem;
  border-radius: 8px;
  color: white;
  max-width: 400px;
}

.contenedor-seminarios .opcion {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contenedor-seminarios input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2); /* Opcional: agrandar */
}


@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center; /* Cambiado de flex-start a center */
    padding-left: 0;
    padding-top:5px;
    text-align: center; /* Centra los textos si hay contenido */
  }

  .logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
  }

  .logo1{
    margin-top: 20px;
    width:50px;
  }

  .logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  header .contenido {
    font-size: 0.65rem;
    padding: 0;
  }

  main {
    padding: 1rem;
  }

  form {
    padding: 1.5rem;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }

  .contenedor--flex,
  .contenedor--flex-row {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  .contenedor-archivo {
    min-width: 100%;
  }

  .contenedor-seminarios {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.2;
  flex-wrap: wrap;
}

  .submit {
    justify-content: center;
    width: 100%;
  }

  .submit input[type="submit"] {
    width: 100%;
  }

  .label--file {
    text-align: center;
    padding: 1rem;
  }

  .label-archivo {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .label-archivo img {
    width: 30px;
    height: 30px;
  }
  .contenedor--flex input{
    width: 100%;
  }
  .checkbox-item {
  font-size: 0.95rem;
  gap: 0.4rem;
}

}

/* Optimización para pantallas muy pequeñas */
@media (max-width: 480px) {
  form h1 {
    font-size: 1.5rem;
  }

  .subtitulo {
    font-size: 0.9rem;
  }

  .titulo-seccion {
    font-size: 1rem;
  }

  .contenedor--flex input{
    width: 100%;
  }
}