/* ============================= */
/* ESTILOS GENERALES */
/* ============================= */

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1f2d3d;
  background: linear-gradient(135deg, #f5f9ff 0%, #eef4ff 100%);
  min-height: 100vh;
}

.container {
  padding-bottom: 40px;
}

/* Aplicar bordes y estilo premium a los formularios */
.form-border {
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fcfdff;
  transition: all 0.2s ease-in-out;
}

.form-border:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  background: #ffffff;
}

.form-shell {
  box-shadow: 0 18px 45px rgba(15, 76, 129, 0.16);
}

.card-header {
  background: linear-gradient(135deg, #0f4c81 0%, #0d6efd 100%);
}

/* ============================= */
/* TÍTULOS Y ENCABEZADOS */
/* ============================= */

.titulo {
  background: linear-gradient(280deg, rgba(9, 184, 240, 1) 8%, rgba(35, 49, 96, 1) 100%);
  color: white;
  padding: 12px;
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 18px;
}

.subtitulo {
  background-color: #f3f7ff;
  padding: 10px;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 16px;
  color: #21406b;
  border: 1px solid #dce7f9;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3f7ff 0%, #eef4ff 100%);
  border: 1px solid #dce7f9;
}

.section-title h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f4c81;
  font-weight: 700;
}

.form-section {
  margin-bottom: 1.4rem;
  padding: 1.1rem;
  background: #ffffff;
  border: 1px solid #e6ecf6;
  border-radius: 16px;
}

/* ============================= */
/* FORMULARIOS Y CAMPOS */
/* ============================= */

input,
select,
textarea {
  font-size: 14px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #28384f;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #21406b;
}

textarea.form-border {
  resize: vertical;
  min-height: 130px;
}

.row > .col-md-4,
.row > .col-md-6,
.row > .col-md-12 {
  margin-bottom: 15px;
}

/* ============================= */
/* LOGO */
/* ============================= */

.logo-container {
  padding: 20px;
  background: linear-gradient(280deg, rgba(9, 184, 240, 1) 8%, rgba(35, 49, 96, 1) 100%);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ============================= */
/* BOTONES */
/* ============================= */

.btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0f4c81 100%);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
}

.btn-info {
  border-radius: 999px;
}

/* ============================= */
/* FIRMA */
/* ============================= */

#firma_canvas {
  cursor: crosshair;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #cfd9e6;
  width: 100%;
  height: 200px;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer .col-md-12 {
  flex-basis: 100%;
}

.footer p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer .social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.footer .social-links li {
  margin-right: 20px;
}

.footer .social-links a {
  color: #fff;
  font-size: 18px;
  transition: color 0.2s ease;
}

.footer .social-links a:hover {
  color: #ccc;
}

/* ============================= */
/* RESPONSIVE (Móviles y Tablets) */
/* ============================= */

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .textarea-largo {
    min-height: 100px;
    resize: vertical;
  }

  .titulo,
  .subtitulo {
    font-size: 14px;
    padding: 8px;
  }

  .footer p {
    font-size: 12px;
  }
}

