/* Start custom CSS for html, class: .elementor-element-62e8897 *//* ==== GENERADOR DE FIRMAS CORFICAP ==== */

/* Contenedor general */
.sg-form-wrapper {
  background: #ffffff !important;
  padding: 12px !important;
}

/* Formulario principal */
.sg-form {
  max-width: 980px;
  margin: 0;
  font-family: "Arial", Helvetica, sans-serif;
  color: #222;
  background: transparent;
  border: none;
  padding: 0;
}

/* Grid principal: logo a la izquierda, campos a la derecha */
.sg-form-grid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.sg-logo-col {
  flex: 0 0 180px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.sg-logo {
  width: 168px;
  height: auto;
  display: block;
  border: 0;
  background: transparent;
}

.sg-input-col {
  flex: 1 1 auto;
  min-width: 300px;
}

/* Campos del formulario */
.sg-fields label {
  display: block;
  font-size: 13px;
  margin: 8px 0 4px;
  color: #333;
  font-weight: 600;
}

.sg-fields input[type="text"],
.sg-fields input[type="email"],
.sg-fields select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.sg-fields input[type="text"]:focus,
.sg-fields input[type="email"]:focus {
  outline: none;
  border-color: #fb8221;
}

/* Campos en dos columnas */
.sg-two-cols {
  display: flex;
  gap: 8px;
}
.sg-two-cols > div {
  flex: 1;
}

/* Botones */
.sg-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sg-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: #f5f5f5;
  border: 1px solid #eaeaea;
  color: #222;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sg-btn:hover {
  background: #fb8221;
  color: #fff;
  border-color: #fb8221;
}

/* Botón principal (si lo usas con clase adicional) */
.sg-btn-primary {
  background: #fb8221;
  color: #fff;
  border: 1px solid transparent;
}

/* === PREVIEW === */
.sg-preview {
  margin-top: 12px;
  padding: 0 !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 100px;
}

/* Corrige posibles estilos heredados de Elementor o Royal Addons */
#sg-preview,
.sg-preview,
div#sg-preview.elementor-widget-container,
.elementor .sg-preview,
.elementor-widget-container .sg-preview {
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Asegura que la tabla interior no tenga bordes ni color de fondo externo */
#sg-preview table {
  border: none !important;
  background: #ffffff !important;
}

#sg-preview * {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Opcional: añade un borde sutil solo al hacer hover sobre el preview */
#sg-preview:hover {
  outline: 1px dashed #fb8221;
  outline-offset: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .sg-form-grid {
    flex-direction: column;
  }
  .sg-logo-col {
    order: 0;
  }
  .sg-input-col {
    order: 1;
  }
}

/* ==== FIN DE ESTILOS ==== */

/* Quita todo borde visible del contenedor de la firma */
#sg-preview table,
#sg-preview td,
#sg-preview tr {
  border: none !important;
  outline: none !important;
  background: #ffffff !important;
}/* End custom CSS */