/* === ESTILO UNIFICADO === */

/* FORMULARIO Y MODAL COMPARTEN ESTILO BASE */
.formulario-contacto,
.modal-contenido {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TÍTULOS GRANDES */
.titulo-formulario,
.modal-header h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
}

/* ETIQUETAS ELEGANTES */
.label-campo {
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}

/* CAMPOS DE TEXTO */
.input-campo,
.textarea-observacion,
select {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: #f4f6f8;
  transition: all 0.3s ease;
}

.input-campo:focus,
.textarea-observacion:focus,
select:focus {
  background-color: #fff;
  border-color: #007bff;
  outline: none;
}

/* TEXTAREA BONITA */
.textarea-observacion {
  resize: vertical;
  min-height: 90px;
  max-height: 200px;
}

/* BOTÓN VER CONTACTOS */
.boton-ver-contactos {
  align-self: center;
  background-color: #007bff;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-ver-contactos:hover {
  background-color: #0056b3;
}

/* BOTÓN GUARDAR */
.boton-guardar-contacto {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-guardar-contacto:hover {
  background-color: #218838;
}

/* BOTÓN AGREGAR OBSERVACIÓN */
.boton-mas-observacion {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.boton-mas-observacion:hover {
  background-color: #117a8b;
}

/* BOTÓN ELIMINAR */
.btn-eliminar {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-eliminar:hover {
  background-color: #a71d2a;
}

/* MODAL FONDO OSCURO */
.modal-contactos {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* HEADER DEL MODAL */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
}

.btn-cerrar {
  background-color: #ff5e5e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-cerrar:hover {
  background-color: #e74c3c;
}

/* CONTENIDO DESPLAZABLE */
.modal-cuerpo {
  margin-top: 15px;
  overflow-y: auto;
  max-height: 60vh;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

/* TABLA DE CONTACTOS */
.tabla-contactos {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tabla-contactos th {
  background-color: #f8f9fa;
  font-weight: 600;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.tabla-contactos td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.tabla-contactos tr:hover {
  background-color: #f0f0f0;
}

/* UTILIDAD PARA OCULTAR */
.oculto {
  display: none;
}
