/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fcfcfc; /* fondo suave */
  margin-left: 280px; /* espacio para sidebar */
  padding: 20px;
  color: #2f3c3f;
}

/* Contenedor del formulario */
.container {
  max-width: 700px;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Título */
.container h2 {
  margin-bottom: 25px;
  color: #1a8b84;
  font-size: 24px;
}

/* Etiquetas */
label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2f3c3f;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="file"],
button {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #94b0b0;
  border-radius: 6px;
  background-color: #fff;
  font-size: 15px;
  color: #2f3c3f;
}

select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #94b0b0;
  border-radius: 6px;
  background-color: #fff;
  font-size: 15px;
  color: #2f3c3f;
  appearance: none; /* Opcional para quitar estilo del navegador */
}

/* Botón */
button {
  background-color: #1a8b84;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 25px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #15736d;
}

/* Mensajes */
.mensaje {
  margin-top: 20px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}

.mensaje.exito {
  background-color: #d4edda;
  color: #155724;
}

.mensaje.error {
  background-color: #f8d7da;
  color: #721c24;
}
.menu-toggle {
    display: none;
    background: #1a8b84;
    color: #fff;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    position: fixed;
    top: 15px;
    left: 15px;
    border-radius: 6px;
    z-index: 999;
    border: none;
    width: auto;          
    height: auto;         
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-registrar {
  margin: 25px auto 0;
  display: block;
  width: fit-content;
}


.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
}


.col-span-2 {
  grid-column: span 2;
}

.menu-toggle:hover {
    background: #15736d;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .col-span-2 {
    grid-column: span 1;
  }
}



/* Responsive */
@media (max-width: 768px) {
  body {
    margin-left: 0;
    padding: 15px;
  }

  .container {
    width: 100%;
    padding: 20px;
  }
}


.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 60, 63, 0.55); 
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

/* Contenido del modal */
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  border-radius: 10px;
  padding: 25px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: aparecer 0.25s ease-in-out;
}

/* Título del modal */
.modal-content h3 {
  margin-bottom: 18px;
  color: #1a8b84;
  font-size: 20px;
  text-align: center;
}

/* Campos dentro del modal */
.modal-content input[type="text"],
.modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #94b0b0;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 12px;
  resize: none;
}

.modal-content button {
  background-color: #1a8b84;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #15736d;
}

/* Botón cerrar (X) */
.cerrar {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cerrar:hover {
  color: #333;
}

/* Animación suave */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Campo con botón + --- */
.campo-agregar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.campo-agregar select {
  flex: 1;
  height: 44px; /* mismo alto que el botón */
  padding: 0 12px; /* centrado verticalmente */
  font-size: 15px;
  border: 1px solid #94b0b0;
  border-radius: 6px;
  background-color: #fff;
  line-height: 1;
  appearance: none; /* quita el estilo nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
}
.campo-agregar select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%2394b0b0' d='M7 10L0 0h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

.btn-agregar {
  width: 44px;
  height: 44px;
  background-color: #1a8b84;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 2px; /* microajuste */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  /* 🔹 control vertical manual */
  margin-top: -5px; 


}

.btn-agregar:hover {
  background-color: #15736d;
}

.btn-agregar:active {
  transform: scale(0.95);
}
