/* css/estilos.css */

* {
    box-sizing: border-box;
  }
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f3f3f3;
  }
  .container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
/* Estilos globales */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

/* Encabezado y navbar */
.navbar {
    background-color: #222;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.navbar ul li a:hover {
    background: #444;
}

/* Contenedor principal */
.container {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

  





/* css/estilos.css */

/* Reinicios básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f7f7;
  }
  
  .container {
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
  }
  
  /* Contenedor para columnas */
  .flex-container {
    display: flex;
    gap: 2rem; /* Espacio entre columnas */
  }
  
  /* Columnas */
  .left-column, .right-column {
    flex: 1;
  }
  
  /* Títulos */
  h1, h2, h3 {
    margin-bottom: 1rem;
  }
  
  /* Formularios */
  form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  label {
    font-weight: bold;
  }
  input, select {
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 3px;
  }
  
  /* Tablas */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }
  th, td {
    border: 1px solid #ccc;
    padding: 0.6rem;
  }
  th {
    background-color: #f0f0f0;
  }
  table tbody tr:hover {
    background-color: #f0f0f0;
  }
  
  /* Botones */
  button {
    background-color: #bfa145; /* dorado suave */
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 0.5rem;
  }
  button:hover {
    background-color: #d4b14e;
  }


  /* Para todas las filas del formulario: label e input en línea */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .form-row label {
    margin-right: 5px;
    white-space: nowrap;
  }
  
  /* Para la sección de Coordinador: disponer los campos en línea con espacio */
  .coordinator-container {
    display: flex;
    flex-wrap: wrap;  /* Permite que los campos se acomoden en filas en pantallas pequeñas */
    gap: 1rem;        /* Espacio entre cada campo */
  }
  
  .coordinator-field {
    display: flex;
    align-items: center;
  }
  
  .coordinator-field label {
    margin-right: 5px;
    white-space: nowrap;
  }
  
  .btn {
    background-color: #bfa145;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 3px;
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  

  .btn {
    background-color: #bfa145;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 3px;
    font-size: 1rem;
  }
  
  .btn.small-plus {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .edit-icon {
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #bfa145;
  }

  .list-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
  }
  
  .list-header h3 {
    margin: 0;
  }
  
  .list-header .btn.small-plus {
    margin-left: 10px;
  }

  .btn {
    background-color: #bfa145;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 3px;
    font-size: 1rem;
  }
  
  .btn.small-plus {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .edit-icon {
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #bfa145;
  }
  
  .list-header h3 {
    margin: 0;
  }

  .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .form-row label {
    margin-right: 5px;
    white-space: nowrap;
  }
  
  .btn {
    background-color: #bfa145;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 3px;
    font-size: 1rem;
  }
  
  .btn.small-plus {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .edit-icon {
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #bfa145;
  }
  
  .list-header h3 {
    margin: 0;
  }

  /* Estilos mínimos para el modal */
.modal {
    position: fixed;
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); /* sombra */
  }
  
  .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 1rem;
    border-radius: 5px;
    width: 50%;
    position: relative;
  }
  
  .close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .delete-icon {
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #d9534f;  /* Color rojo para indicar eliminación */
  }

  .selected {
    background-color: #f0f0f0; /* Color de fondo para marcar el seleccionado */
    font-weight: bold;
  }
  
  /* Contenedor del switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 24px;
    margin-right: 8px;
  }
  
  /* Ocultar el checkbox original */
  .toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* Estilo de la pista del switch */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }
  
  /* El circulito */
  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  /* Cuando el checkbox está marcado, cambia color de fondo y la posición del circulito */
  input:checked + .slider {
    background-color: #bfa145; /* color dorado */
  }
  input:checked + .slider:before {
    transform: translateX(20px);
  }
  
  /* redondo */
  .slider.round {
    border-radius: 34px;
  }
  .slider.round:before {
    border-radius: 50%;
  }
  
  @media (max-width: 768px) {
    .flex-container {
      flex-direction: column;
    }
  }
  
  /* Eliminar el tap highlight azul en dispositivos táctiles */
  a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle {
    -webkit-tap-highlight-color: transparent;
  }
  